Permission API › Tournament permissions
Endpoints
- GET /tournaments/{tournament_id}/permissions
Retrieve the list of user permissions of a tournament.
- POST /tournaments/{tournament_id}/permissions
Create a new user permission in a tournament.
- GET /tournaments/{tournament_id}/permissions/{id}
Retrieve a single user permission of a tournament.
- PATCH /tournaments/{tournament_id}/permissions/{id}
Update the rights of a user permission in a tournament.
- DELETE /tournaments/{tournament_id}/permissions/{id}
Delete a user permission in a tournament.
GET /tournaments/{tournament_id}/permissions
Returns the complete list of permissions of a tournament.
Resource URL
https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/permissions
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:permission
scope (see Authorization)
Path parameters
- tournament_idstring
The identifier of the tournament.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] Success
Example
[ { "id": "378436939507009728", "email": "[email protected]", "attributes": [ "report", "place", "register" ] } ]
Structure (collection)
- idstring
The permission identifier.
Example: "378436939507009728"
- emailstring
Email of the user.
Example: "[email protected]"
- attributesarray[string]
The list of permissions of the user in the tournament.
Possible values: admin, setup, structure, report, fill, place, register, standing
POST /tournaments/{tournament_id}/permissions
Creates a new user permission in a tournament. You can not have more than 128 permissions in a tournament.
Resource URL
https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/permissions
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:permission
scope (see Authorization)
Path parameters
- tournament_idstring
The identifier of the tournament.
Query Parameters
This endpoint does not have any query parameters.
Request Body
Permission data
Example
{ "email": "[email protected]", "attributes": [ "report", "place", "register" ] }
Structure (object)
- emailstring
Email of the user.
Example: "[email protected]"
- attributesarray[string]
The list of permissions of the user in the tournament.
Possible values: admin, setup, structure, report, fill, place, register, standing
Response
[201] Success
Example
{ "id": "378436939507009728", "email": "[email protected]", "attributes": [ "report", "place", "register" ] }
Structure (object)
- idstring
The permission identifier.
Example: "378436939507009728"
- emailstring
Email of the user.
Example: "[email protected]"
- attributesarray[string]
The list of permissions of the user in the tournament.
Possible values: admin, setup, structure, report, fill, place, register, standing
GET /tournaments/{tournament_id}/permissions/{id}
Returns a single user permission of a tournament.
Resource URL
https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/permissions/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:permission
scope (see Authorization)
Path parameters
- tournament_idstring
The identifier of the tournament.
- idstring
The identifier of the permission.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] Success
Example
{ "id": "378436939507009728", "email": "[email protected]", "attributes": [ "report", "place", "register" ] }
Structure (object)
- idstring
The permission identifier.
Example: "378436939507009728"
- emailstring
Email of the user.
Example: "[email protected]"
- attributesarray[string]
The list of permissions of the user in the tournament.
Possible values: admin, setup, structure, report, fill, place, register, standing
PATCH /tournaments/{tournament_id}/permissions/{id}
Updates the rights of a user permission.
Resource URL
https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/permissions/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:permission
scope (see Authorization)
Path parameters
- tournament_idstring
The identifier of the tournament.
- idstring
The identifier of the permission.
Query Parameters
This endpoint does not have any query parameters.
Request Body
Permission data
Example
{ "attributes": [ "report", "place", "register" ] }
Structure (object)
- attributesarray[string]
The list of permissions of the user in the tournament.
Possible values: admin, setup, structure, report, fill, place, register, standing
Response
[200] Success
Example
{ "id": "378436939507009728", "email": "[email protected]", "attributes": [ "report", "place", "register" ] }
Structure (object)
- idstring
The permission identifier.
Example: "378436939507009728"
- emailstring
Email of the user.
Example: "[email protected]"
- attributesarray[string]
The list of permissions of the user in the tournament.
Possible values: admin, setup, structure, report, fill, place, register, standing
DELETE /tournaments/{tournament_id}/permissions/{id}
Deletes a user permissions from a tournament.
Resource URL
https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/permissions/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:permission
scope (see Authorization)
Path parameters
- tournament_idstring
The identifier of the tournament.
- idstring
The identifier of the permission.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.