modl.gg
Developer API

Modify Punishment Tickets

Add or remove tickets linked to a punishment.

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

Modify the tickets linked to a specific punishment. You can add new ticket associations, remove existing ones, or both in a single request.

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.

Path Parameters

ParameterTypeRequiredDescription
punishmentIdstringYesThe unique ID of the punishment.

Body

FieldTypeRequiredDescription
addTicketIdsstring[]NoList of ticket IDs to link to this punishment.
removeTicketIdsstring[]NoList of ticket IDs to unlink from this punishment.
modifyAssociatedTicketsbooleanYesWhether to also update the tickets themselves with the punishment association.
issuerNamestringNoThe name of the staff member making the change.
issuerIdstringNoThe unique identifier of the staff member.
{
  "addTicketIds": ["ticket_abc123", "ticket_def456"],
  "removeTicketIds": [],
  "modifyAssociatedTickets": true,
  "issuerName": "StaffMember",
  "issuerId": "staff_abc123"
}

Response

200 OK

{
  "status": 200,
  "success": true,
  "message": "Punishment tickets modified"
}

Error Responses

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

On this page