Accounts
Account Add Role
Adds a role to an account. Members without the MANAGE_ROLES permission cannot use this operation.
Adds a role to an account. Members without the MANAGE_ROLES permission cannot use this operation.
PUT
/accounts/{account_handle}/roles/{role_id}storyden-session<token>
In: cookie
Path Parameters
role_idstring
Role ID
Format
xidaccount_handlestring
Account handle.
Response Body
curl -X PUT "https://loading/api/accounts/southclaws/roles/cc5lnd2s1s4652adtu50"{
"id": "cc5lnd2s1s4652adtu50",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"deletedAt": "2019-08-24T14:15:22Z",
"misc": {},
"joined": "2019-08-24T14:15:22Z",
"suspended": "2019-08-24T14:15:22Z",
"handle": "Southclaws",
"name": "Barnaby Keene",
"roles": [
{
"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"
],
"badge": true,
"default": true
}
],
"bio": "<body><p>hi, my name is</p><p>southclaws</p></body>",
"links": [
{
"text": "string",
"url": "string"
}
],
"meta": {},
"verified_status": "none",
"email_addresses": [
{
"id": "cc5lnd2s1s4652adtu50",
"email_address": "hello@storyden.org",
"verified": true
}
],
"notifications": 0,
"admin": true,
"invited_by": {
"id": "cc5lnd2s1s4652adtu50",
"joined": "2019-08-24T14:15:22Z",
"suspended": "2019-08-24T14:15:22Z",
"handle": "Southclaws",
"name": "Barnaby Keene"
}
}Empty
Empty
{
"error": "string",
"message": "string",
"suggested": "string",
"metadata": {}
}Web Authn Request Credential GET GET
Start the WebAuthn registration process by requesting a credential.
Account Auth Method Delete DELETE DELETE
Deletes the specified authentication method from the account. This is irreversible however if this authentication method is the only remaining method for the account, this operation will fail with a 400 bad request.