Update Reward's Thumbnail
PUT/reward/:rewardId/thumbnail
Update Reward's Thumbnail
Request
Path Parameters
The rewardId to update
- multipart/form-data
Body
Reward thumbnail image file
Responses
- 200
- 400
- 401
- 403
- 404
- 500
- default
Reward successfully updated
- application/json
- Schema
- Example (from schema)
Schema
Number of times this reward has been redeemed.
Expiration date for special rewards
Number of times this reward has been redeemed by the current user.
Additional JSON metadata for triggers, actions or general easy-access data
Maximum allowed number of times for the reward to be redeemed by a single user
Possible values: <= 1000000
Points required to claim the reward
Detailed description of the reward
The order in which the reward should be displayed
Optional URL for the reward's thumbnail image.
Unique identifier for RewardType
ID of the project associated with the reward
Time representation of entity creation
Maximum number of times this reward can be redeemed.
Possible values: <= 32 characters
Name of the reward
Unique identifier for Reward
{
"userRewardCount": 1,
"expiresAt": "2025-01-01T09:00:00.00Z",
"myUserRewardCount": 2,
"data": "{\"criteria\": \"complete_all_adventure_quests\", \"icon\": \"explorer_badge_icon.png\"}",
"userRewardsLimit": 3,
"requiredPoints": 10,
"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!\"]}",
"rankOrder": 1,
"thumbnail": "https://file.playmakers.co/r15Y7T4sM/r15Y7T4sM_thumbnail.png",
"rewardTypeId": "R3b19Z1n",
"projectId": "pGdouyKfY",
"createdAt": "2024-01-01T09:00:00.00Z",
"maxClaims": null,
"name": "Amazon gift card",
"id": "r3b19Z1n"
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "Bad Request"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "Unauthorized access"
}
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"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "An unexpected error occured"
}