Skip to main content

Set My Primary Avatar

This endpoint sets my primary avatar

info

This operation requires authentication.

HTTP Request

PATCH /api/v2/user/avatar/

Parameters

NameInTypeRequiredDescription
avatar_idbodystringtrueA unique integer value identifying this avatar

Example Body Parameters

{
"avatar_id": "integer"
}

Example Request

const inputBody = '{
"avatar_id": "integer"
}';
const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/user/avatar/',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
204No ContentResponse status codeNone