PATCH
/
account
/
connected-avatar
curl --request PATCH \
  --url https://alpha-api.other.page/v1/account/connected-avatar \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "avatarId": "<string>"
}'
{
  "id": "<string>",
  "name": "<string>",
  "title": "<string>",
  "primary": true,
  "bio": "<string>",
  "token": {
    "id": "<string>",
    "collectionName": "<string>",
    "name": "<string>",
    "kind": "erc721",
    "chainId": "1",
    "contract": "<string>",
    "tokenId": "<string>",
    "image": "<string>",
    "uri": "<string>",
    "rarity": "<string>",
    "rarityRank": 123,
    "description": "<string>",
    "externalUrl": "<string>",
    "animationUrl": "<string>",
    "traits": [
      {
        "key": "<string>",
        "type": "<string>",
        "value": "<string>",
        "tokenCount": 123,
        "rarity": 123,
        "rarityPercent": 123
      }
    ],
    "quantity": 123,
    "burnDate": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  },
  "loadouts": [
    {
      "type": "image",
      "image": "<string>",
      "model": "<string>",
      "modelType": "gltf",
      "equipment": [
        {
          "slotId": "<string>",
          "tokenId": "<string>",
          "thumbnail": "<string>"
        }
      ]
    }
  ],
  "badges": [
    {
      "id": "<string>",
      "accountId": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>",
      "earnedAt": "<string>",
      "claimedAt": "<string>",
      "requirements": [
        {
          "items": [
            {
              "link": "<string>",
              "tokenId": "<string>",
              "contract": "<string>",
              "thumbnail": "<string>"
            }
          ],
          "title": "<string>",
          "meta": {},
          "total": 123,
          "completedAt": "2023-11-07T05:31:56Z"
        }
      ],
      "badge": {
        "id": "<string>",
        "name": "<string>",
        "image": "<string>",
        "rewards": [
          {
            "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"
          }
        ],
        "requirements": [
          [
            "<any>"
          ]
        ]
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
avatarId
string
required

Response

200 - application/json
id
string
required
name
string
required
title
string
required
primary
boolean
required
bio
string
required
token
object
required
loadouts
object[]
required
badges
object[]
required