This page was last edited on November 23, 2017, at 16:00.
Comments or questions about this documentation? Contact us for support!
![]() |
POST /server/mode |
Manages the UCS Mode for the Context Services. Two modes are available: Maintenance and Production.
HTTP Status Code 503 (Service Unavailable)
. Read the Server Mode page of the developer's guide for further details about maintenance and production mode.
ID | CV.WS.MODE | ||
---|---|---|---|
Method | POST | ||
URL | /server/mode | ||
Parameter | Type | Mandatory | Description |
mode | token
|
yes | The mode to set (case-insensitive). |
The UCS Server status is returned as a JSON object with the following fields: The Context Management Service API answers with HTTP codes for every request. The following table shows the correct response for a successful request. See HTTP Response Codes and Errors for further details on the possible codes that this operation can return.
HTTP code | 200 |
---|---|
HTTP message | OK |
Header | Location /server/status |
Body | {"server changed":"${mode}"}
where:
|
Operation
POST /server/mode {"mode":"production"}
Result
{"server changed":"production"}