cURL
curl --request POST \ --url https://api.op.xyz/v1/community/{id}/badge/{badgeId}/reward \ --header 'Content-Type: application/json' \ --header 'X-Api-Key: <api-key>' \ --data ' { "name": "<string>", "image": "<string>", "provider": "Vault", "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": "Vault", "providerImage": "<string>", "name": "<string>", "type": "native", "status": "open", "amount": [ 123 ], "description": "<string>", "endDate": "2023-11-07T05:31:56Z", "maxSpend": 123, "vaultId": "<string>", "contract": "<string>", "chainId": "<string>", "transactionHash": "<string>", "deletedAt": "2023-11-07T05:31:56Z", "sentAt": "2023-11-07T05:31:56Z" }
Community ID
Badge ID
Vault
native
erc20
erc721
erc1155
points
open
pending
sent
Badge reward created successfully