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_idstring
Role ID
Format
xidname?string
colour?string
permissions?PermissionList
Response Body
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"
]
}Empty
Empty
{
"error": "string",
"message": "string",
"suggested": "string",
"metadata": {}
}Role List GET GET
List all roles and their permissions.
Access Key Create POST POST
Create a new access key for the authenticated account. Access keys are used to authenticate API requests on behalf of the account in a more granular and service-friendly way than a session cookie. Access keys share the same roles and permissions as the owning account and only provide a way to use an `Authorization` header as an way of interacting with the Storyden API. Access keys also allow an expiry date to be set to limit how long a key can be used to authenticate against the API.