Tournament API › Sponsors
GET /tournament-sponsors
Returns all sponsors, ordered by ascending position.
Resource URL
https://api.toornament.com/organizer/v2/tournament-sponsors
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:admin
scope (see Authorization) - Rangestring
A range of requested items using the
sponsors
unit. The size of the range can not exceed 50. (see Pagination)Example: sponsors=0-49
Query Parameters
- tournament_idsarray
Only return sponsors for the given list of tournaments.
Example: 378426939508809728,534138941862841533
Request Body
This endpoint does not require a request body.
Response
[206] Sponsors retrieved.
Example
[ { "id": "495923570669058051", "tournament_id": "378426939508809728", "name": "My Weekly Tournament", "website": "http:\/\/www.toornament.com", "position": 5, "light_logo": { "id": "529400138800557511" } } ]
Structure (collection)
- idstring
The unique identifier of the sponsor.
Example: "495923570669058051"
- tournament_idstring
An identifier for a tournament; can be used in other APIs.
Example: "378426939508809728"
- namestring
The name of the sponsor.
Max. length: 30 characters
Example: "My Weekly Tournament"
- websitestring|null
The sponsor's website URL.
Example: "http://www.toornament.com"
- positioninteger
The position of the sponsor (used for display purposes).
Example: 5
- light_logoobject
The sponsor logo reference object.
POST /tournament-sponsors
Creates a new sponsor in a tournament.
Resource URL
https://api.toornament.com/organizer/v2/tournament-sponsors
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:admin
scope (see Authorization)
Query Parameters
This endpoint does not have any query parameters.
Request Body
Sponsor data
Example
{ "tournament_id": "378426939508809728", "name": "My Weekly Tournament", "website": "http:\/\/www.toornament.com", "position": 5, "light_logo": { "id": "529400138800557511" } }
Structure (object)
- tournament_idstring
An identifier for a tournament; can be used in other APIs.
Example: "378426939508809728"
- namestring
The name of the sponsor.
Max. length: 30 characters
Example: "My Weekly Tournament"
- websitestring|null
The sponsor's website URL.
Example: "http://www.toornament.com"
- positioninteger
The position of the sponsor (used for display purposes).
Example: 5
- light_logoobject
The sponsor logo reference object.
Response
[201] Sponsor created.
Example
{ "id": "495923570669058051", "tournament_id": "378426939508809728", "name": "My Weekly Tournament", "website": "http:\/\/www.toornament.com", "position": 5, "light_logo": { "id": "529400138800557511" } }
Structure (object)
- idstring
The unique identifier of the sponsor.
Example: "495923570669058051"
- tournament_idstring
An identifier for a tournament; can be used in other APIs.
Example: "378426939508809728"
- namestring
The name of the sponsor.
Max. length: 30 characters
Example: "My Weekly Tournament"
- websitestring|null
The sponsor's website URL.
Example: "http://www.toornament.com"
- positioninteger
The position of the sponsor (used for display purposes).
Example: 5
- light_logoobject
The sponsor logo reference object.
GET /tournament-sponsors/{id}
Returns a sponsor identified with the given id.
Resource URL
https://api.toornament.com/organizer/v2/tournament-sponsors/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:admin
scope (see Authorization)
Path parameters
- idstring
The id of the sponsor.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] Sponsor retrieved.
Example
{ "id": "495923570669058051", "tournament_id": "378426939508809728", "name": "My Weekly Tournament", "website": "http:\/\/www.toornament.com", "position": 5, "light_logo": { "id": "529400138800557511" } }
Structure (object)
- idstring
The unique identifier of the sponsor.
Example: "495923570669058051"
- tournament_idstring
An identifier for a tournament; can be used in other APIs.
Example: "378426939508809728"
- namestring
The name of the sponsor.
Max. length: 30 characters
Example: "My Weekly Tournament"
- websitestring|null
The sponsor's website URL.
Example: "http://www.toornament.com"
- positioninteger
The position of the sponsor (used for display purposes).
Example: 5
- light_logoobject
The sponsor logo reference object.
PATCH /tournament-sponsors/{id}
Updates one or several elements of a single sponsor.
Resource URL
https://api.toornament.com/organizer/v2/tournament-sponsors/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:admin
scope (see Authorization)
Path parameters
- idstring
The id of the sponsor.
Query Parameters
This endpoint does not have any query parameters.
Request Body
Tournament data.
Example
{ "name": "My Weekly Tournament", "website": "http:\/\/www.toornament.com", "position": 5, "light_logo": { "id": "529400138800557511" } }
Structure (object)
- namestring
Optional
The name of the sponsor.
Max. length: 30 characters
Example: "My Weekly Tournament"
- websitestring|null
Optional
The sponsor's website URL.
Example: "http://www.toornament.com"
- positioninteger
Optional
The position of the sponsor (used for display purposes).
Example: 5
- light_logoobject
Optional
The sponsor logo reference object.
Response
[200] Success.
Example
{ "id": "495923570669058051", "tournament_id": "378426939508809728", "name": "My Weekly Tournament", "website": "http:\/\/www.toornament.com", "position": 5, "light_logo": { "id": "529400138800557511" } }
Structure (object)
- idstring
The unique identifier of the sponsor.
Example: "495923570669058051"
- tournament_idstring
An identifier for a tournament; can be used in other APIs.
Example: "378426939508809728"
- namestring
The name of the sponsor.
Max. length: 30 characters
Example: "My Weekly Tournament"
- websitestring|null
The sponsor's website URL.
Example: "http://www.toornament.com"
- positioninteger
The position of the sponsor (used for display purposes).
Example: 5
- light_logoobject
The sponsor logo reference object.
DELETE /tournament-sponsors/{id}
Deletes a single sponsor, identified by the given id.
Resource URL
https://api.toornament.com/organizer/v2/tournament-sponsors/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:admin
scope (see Authorization)
Path parameters
- idstring
The id of the sponsor.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.