Skip to main content
PATCH
/
leagues
/
{identifier}
/
tickets
/
{ticketId}
Update a league support ticket
curl --request PATCH \
  --url https://teambattles.gg/api/v1/leagues/{identifier}/tickets/{ticketId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "assignedTo": "<string>"
}
'
{
  "success": true,
  "timestamp": "<string>"
}

Permission Required

This endpoint requires a league-operator API key bound to the league with the tickets capability set to write.

Membership Required

The API key owner must have a MANAGER or higher role in the league, or be a TeamBattles staff member.

League Identifier

The {identifier} path parameter accepts a league slug or Convex league ID.

Ticket ID

The {ticketId} path parameter is the league ticket to update.

Behavior

Use this endpoint to update one or more ticket workflow fields: status, priority, or assignedTo. Status must be one of open, in_progress, awaiting_response, resolved, or closed. Priority must be one of low, medium, high, or urgent. Send assignedTo as a user ID to assign the ticket, or null to clear the assignment.

Authorizations

Authorization
string
header
required

Send your API key as: Authorization: Bearer tb_

Path Parameters

identifier
string
required

League slug or Convex league ID.

ticketId
string
required

League ticket ID.

Body

application/json

Updates league ticket status, priority, or assignment.

status
enum<string>
Available options:
open,
in_progress,
awaiting_response,
resolved,
closed
priority
enum<string>
Available options:
low,
medium,
high,
urgent
assignedTo
string | null

User ID to assign, or null to clear assignment.

Minimum string length: 1

Response

The ticket was updated.

success
boolean
required
timestamp
string
required

Response generation time (ISO 8601).