Description:
Returns a list of all contests created.
GET responses can be filtered out based on the Contests parameters to narrow down the results. CompetitionLabs provides a fully queryable API.
Resource URL:
https://<apphost>.competitionlabs.com/api/<your-space-name>/competitions/<competitionId>/contests
Request headers
Key | Value | Required |
---|---|---|
X-API-KEY | Your unique API key | Yes |
Content-Type | application/json | Yes |
Request URL parameters
Parameter | Type | Required | Description |
---|---|---|---|
space | String | Yes | This is the space name which is linked to the account |
competitionId | String | Yes | Competition identifier retrieved from GET Competitions resource |
Additional Query String Parameters
You can use the query parameters along with the generic parameters.
Query parameters for Contests
Parameter | Type | Constraint | Usage |
---|---|---|---|
competitionId | String | Case sensitive. | ?competitionId=search_string |
number | Integer | Numbers only | ?number=search_number |
label | String | Case sensitive. For lookup you would use "label.raw=search_word" because the field "label" is indexed to support more complex searches | ?label.raw=search_word |
description | String | Case sensitive | ?description=search_word |
termsConditions | String | Case sensitive | ?termsConditions=search_word |
round | Integer | Numbers only | ?round=search_number |
roundType | String | Case sensitive | ?roundType=search_word (you can find the Enum list in the Contests model) |
groupStage | Integer | Numbers only | ?groupStage=search_number |
groupStageLabel | String | Case sensitive | ?groupStageLabel=search_word |
entrantsFromContest | Array [String] | Case sensitive | ?entrantsFromContest=search_word |
options | Object | Complex search applies, allows full search on a complex object of Option | ?options.numberOfEntrants.minimum=search_number |
metadata | Array [Object] | Complex search applies, allows full search on a complex object of Metadata | ?metadata.key=search_word |
status | String | Case sensitive | ?status=search_word (you can find the Enum list in the Contest model) |
statusCode | Integer | Numbers only | ?statusCode=search_number (you can find the Enum list in the Contest model) |
created | DateTime | Works with simple dates or date and time, eg: created=2016-02-07, created=2018-08-23T14:23:09 | ?created=search_DateTime |
id | String | Case sensitive | ?id=search_string |
EXAMPLE
ERROR CODES
Code | HTTP Status | Description | Example |
---|---|---|---|
404 | The Request URL is incorrect |