POST
/
players
/
bans
/
{workspaceId}
/
{banId}
/
comments
curl --request POST \
  --url https://api.hyra.io/players/bans/{workspaceId}/{banId}/comments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "body": "<string>"
}'
[
  {
    "_id": "<string>",
    "author": "<string>",
    "ban": "<string>",
    "body": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "files": [
      "<string>"
    ],
    "updatedAt": "2023-11-07T05:31:56Z",
    "videos": [
      "<string>"
    ],
    "workspace": "<string>"
  }
]

There is a more advanced version of this endpoint that allows for uploading files and videos.

However, this API uses multipart encoding instead of JSON, so it has been omitted from this documentation and the Swagger reference.

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required
banId
number
required

Body

application/json
body
string
required

Response

200 - application/json
_id
string
required
author
string
required
ban
string
required
body
string
createdAt
string
required
files
string[]
required
updatedAt
string
required
videos
string[]
required
workspace
string
required