cURL
curl --request PATCH \ --url https://api.op.xyz/v1/community/{id}/badge/{badgeId}/attribution \ --header 'Content-Type: application/json' \ --header 'X-Api-Key: <api-key>' \ --data ' { "wallet": "<string>", "metadata": {} } '
{ "id": "<string>", "badgeId": "<string>", "earnedAt": "2023-11-07T05:31:56Z", "claimedAt": "2023-11-07T05:31:56Z", "transactionHash": "<string>", "tokenId": "<string>", "chainId": 123, "contract": "<string>", "metadata": {}, "metadata.[key]": {} }
Community ID
Optional condition key used to prevent invalid metadata updates
Optional condition used to determine the comparison of the new metadata value to the current value
gt
lt
Wallet address (if not using a claim code)
Metadata to be included in the badge attribution