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
Thumbnail image for the reward
Possible values: <= 32 characters
Name of the reward
Possible values: <= 1000000
Points required to claim the reward
Expiration date for special rewards
Maximum amount of times the reward can be claimed globally
Detailed description of the reward
Additional JSON metadata for triggers, actions, or general easy-access data
Responses
- 200
- 403
- 404
- 500
Reward updated successfully
- application/json
- Schema
- Example (from schema)
Schema
Optional URL for the reward's thumbnail image.
Time representation of entity creation
Possible values: <= 32 characters
Name of the reward
Possible values: <= 1000000
Points required to claim the reward
Maximum allowed number of times for the reward to be redeemed by a single user
Detailed description of the reward
Number of times this reward has been redeemed by the current user.
Additional JSON metadata for triggers, actions or general easy-access data
The order in which the reward should be displayed
Unique identifier for RewardType
Number of times this reward has been redeemed.
Maximum number of times this reward can be redeemed.
Unique identifier for Reward
ID of the project associated with the reward
Expiration date for special rewards
{
"thumbnail": "https://file.playmakers.co/r15Y7T4sM/r15Y7T4sM_thumbnail.png",
"createdAt": "2024-01-01T09:00:00.00Z",
"name": "Amazon gift card",
"requiredPoints": 10,
"userRewardsLimit": 3,
"description": "{\"pre\":[\"Are you sure you want to claim this reward?\"],\"short\":\"A 20$ gift card for my followers\",\"post\":[\"Your reward has been redeemed successfully!\"]}",
"myUserRewardCount": 2,
"data": "{\"criteria\": \"complete_all_adventure_quests\", \"icon\": \"explorer_badge_icon.png\"}",
"rankOrder": 1,
"rewardTypeId": "R3b19Z1n",
"userRewardCount": 1,
"maxClaims": null,
"id": "r3b19Z1n",
"projectId": "pGdouyKfY",
"expiresAt": "2025-01-01T09:00:00.00Z"
}
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"
}