Structure API › Placement
GET /stages/{id}/slots
Returns slots ordered by ascending number.
Resource URL
https://api.toornament.com/organizer/v2/stages/{id}/slots
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:placement
scope (see Authorization)
Path parameters
- idstring
The id of the stage.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] List of all slots.
Example
[ { "locked": false, "number": 1, "participant_id": "5263787696002328930" } ]
Structure (collection)
- lockedboolean
Whether the slot is locked by structure.
Example: false
- numberinteger
A seed number.
Example: 1
- participant_idstring|null
The id of the participant.
Example: "5263787696002328930"
PATCH /stages/{id}/slots
Updates slots and their associated participants, based on the numbers you include in the call.
Resource URL
https://api.toornament.com/organizer/v2/stages/{id}/slots
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:placement
scope (see Authorization)
Path parameters
- idstring
The id of the stage.
Query Parameters
This endpoint does not have any query parameters.
Request Body
Slots data
Example
[ { "number": 1, "participant_id": "5263787696002328930" } ]
Structure (collection)
- numberinteger
A seed number.
Example: 1
- participant_idstring|null
The id of the participant.
Example: "5263787696002328930"
Response
[200] Success
Example
[ { "locked": false, "number": 1, "participant_id": "5263787696002328930" } ]
Structure (collection)
- lockedboolean
Whether the slot is locked by structure.
Example: false
- numberinteger
A seed number.
Example: 1
- participant_idstring|null
The id of the participant.
Example: "5263787696002328930"