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

Application Command

Executes a command on an application.

Request

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

Path Parameters

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

Request Body

ParameterTypeRequiredDescription
data.attributes.commandstringYesCommand to execute (see available commands below)
data.attributes.newApplicationNamestringNoNew application name (required for renameApplication and copyApplication)

Available Commands

CommandDescriptionAdditional Parameters
kickViewersDisconnects all viewers from the application-
shutdownStreamsStops all active streams in the application-
restartApplicationRestarts the application-
renameApplicationRenames the applicationnewApplicationName
copyApplicationCreates a copy of the applicationnewApplicationName
deleteApplicationDeletes the application-
Example Request (Kick Viewers)
Code iconjson
{
  "data": {
    "attributes": {
      "command": "kickViewers"
    }
  }
}

Response Body

ParameterTypeDescription
messagestringResponse status message

Metadata

ParameterTypeDescription
meta.executionTimeintegerRequest processing time in milliseconds
meta.generatedAtintegerResponse generation timestamp (Unix timestamp in ms)
Successful Response (200)
Code iconjson
{
  "meta": {
    "executionTime": 9,
    "generatedAt": 1766063979156
  },
  "message": "All viewers has been kicked out"
}

Error Responses

Application Not Found (404)

Application Name Already Exists (409)

ParameterTypeDescription
messagestringHuman-readable error message
Code iconjson
{
  "message": "Application not found"
}
Code iconjson
{
  "message": "Application \"edge\" already exists"
}
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.