Description:
Returns a list of possible enums in competitions model.
Resource URL:
https://<apphost>.competitionlabs.com/api/<your-space-name>/competitions/enums/list
Key | Value | Required |
---|
X-API-KEY | Your unique API key | Yes |
Content-Type | application/json | Yes |
Request URL parameters
| | | |
---|
space | String | Yes | This is the space name which is linked to the account |
EXAMPLE
curl
--header "X-API-KEY: <your-api-key>"
--request GET https://app.competitionlabs.com/api/<your-space-name>/competitions/enums/list
{
"data": {
"competitionTypes": [
"Leaderboard",
"Elimination",
"Challenge",
"RoundRobin"
],
"competitionStatus": [
"Unknown",
"Deleting",
"Deleted",
"Draft",
"Template",
"Preparing",
"Ready",
"Starting",
"Active",
"Finishing",
"Finished",
"Cancelling",
"Cancelled"
],
"roundTypes": [
"TargetBased",
"TimeBound"
],
"contestStyles": [
"EntrantVsEntrant",
"EntrantVsEnvironment",
"EntrantVsGroup"
],
"memberType": [
"Individual",
"Team"
]
}
}
ERROR CODES
Code | HTTP Status | Description | Example |
---|
| 404 | The Request URL is incorrect | |