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
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | A unique integer value identifying the current user id |
body | body | User Settings | false | The request body |
Example Request
- JavaScript
- Bash
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);
});
# You can also use wget
curl -X PATCH /api/v2/user/{id}/settings/ \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json'
-H "Authorization: Bearer <token>"
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Response status code | UserSettings |