Change Duration
Modify the duration of an existing punishment.
Modify the duration of an existing punishment. This can be used to extend, reduce, or convert a punishment between temporary and permanent.
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 modify. |
| Field | Type | Required | Description |
|---|
issuerName | string | Yes | The name of the staff member modifying the duration. |
newDuration | long | No | The new duration in milliseconds. Use -1 for permanent. |
{
"issuerName": "StaffMember",
"newDuration": 1209600000
}
| Field | Type | Description |
|---|
success | boolean | Whether the duration was updated successfully. |
| Status Code | Description |
|---|
400 | Invalid request body or missing required fields. |
401 | Missing or invalid API key. |
404 | Punishment not found. |