Matchmaking
CancelTicket
POST
CancelTicket returns FAILED_PRECONDITION once the ticket is matched.
apiKeyheader
AuthorizationBearer <token>An organization API key, created in the console.
application/json- body
ticket*Success
application/json- response
ticket?curl -X POST 'https://api.aquilahosting.com/matchmaking.v1.MatchmakingService/CancelTicket' \ -H 'Content-Type: application/json' \ -d '{ "ticket": {}}'Example Response
{ "ticket": { "ticketId": "string", "queueId": "string", "playerIds": [ "string" ], "stringAttributes": { "property1": "string", "property2": "string" }, "numberAttributes": { "property1": 0.1, "property2": 0.1 }, "latenciesMs": { "property1": 0, "property2": 0 }, "state": "TICKET_STATE_UNSPECIFIED", "assignment": { "matchId": "string", "zone": "string", "gameServer": "string", "address": "string", "ports": [ { "name": "string", "port": 0, "protocol": "string" } ], "team": 0, "matchToken": "string" }, "createdAt": "2023-01-15T01:30:15.01Z", "expiresAt": "2023-01-15T01:30:15.01Z" }}UpdateFleet POST
UpdateFleet replaces the template. Allocated servers keep the old one until their match ends.
CreateTicket POST
CreateTicket returns RESOURCE_EXHAUSTED over the org's rate or the queue's limit of searching tickets, and FAILED_PRECONDITION when the queue is disabled or the org is not approved.