Update a reward by ID
PUT/reward/:rewardId
Update a reward by ID
Request
Path Parameters
The unique identifier for the reward to update
- application/json
Body
Data for updating the reward
Possible values: <= 1000000
Points required to claim the reward
Maximum amount of times the reward can be claimed globally
Additional JSON metadata for triggers, actions, or general easy-access data
Possible values: <= 32 characters
Name of the reward
Expiration date for special rewards
Thumbnail image for the reward
Detailed description of the reward
Responses
- 200
- 403
- 404
- 500
Reward updated successfully
- application/json
- Schema
- Example (from schema)
Schema
Number of times this reward has been redeemed.
Expiration date for special rewards
Possible values: <= 32 characters
Name of the reward
Maximum number of times this reward can be redeemed.
Time representation of entity creation
Unique identifier for RewardType
Detailed description of the reward
The order in which the reward should be displayed
Additional JSON metadata for triggers, actions or general easy-access data
Possible values: <= 1000000
Points required to claim the reward
Number of times this reward has been redeemed by the current user.
ID of the project associated with the reward
Unique identifier for Reward
Optional URL for the reward's thumbnail image.
Maximum allowed number of times for the reward to be redeemed by a single user
{
"userRewardCount": 1,
"expiresAt": "2025-01-01T09:00:00.00Z",
"name": "Amazon gift card",
"maxClaims": null,
"createdAt": "2024-01-01T09:00:00.00Z",
"rewardTypeId": "R3b19Z1n",
"description": "By completing the quest you're awarded with a shimmery golden badge",
"rankOrder": 1,
"data": "{\"criteria\": \"complete_all_adventure_quests\", \"icon\": \"explorer_badge_icon.png\"}",
"requiredPoints": 10,
"myUserRewardCount": 2,
"projectId": "pGdouyKfY",
"id": "r3b19Z1n",
"thumbnail": "https://file.playmakers.co/r15Y7T4sM/r15Y7T4sM_thumbnail.png",
"userRewardsLimit": 3
}
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "Forbidden access"
}
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "Internal Server Error"
}