modl.gg

Pardon Player

Pardon a player's active punishments by name.

POST /v1/minecraft/players/pardon

Pardon a player's punishments by their username. You can pardon all active punishments, or target a specific punishment type (bans or mutes). A MANUAL_PARDON modification is recorded on each pardoned punishment for audit purposes.

When punishmentType is omitted, only currently active punishments are pardoned. When a specific type is provided (e.g., "ban" or "mute"), both active and expired punishments of that type are pardoned (useful for removing accumulated offense points).

Authentication

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

X-API-Key: your-api-key-here

Request

Headers

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

Body

FieldTypeRequiredDescription
playerNamestringYesThe player's Minecraft username (case-insensitive).
issuerNamestringYesThe name of the staff member issuing the pardon.
punishmentTypestringNoThe type of punishment to pardon: "ban" or "mute". If omitted, all active punishments are pardoned.
reasonstringNoAn optional reason for the pardon.
{
  "playerName": "Notch",
  "issuerName": "StaffMember",
  "punishmentType": "ban",
  "reason": "Appeal accepted - insufficient evidence"
}

Response

200 OK

{
  "status": 200,
  "success": true,
  "pardonedCount": 1,
  "message": "Pardoned 1 punishment(s)"
}

When no punishments match:

{
  "status": 200,
  "success": false,
  "pardonedCount": 0,
  "message": "No punishments found to pardon"
}

Response Fields

FieldTypeDescription
successbooleantrue if at least one punishment was pardoned, false otherwise.
pardonedCountintegerThe number of punishments that were pardoned.
messagestringA human-readable summary of the result.

Error Responses

Status CodeDescription
401Missing or invalid API key.
404Player not found for the given username.
429Rate limit exceeded.
500Internal server error.

On this page