curl --request POST \
--url https://api.other.page/v1/community/{id}/badge/{badgeId}/reward \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{
"name": "<string>",
"image": "<string>",
"provider": "Thank APE",
"type": "native",
"status": "open",
"vaultId": "<string>",
"contract": "<string>",
"chainId": "<string>",
"amount": [
"<string>"
],
"description": "<string>",
"endDate": "2023-11-07T05:31:56Z",
"maxSpend": 123
}'
{
"id": "<string>",
"image": "<string>",
"provider": "Thank APE",
"providerImage": "<string>",
"name": "<string>",
"type": "native",
"status": "open",
"vaultId": "<string>",
"contract": "<string>",
"chainId": "<string>",
"amount": [
123
],
"description": "<string>",
"endDate": "2023-11-07T05:31:56Z",
"maxSpend": 123,
"transactionHash": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"sentAt": "2023-11-07T05:31:56Z"
}
Create a reward for a badge. Badge rewards are used to provide additional incentives for members to earn badges.
curl --request POST \
--url https://api.other.page/v1/community/{id}/badge/{badgeId}/reward \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{
"name": "<string>",
"image": "<string>",
"provider": "Thank APE",
"type": "native",
"status": "open",
"vaultId": "<string>",
"contract": "<string>",
"chainId": "<string>",
"amount": [
"<string>"
],
"description": "<string>",
"endDate": "2023-11-07T05:31:56Z",
"maxSpend": 123
}'
{
"id": "<string>",
"image": "<string>",
"provider": "Thank APE",
"providerImage": "<string>",
"name": "<string>",
"type": "native",
"status": "open",
"vaultId": "<string>",
"contract": "<string>",
"chainId": "<string>",
"amount": [
123
],
"description": "<string>",
"endDate": "2023-11-07T05:31:56Z",
"maxSpend": 123,
"transactionHash": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"sentAt": "2023-11-07T05:31:56Z"
}
Badge reward created successfully
The response is of type object
.