Update a rewardType by ID
PUT/rewardType/:rewardTypeId
Update a rewardType by ID
Request
Path Parameters
The unique identifier for the rewardType to update
- application/json
Body
required
Data for updating the rewardType
Category of the reward type.
Detailed description of the reward type.
JSON string containing metadata, actions, and functions associated with the reward.
Title of the reward type.
URL of the thumbnail for the reward type.
Name of the reward type.
Responses
- 200
- 404
- 500
rewardType updated successfully
- application/json
- Schema
- Example (from schema)
Schema
Unique identifier for RewardType
JSON string containing metadata, actions, and functions associated with the reward.
Title of the reward type.
The date and time when the reward type was created.
URL of the thumbnail for the reward type.
Name of the reward type.
Category of the reward type.
Boolean to specify if the rewardType can reeemed once.
Detailed description of the reward type.
{
"id": "R3b19Z1n",
"data": "{\"validity\": \"30 days\", \"features\": [\"no ads\", \"exclusive content\"]}",
"title": "One Month Premium Subscription",
"createdAt": "2023-10-23T10:00:00Z",
"thumbnail": "https://example.com/thumbnail.png",
"name": "Premium Subscription",
"category": "Digital Goods",
"singleUse": "true",
"description": "This reward gives you access to premium features for one month."
}
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"
}