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

Vhost Update

Updates an existing virtual host configuration.

Request

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

Path Parameters

ParameterTypeRequiredDescription
vhostIdintegerYesUnique identifier of the VHost
Request With Parameters
Code iconbash
curl -X PUT "{BASE_URL}/api/server/settings/vhosts/{vhostId}" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json"

Request Body

ParameterTypeRequiredDescription
hoststringYesHost binding ("*" for all interfaces or specific IP)
portintegerYesPort number
protocolsstring[]YesEnabled protocols
isSSLbooleanNoSSL enabled
certificatePathstringNoPath to SSL certificate (required if isSSL is true)
certificatePasswordstringNoSSL certificate password (required if isSSL is true)
isControlPanelbooleanNoControl panel endpoint
Request Body
Code iconjson
{
  "host": "127.0.0.1",
  "port": 7777,
  "protocols": ["HTTP"],
  "isSSL": false,
  "isControlPanel": true
}
Request Body (with SSL)
Code iconjson
{
  "host": "*",
  "port": 443,
  "protocols": ["WEBSOCKETS", "HTTP"],
  "isSSL": true,
  "certificatePath": "/path/to/certificate.p12",
  "certificatePassword": "password",
  "isControlPanel": false
}

Response Body

VHost

ParameterTypeDescription
data.idintegerUnique identifier of the VHost
data.attributes.host.valuestringHost binding
data.attributes.host.editablebooleanIndicates if the field can be modified
data.attributes.host.lockedBystringLocked by environment variable (if present)
data.attributes.port.valueintegerPort number
data.attributes.port.editablebooleanIndicates if the field can be modified
data.attributes.port.lockedBystringLocked by environment variable (if present)
data.attributes.protocols.valuestring[]Enabled protocols
data.attributes.protocols.editablebooleanIndicates if the field can be modified
data.attributes.protocols.lockedBystringLocked by environment variable (if present)
data.attributes.isSSL.valuebooleanSSL enabled
data.attributes.isSSL.editablebooleanIndicates if the field can be modified
data.attributes.isSSL.lockedBystringLocked by environment variable (if present)
data.attributes.certificatePath.valuestringPath to SSL certificate
data.attributes.certificatePath.editablebooleanIndicates if the field can be modified
data.attributes.certificatePath.lockedBystringLocked by environment variable (if present)
data.attributes.certificatePassword.valuestringSSL certificate password (masked)
data.attributes.certificatePassword.maskedbooleanIndicates if the value is masked
data.attributes.isControlPanel.valuebooleanControl panel endpoint
data.attributes.isControlPanel.editablebooleanIndicates if the field can be modified
data.attributes.isControlPanel.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": {
    "id": 4,
    "attributes": {
      "host": {
        "editable": true,
        "value": "127.0.0.1"
      },
      "port": {
        "editable": true,
        "value": 7777
      },
      "protocols": {
        "editable": true,
        "value": ["HTTP"]
      },
      "isSSL": {
        "editable": true,
        "value": false
      },
      "isControlPanel": {
        "editable": true,
        "value": true
      }
    }
  },
  "meta": {
    "executionTime": 16,
    "generatedAt": 1764854556835
  },
  "message": "VHost updated successfully"
}

Error Response (4xx/5xx)

ParameterTypeDescription
messagestringHuman-readable error message
VHost Not Found (404)
Code iconjson
{
  "message": "VHost Entity 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.