| PUT, OPTIONS | /Scripts/{ScriptId}/state |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Authorization | header | string | Yes | Authorization token in the form "Bearer your_token_here" |
| ScriptId | path | string | Yes | Script ID |
| State | body | ScriptState | Yes | The desired new state of the script |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /Scripts/{ScriptId}/state HTTP/1.1
Host: partytime.pt
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Authorization":"String","ScriptId":"String","State":"Active"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length "Active"