/config/user/{name}/priv

The list of privileges the user possesses.

Get /config/user/{name}/priv

SecurityApiKey
Request
path Parameters
name
required
string

The name of a user. Must consist of alpha-numeric characters or underscores (_).

query Parameters
max-depth
integer >= 1

Limit output depth of the response. See Max-Depth.

Example: max-depth=2
filter
string

Response filter string. See Filter-Spec.

Example: filter={foo,bar}
Responses
200

Normal response.

401

Unauthorized response.

get/config/user/{name}/priv
Request samples
Response samples
application/json
{
  • "result": [
    ],
  • "error": "Error message (present if an error occurred)."
}

Replace /config/user/{name}/priv

SecurityApiKey
Request
path Parameters
name
required
string

The name of a user. Must consist of alpha-numeric characters or underscores (_).

Request Body schema: application/json
Array
string (configUserNamePrivItem)

A privilege the user possesses.

Responses
200

Normal response.

401

Unauthorized response.

put/config/user/{name}/priv
Request samples
application/json
[
  • "unlimited_save",
  • "view_settings"
]
Response samples
application/json
{
  • "status": "OK",
  • "error": "Error message (present if an error occurred)."
}

Update /config/user/{name}/priv

SecurityApiKey
Request
path Parameters
name
required
string

The name of a user. Must consist of alpha-numeric characters or underscores (_).

Request Body schema: application/json
Array
string (configUserNamePrivItem)

A privilege the user possesses.

Responses
200

Normal response.

401

Unauthorized response.

post/config/user/{name}/priv
Request samples
application/json
[
  • "unlimited_save",
  • "view_settings"
]
Response samples
application/json
{
  • "status": "OK",
  • "error": "Error message (present if an error occurred)."
}

Delete /config/user/{name}/priv

Reset to empty array.

SecurityApiKey
Request
path Parameters
name
required
string

The name of a user. Must consist of alpha-numeric characters or underscores (_).

Responses
200

Normal response.

401

Unauthorized response.

delete/config/user/{name}/priv
Request samples
Response samples
application/json
{
  • "status": "OK",
  • "error": "Error message (present if an error occurred)."
}