Use the interface to set the invitation code for advanced Cloud security.

Devices need to register with right invitation code after this setting.

Only available for users with administrative rights.


URL ip[:port]/sc_cloud/settings/set-code
Data Format Request: Content-Type: application/json
Response: Content-Type: application/json

Request Cookies

Parameter Description
mwcloud-sid A string value that is used to uniquely identify user logged-in.
mwcloud-uid Current logged-in username.
Request Body
Parameter Description
is-code Whether to enable invitation code. 1 indicates yes, 0 indicates no.
code-value 4-digit numbers.

Request Example

POST /sc_cloud/settings/set-code HTTP/1.1
Content-Length: 33
Accept: application/json, text/plain, */*
Content-Type: application/json;charset=UTF-8
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;

Response Parameters

Response Header
Parameter Description
Content-Type Value: 'application/json; charset=UTF-8'
Response Body
Parameter Description
result Result code. The options are as follows:
  • 0: success.
  • Other values. For details about the result codes, please refer to API Status.
method set-code

Response Example

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 32
  "method": "set-code",
  "result": 0

results matching ""

    No results matching ""

    results matching ""

      No results matching ""