Application Shutdown Streams
Stops all active streams in the application.
Request
| Property | Value |
|---|---|
| Method | POST |
| URL | /api/applications/{appName}/command |
| Content-Type | application/json |
| Authentication | Bearer Token |
Request
curl -X POST "{BASE_URL}/api/applications/{appName}/command" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"data":{"attributes":{"command":"shutdownStreams"}}}'
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
appName | string | Yes | Application name |
Request With Parameters
curl -X POST "{BASE_URL}/api/applications/{appName}/command" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
data.attributes.command | string | Yes | Command to execute (always "shutdownStreams") |
Request Body
{
"data": {
"attributes": {
"command": "shutdownStreams"
}
}
}
Response Body
| Parameter | Type | Description |
|---|---|---|
meta.executionTime | integer | Request processing time in milliseconds |
meta.generatedAt | integer | Response generation timestamp (Unix timestamp in ms) |
message | string | Response status message |
Successful Response (200)
{
"meta": {
"executionTime": 9,
"generatedAt": 1766063979156
},
"message": "All streams have been shut down"
}
Error Response (4xx/5xx)
| Parameter | Type | Description |
|---|---|---|
message | string | Human-readable error message |
Application Not Found (404)
{
"message": "Application not found"
}
Error Response
{
"message": "Error message"
}
Support Needed?
Create a free ticket and our support team will provide you necessary assistance.