punishments-moderation.read-me or punishments-team.read-me
oral_warn punishments
punishments-{{category}}.view-deleted is required to fetch deleted punishments
| Name | Type | Description |
|---|---|---|
| serverId | number | The server id |
| category | string | The category of the punishments you want to fetch (moderation | team) |
| Name | Type | Description | Default |
|---|---|---|---|
| active | boolean | If you want to fetch only active punishments or not | ❌ |
| type | string | The type of the punishment you want to fetch (enum: ) |
❌ |
| deleted | boolean | If you want to fetch only deleted punishments or not | ❌ |
| teamNames | string | The team name of the punishment you want to fetch (comma separated) | ❌ |
| page | number | The page number (min: 1) |
1 |
| perpage | number | The limit of elements per page (min: 1, max: 100) |
10 |
| search | string | The search query (only first 50 characters will be considered) | ❌ |
| sortby | string | The column to sort by | id |
| sortdir | string | The direction to sort by (enum: ) |
desc |
| Status | Code | Description |
|---|---|---|
OK |
The request has been successfully completed | |
INVALID_ACTIVE |
The value doesn't follow the requirements | |
INVALID_DELETED |
The value doesn't follow the requirements | |
INVALID_PAGE |
The value doesn't follow the requirements | |
INVALID_PERPAGE |
The value doesn't follow the requirements | |
INVALID_PUNISHMENT_CATEGORY |
The value category doesn't follow the requirements |
|
INVALID_PUNISHMENT_TYPE |
The value type doesn't follow the requirements |
|
INVALID_SEARCH |
The value doesn't follow the requirements | |
INVALID_SERVER_ID |
The server id is invalid | |
INVALID_SORTBY |
The value doesn't follow the requirements | |
INVALID_SORTDIR |
The value doesn't follow the requirements | |
INVALID_TEAM_NAMES |
The value doesn't follow the requirements | |
INVALID_TYPE |
The value doesn't follow the requirements | |
UNAUTHORIZED |
The token is invalid or expired | |
ACCESS_DENIED |
The token or the author does not have the required permissions | |
DISCORD_CONNECTION_REQUIRED |
You need a Discord account link to your Steam Account to access to the route | |
SERVER_NOT_FOUND |
The server does not exist | |
INTERNAL_ERROR |
An internal error has occured |
"OK"
number
string
number
number
string
string
date
date
date | null
string | null
string
number
string
string | null
string | null
number
number
number
string
string
number | null
number
string
date | null
string
string
number
number
string
string
date
date
date | null
string | null
string
number
string
string | null
string | null
number
number
number
string
string
number | null
number
string
date | null
string
string
string
string | null
string
boolean | null
number | null
string | null
number
string
string | null
number
number
number
number
number
string
string | null
punishments-moderation.read or punishments-team.read moderation punishments, you need the punishments-moderation.read permission
oral_warn punishments
punishments-{{category}}.view-deleted is required to fetch deleted punishments
| Name | Type | Description |
|---|---|---|
| serverId | number | The server id |
| uuid | string | The player uuid |
| category | string | The category of the punishments you want to fetch (moderation | team) |
| Name | Type | Description | Default |
|---|---|---|---|
| active | boolean | If you want to fetch only active punishments or not | ❌ |
| type | string | The type of the punishment you want to fetch (enum: ) |
❌ |
| deleted | boolean | If you want to fetch only deleted punishments or not | ❌ |
| page | number | The page number (min: 1) |
1 |
| perpage | number | The limit of elements per page (min: 1, max: 100) |
10 |
| search | string | The search query (only first 50 characters will be considered) | ❌ |
| sortby | string | The column to sort by | id |
| sortdir | string | The direction to sort by (enum: ) |
desc |
| Status | Code | Description |
|---|---|---|
OK |
The request has been successfully completed | |
INVALID_ACTIVE |
The value doesn't follow the requirements | |
INVALID_DELETED |
The value doesn't follow the requirements | |
INVALID_PAGE |
The value doesn't follow the requirements | |
INVALID_PERPAGE |
The value doesn't follow the requirements | |
INVALID_PUNISHMENT_TYPE |
The value type doesn't follow the requirements |
|
INVALID_SEARCH |
The value doesn't follow the requirements | |
INVALID_SERVER_ID |
The server id is invalid | |
INVALID_SORTBY |
The value doesn't follow the requirements | |
INVALID_SORTDIR |
The value doesn't follow the requirements | |
INVALID_TYPE |
The value doesn't follow the requirements | |
UNAUTHORIZED |
The token is invalid or expired | |
ACCESS_DENIED |
The token or the author does not have the required permissions | |
DISCORD_CONNECTION_REQUIRED |
You need a Discord account link to your Steam Account to access to the route | |
PLAYER_NOT_FOUND |
The uuid doesn't refer to an existing player | |
SERVER_NOT_FOUND |
The server does not exist | |
INTERNAL_ERROR |
An internal error has occured |
"OK"
number
string
number
number
string
string
date
date
date | null
string | null
string
number
string
string | null
string | null
number
number
number
string
string
number | null
number
string
date | null
string
string
number
number
string
string
date
date
date | null
string | null
string
number
string
string | null
string | null
number
number
number
string
string
number | null
number
string
date | null
string
string
string
string | null
string
boolean | null
number | null
string | null
number
string
string | null
number
number
number
number
number
string
string | null
punishments-discord.read and punishments-discord.read
| Name | Type | Description |
|---|---|---|
| serverId | number | The server id |
| uuid | string | The player uuid |
| Name | Type | Description | Default |
|---|---|---|---|
| active | boolean | If you want to fetch only active punishments or not | ❌ |
| deleted | boolean | If you want to include deleted Discord punishments | ❌ |
| page | number | The page number (min: 1) |
1 |
| perpage | number | The limit of elements per page (min: 1, max: 100) |
10 |
| search | string | The search query (only first 50 characters will be considered) | ❌ |
| sortby | string | The column to sort by | id |
| sortdir | string | The direction to sort by (enum: ) |
desc |
| Status | Code | Description |
|---|---|---|
OK |
The request has been successfully completed | |
INVALID_ACTIVE |
The value doesn't follow the requirements | |
INVALID_DELETED |
The value doesn't follow the requirements | |
INVALID_PAGE |
The value doesn't follow the requirements | |
INVALID_PERPAGE |
The value doesn't follow the requirements | |
INVALID_SEARCH |
The value doesn't follow the requirements | |
INVALID_SERVER_ID |
The server id is invalid | |
INVALID_SORTBY |
The value doesn't follow the requirements | |
INVALID_SORTDIR |
The value doesn't follow the requirements | |
UNAUTHORIZED |
The token is invalid or expired | |
ACCESS_DENIED |
The token or the author does not have the required permissions | |
DISCORD_CONNECTION_REQUIRED |
You need a Discord account link to your Steam Account to access to the route | |
PLAYER_NOT_FOUND |
The uuid doesn't refer to an existing player | |
SERVER_NOT_FOUND |
The server does not exist | |
INTERNAL_ERROR |
An internal error has occured |
"OK"
| Name | Type | Description |
|---|---|---|
| serverId | number | The server id |
| Status | Code | Description |
|---|---|---|
OK |
The request has been successfully completed | |
INVALID_SERVER_ID |
The server id is invalid | |
UNAUTHORIZED |
The token is invalid or expired | |
ACCESS_DENIED |
The token or the author does not have the required permissions | |
DISCORD_CONNECTION_REQUIRED |
You need a Discord account link to your Steam Account to access to the route | |
SERVER_NOT_FOUND |
The server does not exist | |
INTERNAL_ERROR |
An internal error has occured |
"OK"
string[]
| Name | Type | Description |
|---|---|---|
| serverId | number | The server id |
| Status | Code | Description |
|---|---|---|
OK |
The request has been successfully completed | |
INVALID_SERVER_ID |
The server id is invalid | |
UNAUTHORIZED |
The token is invalid or expired | |
ACCESS_DENIED |
The token or the author does not have the required permissions | |
DISCORD_CONNECTION_REQUIRED |
You need a Discord account link to your Steam Account to access to the route | |
SERVER_NOT_FOUND |
The server does not exist | |
INTERNAL_ERROR |
An internal error has occured |
"OK"
string[]