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

Server REST Settings Update

Updates server REST API settings.

Request

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

Request Body

ParameterTypeRequiredDescription
data.attributes.apiKeystringNoAPI key for authentication
data.attributes.ipWhiteListstring[]NoList of whitelisted IP addresses
data.attributes.corsSettings.enabledbooleanNoCORS enabled
data.attributes.corsSettings.allowedOriginsstring[]NoList of allowed CORS origins
Request Body
Code iconjson
{
  "data": {
    "attributes": {
      "apiKey": "my-secret-api-key",
      "ipWhiteList": [],
      "corsSettings": {
        "enabled": false
      }
    }
  }
}

Response Body

REST Settings

ParameterTypeDescription
data.attributes.enabled.valuebooleanREST API enabled
data.attributes.enabled.editablebooleanIndicates if the field can be modified
data.attributes.enabled.lockedBystringLocked by environment variable (if present)
data.attributes.apiKey.valuestringAPI key for authentication
data.attributes.apiKey.editablebooleanIndicates if the field can be modified
data.attributes.apiKey.lockedBystringLocked by environment variable (if present)
data.attributes.ipWhiteList.valuestring[]List of whitelisted IP addresses
data.attributes.ipWhiteList.editablebooleanIndicates if the field can be modified
data.attributes.ipWhiteList.lockedBystringLocked by environment variable (if present)
data.attributes.corsSettings.enabled.valuebooleanCORS enabled
data.attributes.corsSettings.enabled.editablebooleanIndicates if the field can be modified
data.attributes.corsSettings.enabled.lockedBystringLocked by environment variable (if present)
data.attributes.corsSettings.allowedOrigins.valuestring[]List of allowed CORS origins
data.attributes.corsSettings.allowedOrigins.editablebooleanIndicates if the field can be modified
data.attributes.corsSettings.allowedOrigins.lockedBystringLocked by 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)
Code iconjson
{
  "data": {
    "attributes": {
      "enabled": {
        "editable": true,
        "value": true
      },
      "apiKey": {
        "editable": true,
        "value": "xxxxx"
      },
      "ipWhiteList": {
        "editable": true,
        "value": []
      },
      "corsSettings": {
        "enabled": {
          "editable": true,
          "value": false
        },
        "allowedOrigins": {
          "editable": true,
          "value": ["*"]
        }
      }
    }
  },
  "meta": {
    "executionTime": 25,
    "generatedAt": 1764852311256
  },
  "message": "REST Settings have been updated"
}

Error Response (4xx/5xx)

ParameterTypeDescription
messagestringHuman-readable error message
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.