Add capabilities to a user
Learn how to add an administrative capability to a specified user.
Capabilities
`users=write`
Syntax
PUT /admin/user?caps&format=json HTTP/1.1
Host FULLY_QUALIFIED_DOMAIN_NAME
uid
- Description
-
The user ID to add an administrative capability to.
- Type
-
String
- Example
-
foo_user - Required
-
Yes
user-caps
- Description
-
The administrative capability to add to the user.
- Type
-
String
- Example
-
usage=read, write - Required
-
Yes
user
- Description
-
A container for the user data information.
- Type
-
Container
- Parent
-
N/A
user_id
- Description
-
The user ID
- Type
-
String
- Parent
-
user
caps
- Description
-
User capabilities
- Type
-
Container
- Parent
-
user
If successful, the response contains the user’s capabilities.
Special Error Responses
InvalidCap
- Description
-
Attempt to grant invalid admin capability.
- Code
-
400 Bad Request