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

Server Threads Settings Update

Updates server thread pool settings.

Request

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

Request Body

ParameterTypeRequiredDescription
data.attributes.autoModebooleanNoAutomatic thread count mode
data.attributes.workerThreadCountintegerNoNumber of worker threads
data.attributes.readerThreadCountintegerNoNumber of reader threads
data.attributes.writerThreadCountintegerNoNumber of writer threads
data.attributes.transportThreadCountintegerNoNumber of transport threads

Note: When autoMode is true, thread count fields cannot be modified. When changing autoMode from true to false, all thread count fields must be provided. When autoMode is already false, thread counts can be partially updated.

Request Body - Auto Mode
Code iconjson
{
  "data": {
    "attributes": {
      "autoMode": true
    }
  }
}
Request Body - Switch to Manual Mode
Code iconjson
{
  "data": {
    "attributes": {
      "autoMode": false,
      "workerThreadCount": 96,
      "readerThreadCount": 48,
      "writerThreadCount": 144,
      "transportThreadCount": 96
    }
  }
}
Request Body - Partial Update in Manual Mode
Code iconjson
{
  "data": {
    "attributes": {
      "readerThreadCount": 48,
      "transportThreadCount": 96
    }
  }
}

Response Body

Thread Settings

ParameterTypeDescription
data.attributes.autoMode.valuebooleanAutomatic thread count mode
data.attributes.autoMode.editablebooleanIndicates if the field can be modified
data.attributes.autoMode.lockedBystringLocked by environment variable (if present)
data.attributes.workerThreadCount.valueintegerNumber of worker threads
data.attributes.workerThreadCount.editablebooleanIndicates if the field can be modified
data.attributes.workerThreadCount.lockedBystringLocked by autoMode or environment variable (if present)
data.attributes.readerThreadCount.valueintegerNumber of reader threads
data.attributes.readerThreadCount.editablebooleanIndicates if the field can be modified
data.attributes.readerThreadCount.lockedBystringLocked by autoMode or environment variable (if present)
data.attributes.writerThreadCount.valueintegerNumber of writer threads
data.attributes.writerThreadCount.editablebooleanIndicates if the field can be modified
data.attributes.writerThreadCount.lockedBystringLocked by autoMode or environment variable (if present)
data.attributes.transportThreadCount.valueintegerNumber of transport threads
data.attributes.transportThreadCount.editablebooleanIndicates if the field can be modified
data.attributes.transportThreadCount.lockedBystringLocked by autoMode or 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) - Auto Mode Enabled
Code iconjson
{
  "data": {
    "attributes": {
      "autoMode": {
        "editable": true,
        "value": true
      },
      "workerThreadCount": {
        "lockedBy": "autoMode",
        "editable": false,
        "value": 96
      },
      "readerThreadCount": {
        "lockedBy": "autoMode",
        "editable": false,
        "value": 48
      },
      "writerThreadCount": {
        "lockedBy": "autoMode",
        "editable": false,
        "value": 144
      },
      "transportThreadCount": {
        "lockedBy": "autoMode",
        "editable": false,
        "value": 96
      }
    }
  },
  "meta": {
    "executionTime": 25,
    "generatedAt": 1764851122674
  },
  "message": "Thread Settings have been updated"
}
Successful Response (200) - Manual Mode
Code iconjson
{
  "data": {
    "attributes": {
      "autoMode": {
        "editable": true,
        "value": false
      },
      "workerThreadCount": {
        "editable": true,
        "value": 96
      },
      "readerThreadCount": {
        "editable": true,
        "value": 48
      },
      "writerThreadCount": {
        "editable": true,
        "value": 144
      },
      "transportThreadCount": {
        "editable": true,
        "value": 96
      }
    }
  },
  "meta": {
    "executionTime": 18,
    "generatedAt": 1764851159824
  },
  "message": "Thread Settings have been updated"
}

Error Responses (4xx/5xx)

Validation Error (400)

ParameterTypeDescription
messagestringHuman-readable error message
errors.attributes.workerThreadCountstring[]Validation errors for workerThreadCount field
errors.attributes.readerThreadCountstring[]Validation errors for readerThreadCount field
errors.attributes.writerThreadCountstring[]Validation errors for writerThreadCount field
errors.attributes.transportThreadCountstring[]Validation errors for transportThreadCount field
Validation Error
Code iconjson
{
  "message": "Validation failed",
  "errors": {
    "attributes": {
      "workerThreadCount": [
        "Cannot set thread count when autoMode is enabled"
      ],
      "readerThreadCount": [
        "Cannot set thread count when autoMode is enabled"
      ],
      "writerThreadCount": [
        "Cannot set thread count when autoMode is enabled"
      ],
      "transportThreadCount": [
        "Cannot set thread count when autoMode is enabled"
      ]
    }
  }
}
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.