Skip to content

Update the current user's preferences

Request

Update the currently authenticated User's preferences

Security
bearerToken
Bodyapplication/jsonrequired
defaultSortobject or null
defaultSearchFiltersMatchValuesobject or null
curl -i -X PATCH \
  https://api-v2.dash.app/current-user-preferences \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "defaultSort": {
      "value": {
        "field": {
          "type": "FIXED",
          "fieldName": "STAGED_BY"
        },
        "order": "ASC"
      }
    },
    "defaultSearchFiltersMatchValues": {
      "property1": "ALL",
      "property2": "ALL"
    }
  }'

Responses

Success

Bodyapplication/json
resultobjectrequired
permittedActionsArray of objectsrequired
Response
{ "result": { "userId": "google-oauth2|110955770826801837334", "defaultSort": {}, "defaultSearchFiltersMatchValues": {} }, "permittedActions": [ {} ] }