Roles
Role Create
Creates a role with the specified permissions granted.
Creates a role with the specified permissions granted.
POST
/rolesstoryden-session<token>
In: cookie
Request Body
application/json
name*string
colour*string
permissions*array<>
meta?
Arbitrary metadata for the resource.
Response Body
application/json
application/json
curl -X POST "https://loading/api/roles" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "colour": "string", "permissions": [ "CREATE_POST" ] }'{
"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": {}
}Plugin Update Package PATCH
Replace the package archive for a supervised plugin installation. The uploaded package manifest must have the same plugin ID as the currently installed plugin. If the plugin is active, it is restarted using the new package. If inactive, the package is replaced without changing active state.
Role Delete DELETE
Deletes a role.