Storyden
Accounts

Account Warning Create

Create an internal moderation warning for an account. Requires the `MANAGE_WARNINGS` permission.

POST
/accounts/{account_id}/warnings

Create an internal moderation warning for an account. Requires the MANAGE_WARNINGS permission.

Authorization

cookiestoryden-session<token>

Path Parameters

account_id*string

Account ID.

Formatxid

Request Body

application/json
  1. body
reason*WarningReason
Length1 <= length <= 2000

Response Body

OK

application/json
  1. response
id*Identifier

A unique identifier for this resource.

Formatxid
issued_at*string
Formatdate-time
reason*WarningReason
Length1 <= length <= 2000
issued_by?

A minimal reference to an account.

Example Request
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": {}      }    ]  }}