---
title: "Change what a commitment covers or when it next runs"
---

> 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.

# Change what a commitment covers or when it next runs

Path: CloudRaker Workspace API › My assistant

`PATCH /me/assistant/commitments/{commitmentId}`

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `commitmentId` (`updateMyAssistantCommitment.path.commitmentId`; string, required)
  - pattern `^cmt_[0-9A-HJKMNP-TV-Z]{26}$`

## Request body

_Required._

- `version` (`updateMyAssistantCommitment.version`; integer, required)
  - min -9007199254740991; max 9007199254740991
- `outcome` (`updateMyAssistantCommitment.outcome`; string, optional)
  - minLength 1; maxLength 400
- `completion` (`updateMyAssistantCommitment.completion`; string, optional)
  - minLength 1; maxLength 400
- `nextAction` (`updateMyAssistantCommitment.nextAction`; string, optional)
  - minLength 1; maxLength 2000
- `schedule` (`updateMyAssistantCommitment.schedule`; string, optional)
  - minLength 1; maxLength 120
- `nextWakeAt` (`updateMyAssistantCommitment.nextWakeAt`; string, optional)
  - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$`

## Example request

```json
{
  "version": -9007199254740991,
  "outcome": "string",
  "completion": "string",
  "nextAction": "string",
  "schedule": "string",
  "nextWakeAt": "2019-08-24T14:15:22Z"
}
```

## Code samples

### cURL

```bash
curl --request PATCH \
  --url 'https://api.cloudraker.com/me/assistant/commitments/<commitmentId>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "version": -9007199254740991,
  "outcome": "string",
  "completion": "string",
  "nextAction": "string",
  "schedule": "string",
  "nextWakeAt": "2019-08-24T14:15:22Z"
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/me/assistant/commitments/<commitmentId>';
const options = {
  method: 'PATCH',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    version: -9007199254740991,
    outcome: 'string',
    completion: 'string',
    nextAction: 'string',
    schedule: 'string',
    nextWakeAt: '2019-08-24T14:15:22Z'
  })
};

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/assistant/commitments/<commitmentId>"

payload = {
    "version": -9007199254740991,
    "outcome": "string",
    "completion": "string",
    "nextAction": "string",
    "schedule": "string",
    "nextWakeAt": "2019-08-24T14:15:22Z"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

Change what a commitment covers or when it next runs

#### Example

```json
{
  "data": {
    "id": "string",
    "outcome": "string",
    "completion": "string",
    "nextAction": "string",
    "schedule": "string",
    "state": "active",
    "origin": "chat",
    "background": true,
    "originEntryId": "string",
    "nextWakeAt": "2026-10-08T09:00:00-04:00",
    "waitingFor": "string",
    "blocker": "string",
    "version": -9007199254740991,
    "running": true,
    "updatedAt": "2026-10-08T09:00:00-04:00",
    "attempts": {
      "total": -9007199254740991,
      "succeeded": -9007199254740991,
      "failed": -9007199254740991
    },
    "receipts": [
      {
        "attemptId": "string",
        "state": "running",
        "startedAt": "2026-10-08T09:00:00-04:00",
        "finishedAt": "2026-10-08T09:00:00-04:00",
        "outcome": "unverified",
        "outcomeDetail": "string",
        "result": {
          "fileId": "string",
          "name": "string"
        },
        "delivery": {
          "state": "none",
          "at": "2026-10-08T09:00:00-04:00",
          "entryId": "string",
          "reason": "string"
        }
      }
    ]
  }
}
```

- `data` (`updateMyAssistantCommitment.response.200.data`; object, required)
  - `id` (`updateMyAssistantCommitment.response.200.data.id`; string, required)
    - pattern `^cmt_[0-9A-HJKMNP-TV-Z]{26}$`
  - `outcome` (`updateMyAssistantCommitment.response.200.data.outcome`; string, required)
  - `completion` (`updateMyAssistantCommitment.response.200.data.completion`; string, required)
  - `nextAction` (`updateMyAssistantCommitment.response.200.data.nextAction`; string, required)
  - `schedule` (`updateMyAssistantCommitment.response.200.data.schedule`; string | null, required)
  - `state` (`updateMyAssistantCommitment.response.200.data.state`; string, required)
    - one of `"active"`, `"waiting"`, `"blocked"`, `"completed"`, `"cancelled"`, `"failed"`
  - `origin` (`updateMyAssistantCommitment.response.200.data.origin`; string, required)
    - one of `"chat"`, `"routine"`, `"owner"`
  - `background` (`updateMyAssistantCommitment.response.200.data.background`; boolean, required)
  - `originEntryId` (`updateMyAssistantCommitment.response.200.data.originEntryId`; string | null, required)
  - `nextWakeAt` (`updateMyAssistantCommitment.response.200.data.nextWakeAt`; any of, required)
    - any of: `string`, `null`
  - `waitingFor` (`updateMyAssistantCommitment.response.200.data.waitingFor`; string | null, required)
  - `blocker` (`updateMyAssistantCommitment.response.200.data.blocker`; string | null, required)
  - `version` (`updateMyAssistantCommitment.response.200.data.version`; integer, required) — Send it back with an edit.
    - min -9007199254740991; max 9007199254740991
  - `running` (`updateMyAssistantCommitment.response.200.data.running`; boolean, required)
  - `updatedAt` (`updateMyAssistantCommitment.response.200.data.updatedAt`; string, required)
    - example `"2026-10-08T09:00:00-04:00"`
  - `attempts` (`updateMyAssistantCommitment.response.200.data.attempts`; object, required)
    - `total` (`updateMyAssistantCommitment.response.200.data.attempts.total`; integer, required)
      - min -9007199254740991; max 9007199254740991
    - `succeeded` (`updateMyAssistantCommitment.response.200.data.attempts.succeeded`; integer, required)
      - min -9007199254740991; max 9007199254740991
    - `failed` (`updateMyAssistantCommitment.response.200.data.attempts.failed`; integer, required)
      - min -9007199254740991; max 9007199254740991
  - `receipts` (`updateMyAssistantCommitment.response.200.data.receipts`; array<object>, required)
    - `attemptId` (`updateMyAssistantCommitment.response.200.data.receipts.attemptId`; string, required)
    - `state` (`updateMyAssistantCommitment.response.200.data.receipts.state`; string, required)
      - one of `"running"`, `"succeeded"`, `"failed"`, `"cancelled"`, `"unknown_effect"`, `"interrupted"`, `"superseded"`
    - `startedAt` (`updateMyAssistantCommitment.response.200.data.receipts.startedAt`; string, required)
      - example `"2026-10-08T09:00:00-04:00"`
    - `finishedAt` (`updateMyAssistantCommitment.response.200.data.receipts.finishedAt`; any of, required)
      - any of: `string`, `null`
    - `outcome` (`updateMyAssistantCommitment.response.200.data.receipts.outcome`; string, required)
      - one of `"unverified"`, `"verified"`, `"failed"`, `"unknown"`
    - `outcomeDetail` (`updateMyAssistantCommitment.response.200.data.receipts.outcomeDetail`; string | null, required)
    - `result` (`updateMyAssistantCommitment.response.200.data.receipts.result`; any of, required) — The saved file, only once it is stored.
      - any of:
        - `object`
          - `fileId` (`updateMyAssistantCommitment.response.200.data.receipts.result.1.fileId`; string, required)
          - `name` (`updateMyAssistantCommitment.response.200.data.receipts.result.1.name`; string, required)
        - `null`
    - `delivery` (`updateMyAssistantCommitment.response.200.data.receipts.delivery`; object, required)
      - `state` (`updateMyAssistantCommitment.response.200.data.receipts.delivery.state`; string, required)
        - one of `"none"`, `"pending"`, `"delivered"`, `"suppressed"`, `"failed"`
      - `at` (`updateMyAssistantCommitment.response.200.data.receipts.delivery.at`; any of, required)
        - any of: `string`, `null`
      - `entryId` (`updateMyAssistantCommitment.response.200.data.receipts.delivery.entryId`; string | null, required)
      - `reason` (`updateMyAssistantCommitment.response.200.data.receipts.delivery.reason`; string | null, required)

### 400

Validation Error

#### Example

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

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

### 403

An active personal account is required.

### 404

`commitment_not_found`.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`updateMyAssistantCommitment.response.404.error`; string, required) — The sentence a human reads.
- `error_code` (`updateMyAssistantCommitment.response.404.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`updateMyAssistantCommitment.response.404.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`updateMyAssistantCommitment.response.404.issues.path`; string, required)
  - `code` (`updateMyAssistantCommitment.response.404.issues.code`; string, required)
  - `message` (`updateMyAssistantCommitment.response.404.issues.message`; string, required)

### 409

`commitment_conflict`: it changed; reload. `commitment_closed`.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`updateMyAssistantCommitment.response.409.error`; string, required) — The sentence a human reads.
- `error_code` (`updateMyAssistantCommitment.response.409.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`updateMyAssistantCommitment.response.409.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`updateMyAssistantCommitment.response.409.issues.path`; string, required)
  - `code` (`updateMyAssistantCommitment.response.409.issues.code`; string, required)
  - `message` (`updateMyAssistantCommitment.response.409.issues.message`; string, required)

### 422

`invalid_schedule` or `invalid_wake`.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`updateMyAssistantCommitment.response.422.error`; string, required) — The sentence a human reads.
- `error_code` (`updateMyAssistantCommitment.response.422.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`updateMyAssistantCommitment.response.422.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`updateMyAssistantCommitment.response.422.issues.path`; string, required)
  - `code` (`updateMyAssistantCommitment.response.422.issues.code`; string, required)
  - `message` (`updateMyAssistantCommitment.response.422.issues.message`; string, required)


Source: https://docs.cloudraker.com/workspace/api/my-assistant/update-my-assistant-commitment/index.md
