/api/usr-group/set

Use this interface to set user groups.

Only available for the administrative group.

Prototype

Protocol HTTP/HTTPS POST
URL ip[:port]/api/usr-group/set
Content-Type Request: Content-Type: application/json
Response: Content-Type: application/json

Request Cookies

Parameter Description
mwcloud-sid A string that is used to identify current logged-in user.
mwcloud-uid Current logged-in username.
Request Body
Parameter Description
id Group ID
permissions Optional, can be left empty if there are no changes, reference permission definition
users Optional, can be left empty if there are no changes, an array of user names
desc Optional, can be left empty if there are no changes, a description

Request Example

POST /api/usr-group/set HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/json;charset=utf-8
Content-Length: xx
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;
{
  "name":"Users",
  "id":16,
  "permissions":57183,
  "desc":"Users"
}

Response Parameters

Response Header
Parameter Description
Content-Type Value: 'application/json; charset=UTF-8'
Response Body
Parameter Description
result Result code

Response Example

HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
content-length: xx
{
  "result": 0
}

results matching ""

    No results matching ""

    results matching ""

      No results matching ""