Description:
Returns a list of rewards.
Resource URL:
https://<apphost>.competitionlabs.com/api/<your-space-name>/reward
Request header
Key | Value | Required |
X-API-KEY | Your unique API key | Yes |
Content-Type | application/json | Yes |
Request URL parameter
Parameter | Type | Required | Description |
---|---|---|---|
space | String | Yes | This is the space name which is linked to the account |
Additional Query String Parameters
You can use the query parameters along with the generic parameters.
Query parameters for Contests
Parameter | Type | Constraint | Usage |
---|---|---|---|
entityId | String | Case sensitive | ?entityId=search_word |
rewardRank | String | Case sensitive | ?rewardRank=search_word |
rewardName | String | Case sensitive. For lookup you would use "rewardName.raw=search_word" because the field "rewardName" is indexed to support more complex searches | ?rewardName.raw=search_word |
value | Double | Case sensitive | ?value=search_word |
rewardType | String | Case sensitive Query with the reward type Id | ?rewardType=search_word |
description | String | Case sensitive | ?description=search_word |
delay | Integer | Numbers only | ?delay=search_number |
memberAcknowledgmentRequired | Boolean | Case sensitive | ?memberAcknowledgmentRequired=search_word |
metadata | Array [Object] | Complex search applies, allows full search on a complex object of Metadata | ?metadata.key=search_word |
pointInTime | DateTime | Case sensitive Works with simple dates or date and time, example: pointInTime=2016-02-07, pointInTime=2018-08-23T14:23:09 If a response gives "pointInTime"="2018-12-11T11:18:56.546+0000" then the value you can use is up to "2018-12-11T11:18:56.546" | ?pointInTime=search_word |
period | Integer | Numbers only | ?period=search_number |
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 | ||
1009 | 500 | Query with an incorrect query that is case sensitive |