modl.gg

Pardon Punishment

Pardon a specific punishment by its ID.

POST /v1/minecraft/punishments/{punishmentId}/pardon

Pardon (revoke) a specific punishment by its ID. The punishment will be marked as pardoned and enforcement will cease on connected servers.

Authentication

Requires the X-API-Key header with your server's API key.

Request

Headers

HeaderTypeRequiredDescription
X-API-KeystringYesYour server's API key.
Content-TypestringYesMust be application/json.

Path Parameters

ParameterTypeRequiredDescription
punishmentIdstringYesThe ID of the punishment to pardon.

Body

FieldTypeRequiredDescription
issuerNamestringYesThe name of the staff member issuing the pardon.
reasonstringNoThe reason for pardoning the punishment.
expectedTypestringNoThe expected punishment type for validation.
Example Request Body
{
  "issuerName": "StaffMember",
  "reason": "Appeal accepted - insufficient evidence"
}

Response

200 OK

Response
{
  "success": true,
  "pardonedCount": 1
}
FieldTypeDescription
successbooleanWhether the pardon was applied successfully.
pardonedCountintegerThe number of punishments pardoned.

Error Responses

Status CodeDescription
400Invalid request body or missing required fields.
401Missing or invalid API key.
404Punishment not found.

On this page