PATCH
/
community
/
{id}
/
badge
/
{badgeId}
/
attribution
curl --request PATCH \
  --url https://api.other.page/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]": {}
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

id
string
required

Community ID

badgeId
string
required

Query Parameters

conditionKey
string

Optional condition key used to prevent invalid metadata updates

condition
enum<string>

Optional condition used to determine the comparison of the new metadata value to the current value

Available options:
gt,
lt

Body

application/json

Response

200 - application/json

The response is of type object.