Storm docs logo
Search the docs.../
Explore Storm Products

Application Recording Settings Update

Updates the recording settings for an application.

Request

PropertyValue
MethodPATCH
URL/api/applications/{appName}/settings/recording
Content-Typeapplication/json
AuthenticationBearer Token
Request
Code iconbash
curl -X PATCH "{BASE_URL}/api/applications/{appName}/settings/recording" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"key": "value"}'

Path Parameters

ParameterTypeRequiredDescription
appNamestringYesApplication name
Request
Code iconbash
curl -X PATCH "{BASE_URL}/api/applications/{appName}/settings/recording" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json"

Request Body

ParameterTypeRequiredDescription
data.attributes.enabledbooleanNoEnable recording
data.attributes.fileFormat"fMP4" | "FLV"NoRecording file format
data.attributes.savePathstringNoDirectory path for recordings
data.attributes.maxFileSizeintegerNoMaximum file size in MB
data.attributes.maxFileDurationintegerNoMaximum file duration in seconds
data.attributes.cacheSizeintegerNoCache size in seconds
data.attributes.maxStorageSizeintegerNoMaximum total storage size in MB
data.attributes.removeOldFilesbooleanNoAutomatically remove old files when storage is full
data.attributes.autoRecordingbooleanNoAutomatically start recording when stream starts

Example Request (Enable Recording)

Example Request (Disable Recording)

Code iconjson
{
  "data": {
    "attributes": {
      "enabled": true,
      "fileFormat": "fMP4",
      "savePath": "/var/recordings",
      "maxFileSize": 100,
      "maxFileDuration": 3600,
      "cacheSize": 5,
      "maxStorageSize": 10000,
      "removeOldFiles": true,
      "autoRecording": false
    }
  }
}
Code iconjson
{
  "data": {
    "attributes": {
      "enabled": false
    }
  }
}

Response Body

Recording Settings

ParameterTypeDescription
data.attributes.enabled.valuebooleanRecording enabled status
data.attributes.enabled.editablebooleanIndicates if the field can be modified
data.attributes.enabled.lockedBystringLocked by environment variable (if present)
data.attributes.fileFormat.value"fMP4" | "FLV"Recording file format
data.attributes.fileFormat.editablebooleanIndicates if the field can be modified
data.attributes.fileFormat.lockedBystringLocked by environment variable (if present)
data.attributes.savePath.valuestringDirectory path for recordings
data.attributes.savePath.editablebooleanIndicates if the field can be modified
data.attributes.savePath.lockedBystringLocked by environment variable (if present)
data.attributes.maxFileSize.valueintegerMaximum file size in MB
data.attributes.maxFileSize.editablebooleanIndicates if the field can be modified
data.attributes.maxFileSize.lockedBystringLocked by environment variable (if present)
data.attributes.maxFileDuration.valueintegerMaximum file duration in seconds
data.attributes.maxFileDuration.editablebooleanIndicates if the field can be modified
data.attributes.maxFileDuration.lockedBystringLocked by environment variable (if present)
data.attributes.cacheSize.valueintegerCache size in seconds
data.attributes.cacheSize.editablebooleanIndicates if the field can be modified
data.attributes.cacheSize.lockedBystringLocked by environment variable (if present)
data.attributes.maxStorageSize.valueintegerMaximum total storage size in MB
data.attributes.maxStorageSize.editablebooleanIndicates if the field can be modified
data.attributes.maxStorageSize.lockedBystringLocked by environment variable (if present)
data.attributes.removeOldFiles.valuebooleanAuto-remove old files when storage is full
data.attributes.removeOldFiles.editablebooleanIndicates if the field can be modified
data.attributes.removeOldFiles.lockedBystringLocked by environment variable (if present)
data.attributes.autoRecording.valuebooleanAuto-start recording when stream starts
data.attributes.autoRecording.editablebooleanIndicates if the field can be modified
data.attributes.autoRecording.lockedBystringLocked by environment variable (if present)
messagestringResponse status message

Metadata

ParameterTypeDescription
meta.executionTimeintegerRequest processing time in milliseconds
meta.generatedAtintegerResponse generation timestamp (Unix timestamp in ms)
Successful Response (200)
Code iconjson
{
  "data": {
    "attributes": {
      "enabled": {
        "editable": true,
        "value": true
      },
      "fileFormat": {
        "editable": true,
        "value": "fMP4"
      },
      "savePath": {
        "editable": true,
        "value": "/var/recordings"
      },
      "maxFileSize": {
        "editable": true,
        "value": 100
      },
      "maxFileDuration": {
        "editable": true,
        "value": 3600
      },
      "cacheSize": {
        "editable": true,
        "value": 5
      },
      "maxStorageSize": {
        "editable": true,
        "value": 10000
      },
      "removeOldFiles": {
        "editable": true,
        "value": true
      },
      "autoRecording": {
        "editable": true,
        "value": false
      }
    }
  },
  "meta": {
    "executionTime": 14,
    "generatedAt": 1766070737249
  },
  "message": "Recording Settings have been updated"
}

Error Responses

Application Not Found (404)

ParameterTypeDescription
messagestringHuman-readable error message
Code iconjson
{
  "message": "Application not found"
}
Support Needed?

Create a free ticket and our support team will provide you necessary assistance.

Blog
Support
About us
Patents
Term of use
Privacy policy
Contact
©2026 Storm Streaming Media. All Rights Reserved.