Skip to content

Add Role​

PUT
/admin/roles

Add a new Role

Authorizations​

httpAuth
Type
HTTP (bearer)
or
httpAuth1
Type
HTTP (basic)
or
apiKeyAuth
Type
API Key (header: X-AUTH-APIKEY)

Request Body​

application/json
JSON
{
  
"name": "string",
  
"isAdmin": true,
  
"collectionGrants": [
  
  
{
  
  
  
"name": "string",
  
  
  
"read": true,
  
  
  
"write": true,
  
  
  
"administrate": true,
  
  
  
"grantType": "COLLECTION"
  
  
}
  
]
}

Responses​

application/json
JSON
{
  
"name": "string",
  
"isAdmin": true,
  
"collectionGrants": [
  
  
{
  
  
  
"name": "string",
  
  
  
"read": true,
  
  
  
"write": true,
  
  
  
"administrate": true,
  
  
  
"grantType": "COLLECTION"
  
  
}
  
]
}

Playground​

Authorization
Body

Samples​

Powered by VitePress OpenAPI

Released under the MIT License.