Set My Primary Avatar
This endpoint sets my primary avatar
info
This operation requires authentication.
HTTP Request
PATCH /api/v2/user/avatar/
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
avatar_id | body | string | true | A unique integer value identifying this avatar |
Example Body Parameters
- JSON
{
"avatar_id": "integer"
}
Example Request
- JavaScript
- Bash
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);
});
# You can also use wget
curl -X PATCH /api/v2/user/avatar/ \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access_token}' \
--DATA '{body}'
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | Response status code | None |