Structure API › Placement

GET /stages/{id}/slots

Beta

Returns slots ordered by ascending number.

Resource URL

https://api.toornament.com/organizer/v2/stages/{id}/slots

HTTP headers

  • X-Api-Key
    string

    API key of your application (see Authentication)

  • Authorization
    string

    Access token with organizer:placement scope (see Authorization)

Path parameters

  • id
    string

    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)
  • locked
    boolean

    Whether the slot is locked by structure.

    Example: false

  • number
    integer

    A seed number.

    Example: 1

  • participant_id
    string|null

    The id of the participant.

    Example: "5263787696002328930"

PATCH /stages/{id}/slots

Beta

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-Key
    string

    API key of your application (see Authentication)

  • Authorization
    string

    Access token with organizer:placement scope (see Authorization)

Path parameters

  • id
    string

    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)
  • number
    integer

    A seed number.

    Example: 1

  • participant_id
    string|null

    The id of the participant.

    Example: "5263787696002328930"

Response

[200] Success

Example
[
    {
        "locked": false,
        "number": 1,
        "participant_id": "5263787696002328930"
    }
]
Structure (collection)
  • locked
    boolean

    Whether the slot is locked by structure.

    Example: false

  • number
    integer

    A seed number.

    Example: 1

  • participant_id
    string|null

    The id of the participant.

    Example: "5263787696002328930"