---
title: "Update the caller's preferences"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update the caller's preferences

Path: CloudRaker Workspace API › Me

`PUT /me/preferences`

Strict partial merge: send only the fields to change (`language`, `developer`, `notifications`, `files`); nested objects merge per key, and unknown keys are rejected. Returns the full updated preferences. Authorization: any authenticated member of the tenant (the caller edits only their own preferences). Returns 400 for an invalid body.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Request body

_Required._

- `language` (`updateMyPreferences.language`; string, optional)
  - one of `"en"`, `"fr-ca"`
- `developer` (`updateMyPreferences.developer`; boolean, optional)
- `notifications` (`updateMyPreferences.notifications`; object, optional)
  - `approvalRequested` (`updateMyPreferences.notifications.approvalRequested`; boolean, optional) — Email when something needs the user to approve or review it. Defaults to true.
  - `humanTask` (`updateMyPreferences.notifications.humanTask`; boolean, optional) — Email when a task is ready for (or assigned to) the user. Defaults to true.
  - `runState` (`updateMyPreferences.notifications.runState`; boolean, optional) — Email when something the user started pauses or fails. Defaults to true.
  - `signingProgress` (`updateMyPreferences.notifications.signingProgress`; boolean, optional) — Email when a recipient signs or declines a document the user sent, or when it completes. Defaults to true.
- `files` (`updateMyPreferences.files`; object, optional)
  - `sortKey` (`updateMyPreferences.files.sortKey`; string, optional) — Field the file list is ordered by. Defaults to name.
    - one of `"createdAt"`, `"kind"`, `"name"`, `"size"`, `"updatedAt"`; example `"name"`
  - `sortDirection` (`updateMyPreferences.files.sortDirection`; string, optional) — Direction of that ordering. Defaults to asc.
    - one of `"asc"`, `"desc"`; example `"asc"`

## Example request

```json
{
  "language": "en",
  "developer": true,
  "notifications": {
    "approvalRequested": true,
    "humanTask": true,
    "runState": true,
    "signingProgress": true
  },
  "files": {
    "sortKey": "name",
    "sortDirection": "asc"
  }
}
```

## Code samples

### cURL

```bash
curl --request PUT \
  --url https://api.cloudraker.com/me/preferences \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "language": "en",
  "developer": true,
  "notifications": {
    "approvalRequested": true,
    "humanTask": true,
    "runState": true,
    "signingProgress": true
  },
  "files": {
    "sortKey": "name",
    "sortDirection": "asc"
  }
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/me/preferences';
const options = {
  method: 'PUT',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    language: 'en',
    developer: true,
    notifications: {
      approvalRequested: true,
      humanTask: true,
      runState: true,
      signingProgress: true
    },
    files: {sortKey: 'name', sortDirection: 'asc'}
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/me/preferences"

payload = {
    "language": "en",
    "developer": True,
    "notifications": {
        "approvalRequested": True,
        "humanTask": True,
        "runState": True,
        "signingProgress": True
    },
    "files": {
        "sortKey": "name",
        "sortDirection": "asc"
    }
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

The updated preferences.

#### Example

```json
{
  "language": "en",
  "developer": false,
  "notifications": {
    "approvalRequested": true,
    "humanTask": true,
    "runState": true,
    "signingProgress": true
  },
  "files": {
    "sortKey": "name",
    "sortDirection": "asc"
  }
}
```

- `language` (`updateMyPreferences.response.200.language`; any of, required) — The user's chosen language, or null if never set.
  - example `"en"`
  - any of:
    - `string`: one of `"en"`, `"fr-ca"`
    - `null`
- `developer` (`updateMyPreferences.response.200.developer`; boolean, required) — Whether developer mode is enabled. Defaults to false.
  - example `false`
- `notifications` (`updateMyPreferences.response.200.notifications`; object, required) — Notification preferences, always fully populated (missing keys read true).
  - `approvalRequested` (`updateMyPreferences.response.200.notifications.approvalRequested`; boolean, required) — Email when something needs the user to approve or review it. Defaults to true.
  - `humanTask` (`updateMyPreferences.response.200.notifications.humanTask`; boolean, required) — Email when a task is ready for (or assigned to) the user. Defaults to true.
  - `runState` (`updateMyPreferences.response.200.notifications.runState`; boolean, required) — Email when something the user started pauses or fails. Defaults to true.
  - `signingProgress` (`updateMyPreferences.response.200.notifications.signingProgress`; boolean, required) — Email when a recipient signs or declines a document the user sent, or when it completes. Defaults to true.
- `files` (`updateMyPreferences.response.200.files`; object, required) — File list sort preferences, always fully populated (missing keys read their default).
  - `sortKey` (`updateMyPreferences.response.200.files.sortKey`; string, required) — Field the file list is ordered by. Defaults to name.
    - one of `"createdAt"`, `"kind"`, `"name"`, `"size"`, `"updatedAt"`; example `"name"`
  - `sortDirection` (`updateMyPreferences.response.200.files.sortDirection`; string, required) — Direction of that ordering. Defaults to asc.
    - one of `"asc"`, `"desc"`; example `"asc"`

### 400

Validation Error

#### Example

```json
{
  "success": false,
  "error": [
    null
  ],
  "data": null
}
```

- `success` (`updateMyPreferences.response.400.success`; boolean, required)
  - one of `false`
- `error` (`updateMyPreferences.response.400.error`; array<unknown>, required)
- `data` (`updateMyPreferences.response.400.data`; unknown, required)


Source: https://docs.cloudraker.com/workspace/api/me/update-my-preferences/index.md
