Roles
Role Update
Updates a role's attributes.
Updates a role's attributes.
PATCH
/roles/{role_id}storyden-session<token>
In: cookie
Path Parameters
role_id*string
Role ID
Format
xidRequest Body
application/json
name?string
colour?string
permissions?array<>
meta?
Arbitrary metadata for the resource.
Response Body
application/json
application/json
curl -X PATCH "https://loading/api/roles/cc5lnd2s1s4652adtu50" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "cc5lnd2s1s4652adtu50",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"deletedAt": "2019-08-24T14:15:22Z",
"misc": {},
"name": "string",
"colour": "string",
"permissions": [
"CREATE_POST"
],
"meta": {}
}Empty
Empty
{
"error": "string",
"message": "string",
"suggested": "string",
"metadata": {}
}