Update an existing role​
Update an existing role
Path Parameters
- id uuid required
ID of the object to retrieve or update
Example: db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e
- application/json
Request Body required
role object
type stringPossible values: [
NeprofileRole
,NeaccessRole
]The type
name stringThe name
groups string[]the groups
Responses
- 200
- 400
- 500
Expected response to a valid request
- application/json
- Schema
- Example (from schema)
Schema
role object
id uuidthe id
uid stringPossible values:
>= 32 characters
and<= 32 characters
the uid
name stringThe name
groups string[]the groups
{
"role": {
"id": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e",
"uid": "sponsors_role",
"name": "Sponsors",
"groups": [
"ad_group_name"
]
}
}
Bad Request - unable to complete.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
- error
- error
- errors
oneOf
{
"error": "Invalid JSON syntax. Please check your syntax and try again."
}
Internal Server Error - returned on unhandled exceptions.
- application/json
- Schema
- Example (from schema)
Schema
- error
A message describing the error
{
"error": "Sorry something went wrong"
}
Loading...