CreateTicket
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.
apiKeyAuthorizationBearer <token>An organization API key, created in the console.
application/json- body
organizationId?organization_iduuidqueue?queueQueue name.
1 <= length <= 40playerIds?array<>One player, or a party that stays on one team. At most the queue's team size.
1 <= items <= 100stringAttributes?Keys are lowercase letters, digits, dashes and underscores. A ticket missing one of the queue's equal attributes matches only tickets also missing it. Every range attribute of the queue is required.
properties <= 16numberAttributes?Values for the queue's range attributes, such as skill.
properties <= 16latenciesMs?Round trip in ms per zone, as the player's client measured it. A ticket with latencies is only matched in the zones it lists, preferring the one whose worst latency in the match is lowest. Without any it takes every zone.
properties <= 16Success
application/json- response
ticket?curl -X POST 'https://api.aquilahosting.com/matchmaking.v1.MatchmakingService/CreateTicket' \ -H 'Content-Type: application/json' \ -d '{}'{ "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" }}