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

Cluster Stream Reorder

Reorders stream sources by priority.

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 '{"data":{"attributes":{"streamKey":"test","sourceList":["id1","id2"]}}}'

Path Parameters

ParameterTypeRequiredDescription
streamKeystringYesUnique identifier of the stream
Request With Parameters
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.streamKeystringYesUnique identifier of the stream
data.attributes.sourceListstring[]YesOrdered array of source IDs (first = highest priority)
Request Body
Code iconjson
{
  "data": {
    "attributes": {
      "streamKey": "test",
      "sourceList": [
        "cs_ec2z7mfjmhzlrvg8",
        "cs_ec2z7mfjmhzlrvg8"
      ]
    }
  }
}

Response Body

ParameterTypeDescription
meta.executionTimeintegerRequest processing time in milliseconds
meta.generatedAtintegerResponse generation timestamp (Unix timestamp in ms)
messagestringResponse status message
Successful Response (200)
Code iconjson
{
  "meta": {
    "executionTime": 15,
    "generatedAt": 1770287210383
  },
  "message": "Stream sources have been reordered"
}

Error Response (4xx/5xx)

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