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.eyJzdWIiOiIxODY1Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTk1LCJleHAiOjE3NDAxNDM1OTUsImp0aSI6ImQxZmE4NDhlLWM1ZjEtNDgyZC04ZTFlLWEwMjIyZjRmZjA4NiJ9.jmoScezC4ZURGHzjFgXbdQ3h0Npq3rgphJvbAP8JyDU
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: e2813bd0-e233-4630-8eb6-af5e7baaadc3
x-runtime: 0.010505
content-length: 88
Body
{
"settings": {
"id": false,
"push_job_notification": false,
"push_message_notification": true
}
}