Accounts
Account Warning Create
Create an internal moderation warning for an account. Requires the `MANAGE_WARNINGS` permission.
POST
Create an internal moderation warning for an account. Requires the
MANAGE_WARNINGS permission.
cookie
storyden-session<token>account_id*stringAccount ID.
Format
xidapplication/json- body
reason*WarningReasonLength
1 <= length <= 2000OK
application/json- response
id*IdentifierA unique identifier for this resource.
Format
xidissued_at*stringFormat
date-timereason*WarningReasonLength
1 <= length <= 2000issued_by?A minimal reference to an account.
curl -X POST 'https://example.com/api/accounts/string/warnings' \ -H 'Content-Type: application/json' \ -d '{ "reason": "string"}'Example Response
{ "id": "string", "issued_at": "2019-08-24T14:15:22Z", "reason": "string", "issued_by": { "id": "string", "joined": "2019-08-24T14:15:22Z", "suspended": "2019-08-24T14:15:22Z", "handle": "string", "name": "string", "signature": "string", "roles": [ { "badge": true, "default": true, "id": "string", "name": "string", "colour": "string", "meta": {} } ] }}Account View GET
Get detailed account information by ID. Requires either the permissions VIEW_ACCOUNTS or ADMINISTRATOR. Users with VIEW_ACCOUNTS can view any account that is not ADMINISTRATOR including those with VIEW_ACCOUNTS. Only members with ADMINISTRATOR can view other ADMINISTRATOR accounts.
Account Warning Delete DELETE
Permanently delete a warning record. Requires the `MANAGE_WARNINGS` permission.