Description:
Returns reward details for the entity ID specified.
Resource URL:
https://<apphost>.competitionlabs.com/api/<your-space-name>/reward/entity/<entityId>
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 |
entityId | String | Yes | Reward entity identifier retrieved from publicĀ GET Rewards resource |
EXAMPLE
curl
--header "X-API-KEY: <your-api-key>"
--request GET https://app.competitionlabs.com/api/<your-space-name>/reward/entity/J7OrzmUBOmEkXOJn8GTb
{
"data": [
{
"jsonClass": "Reward",
"entityId": "J7OrzmUBOmEkXOJn8GTb",
"rewardRank": "1",
"rewardName": "test",
"value": 1,
"rewardType": "RmTbPGUBsZyUBGORB-_M",
"description": "test",
"delay": 0,
"memberAcknowledgmentRequired": false,
"metadata": [
{
"jsonClass": "Metadata",
"key": "1",
"value": "1"
}
],
"accountId": "QmTaPGUBsZyUBGOR_u9A",
"pointInTime": "2018-09-12T16:44:59.497+00:00",
"created": "2018-09-12T16:44:59.497+00:00",
"id": "KLOrzmUBOmEkXOJn8GTp",
"translations": {},
"translatableFields": [
"rewardName",
"description"
]
}
]
}
ERROR CODES
Code | HTTP Status | Description | Example |
---|
1007 | 404 | No IdĀ was inserted in the Request URL |
{
"errors": [
{
"message": "A record with requested id was not found.",
"code": 1007,
"status": 404
}
]
}
|
| 404 | The Request URL is incorrect | |