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.eyJzdWIiOiIxOTI3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzU4MDEyNTE2LCJleHAiOjE3NjA2MDQ1MTYsImp0aSI6IjEyNTU2ODRhLTQyZWUtNDVmMC05ZTIwLWU0Y2E0NGI2ZTliOSJ9.HrIEGlJF6iGeKX0ScGJ2wfEzD_BCI-xgi738E1uEA1E
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: 025249bf-7bd1-4b55-a95a-60d6b9d0bcf8
x-runtime: 0.022541
content-length: 88
Body
{
"settings": {
"id": false,
"push_job_notification": false,
"push_message_notification": true
}
}