Update current driver’s settings.
Users > Settings
PUT update settings
Endpoint
PUT /api/v1/users/settings
Parameters
Name | Description |
---|---|
settings[push_job_notification] | Settings push job notification |
settings[push_message_notification] | Settings push message notification |
Request
Route
PUT /api/v1/users/settings
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxODk2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTU2LCJleHAiOjE3NDUwNTY5NTYsImp0aSI6Ijc3ZTQwZDk5LTFlZmYtNGJkOS04MzMzLWNlZTQ0ZGQ5NjQ0YSJ9.sIXIJwpjTFUNE7htdvyZrx50rvXlwBv7wHOmfioW4Kk
Host: example.org
Cookie:
Body
{
"settings": {
"push_job_notification": false,
"push_message_notification": true
}
}
Response
Simulated Response
Status
200
Headers
x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"d54e0a36ac919a9b9e829cab8330bd03"
cache-control: max-age=0, private, must-revalidate
x-request-id: 262e4aa1-fb92-4257-841a-1b5ec3ab2737
x-runtime: 0.013905
content-length: 88
Body
{
"settings": {
"id": false,
"push_job_notification": false,
"push_message_notification": true
}
}