Pardon Punishment
Pardon a specific punishment by its ID.
Pardon (revoke) a specific punishment by its ID. The punishment will be marked as pardoned and enforcement will cease on connected servers.
Requires the X-API-Key header with your server's API key.
| Header | Type | Required | Description |
|---|
X-API-Key | string | Yes | Your server's API key. |
Content-Type | string | Yes | Must be application/json. |
| Parameter | Type | Required | Description |
|---|
punishmentId | string | Yes | The ID of the punishment to pardon. |
| Field | Type | Required | Description |
|---|
issuerName | string | Yes | The name of the staff member issuing the pardon. |
reason | string | No | The reason for pardoning the punishment. |
expectedType | string | No | The expected punishment type for validation. |
{
"issuerName": "StaffMember",
"reason": "Appeal accepted - insufficient evidence"
}
{
"success": true,
"pardonedCount": 1
}
| Field | Type | Description |
|---|
success | boolean | Whether the pardon was applied successfully. |
pardonedCount | integer | The number of punishments pardoned. |
| Status Code | Description |
|---|
400 | Invalid request body or missing required fields. |
401 | Missing or invalid API key. |
404 | Punishment not found. |