onContestRewardClaimed

Description:

Executed when a reward for a contest is claimed.

This assumes that a webhook has been registered to trap and execute the trigger on this type of event.

Resource URL:

https://your-endpoint

Request header

KeyValueRequired
Content-Type
application/jsonYes
Accept-Encoding
gzipYes
User_Agent
CompetitionLabs/1.0Yes
X-Account
Unique identifier of your accountYes
X-OnEvent
onContestRewardIssuedYes

Request Body Parameters:

Below are the default body parameters which will be posted to your endpoint, if no transformer is provided.

Parameter
Type
Constraint
Description
contestId
StringCase sensitiveCompetitionLabs unique identifier for contest
memberId
StringCase sensitiveCompetitionLabs unique identifier for member
awardId
StringCase sensitiveCompetitionLabs unique identifier for award
resourcePath
StringCase sensitivePath to element relative to CompetitionLabs url
timestamp
Long
Date time for trigger in UTC in milli seconds
spaceName
StringCase sensitiveThe space name you are using the webhooks on
objectType
StringCase sensitiveThe type of a webhook call

Example:

Response for query string request
{
  "contestId": "<cl-contest-id>",
  "memberId": "<cl-member-id>",
  "awardId": "<cl-award-id>",
  "resourcePath": "/api/<your-space-name>/awards/<cl-award-id>",
  "timestamp": 1505478547552,
  "spaceName": "<your-space-name>",
  "objectType": "ContestRewardClaimed"
}