Create a new rewardType
POST/rewardType
Create a new rewardType
Request
- application/json
Body
Data for creating a new rewardType
Unique identifier for RewardType
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.
Category of the reward type.
Boolean to specify if the rewardType can reeemed once.
Detailed description of the reward type.
Responses
- 201
- 400
- 401
- 403
- 500
- default
rewardType successfully created
- 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."
}
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"
}
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"
}