Admin
Moderation Action Create
Create a new moderation action such as a ban or content purge.
POST
/admin/actionsCreate a new moderation action such as a ban or content purge.
storyden-session<token>
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
A moderation action to purge content created by a specific account.
Response Body
application/json
application/json
curl -X POST "https://example.com/admin/actions" \ -H "Content-Type: application/json" \ -d '{ "action": "purge_account", "account_id": "cc5lnd2s1s4652adtu50", "include": [ "threads" ] }'{
"id": "cc5lnd2s1s4652adtu50",
"type": "thread_deleted",
"timestamp": "2019-08-24T14:15:22Z",
"enacted_by": {
"id": "cc5lnd2s1s4652adtu50",
"joined": "2019-08-24T14:15:22Z",
"suspended": "2019-08-24T14:15:22Z",
"handle": "Southclaws",
"name": "Barnaby Keene",
"signature": "<body><p>Sent with love from London!</p></body>",
"roles": [
{
"badge": true,
"default": true,
"id": "cc5lnd2s1s4652adtu50",
"name": "string",
"colour": "string",
"meta": {}
}
]
}
}Empty
Empty
{
"type": "string",
"title": "string",
"detail": "string",
"trace_id": "string",
"metadata": {}
}Email Queue Retry POST
Manually retry a delivery for an email queue record. This is used for failed deliveries. This will create a new delivery attempt and update the email queue record accordingly.
O Auth Remote Connection Authorize POST
Start OAuth authorization code with PKCE for a remote OAuth connection and return the authorization URL to open in a browser.