Storyden
Admin

Moderation Action Create

Create a new moderation action such as a ban or content purge.

Create a new moderation action such as a ban or content purge.

POST/admin/actions
storyden-session<token>

In: cookie

Request Body

application/json

action*string
Value in"purge_account"
account_id*string

A unique identifier for this resource.

Formatxid
include*ModerationActionPurgeAccountContentTypeList

Response Body

application/json

application/json

curl -X POST "https://loading/api/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"
  }
}
Empty
Empty
{
  "error": "string",
  "message": "string",
  "suggested": "string",
  "metadata": {}
}