Skip to main content

Change User's Settings

This endpoint changes the user settings for the authenticated user. See UserSettings for the list of possible user settings.

info

This operation does not require authentication.

HTTP Request

PATCH /api/v2/user/{id}/settings/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying the current user id
bodybodyUser SettingsfalseThe request body

Example Request

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

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

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeUserSettings