cURL
curl --request PUT \ --url https://codecombat.com/api/users/{handle}/hero-config \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data '{ "thangType": "<string>" }'
{ "_id": "<string>", "email": "<string>", "name": "<string>", "slug": "<string>", "role": "<string>", "stats": { "gamesCompleted": 123, "concepts": {}, "playTime": 123 }, "oAuthIdentities": [ { "provider": "<string>", "id": "<string>" } ], "subscription": { "ends": "<string>", "active": true }, "license": { "ends": "<string>", "active": true } }
Set the user’s hero.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The document's _id or slug.
_id
slug
The affected user
Subset of properties listed here