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

Cluster Stream Command

Executes a command on a specific stream.

Request

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

Path Parameters

ParameterTypeRequiredDescription
streamKeystringYesUnique identifier of the stream
Request
Code iconbash
curl -X POST "{BASE_URL}/api/cluster/streams/{streamKey}/command" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json"

Request Body

ParameterTypeRequiredDescription
data.attributes.commandstringYesCommand to execute (see available commands below)

Available Commands

CommandDescription
deleteRemoves the stream and disconnects all sources
propagateDistributes the stream to all configured destinations
reorderReorders stream sources by priority (uses different request body)

Reorder Request Body

ParameterTypeRequiredDescription
data.attributes.streamKeystringYesUnique identifier of the stream
data.attributes.sourceListstring[]YesOrdered array of source IDs (first = highest priority)
Example: Delete / Propagate
Code iconjson
{
  "data": {
    "attributes": {
      "command": "delete"
    }
  }
}
Example: Reorder Sources
Code iconjson
{
  "data": {
    "attributes": {
      "streamKey": "test",
      "sourceList": [
        "cs_ec2z7mfjmhzlrvg8",
        "cs_ec2z7mfjmhzlrvg8"
      ]
    }
  }
}

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": 15,
    "generatedAt": 1770287210383
  },
  "message": "Stream has been deleted"
}

Error Responses

ParameterTypeDescription
messagestringHuman-readable error message
Stream Not Found (404)
Code iconjson
{
  "message": "Stream not found"
}
Other Errors (4xx/5xx)
Code iconjson
{
  "message": "Error message"
}
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.