---
title: "Update an installed action"
---

> 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 an installed action

Path: CloudRaker Workspace API › Installed Actions

`PATCH /actions/{id}`

Partial update of an install: `name`, its per-organization `slug`, and/or its saved `config` (deep-merged over the saved config: objects merge key by key, arrays and scalars replace, and `null` deletes a key; `schema` replaces whole, and a `null` inside it is kept). Addressed by id or slug. Authorization: organization administrators only. Returns 400 for a slug that is already taken in this organization.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `id` (`updateInstalledAction.path.id`; string, required)

## Request body

_Required._

- `name` (`updateInstalledAction.name`; string, optional)
  - minLength 1; maxLength 200
- `slug` (`updateInstalledAction.slug`; string, optional) — Rename the per-organization slug. Must stay unique in the org.
  - minLength 1; maxLength 64; pattern `^[a-z0-9]+(-[a-z0-9]+)*$`
- `config` (`updateInstalledAction.config`; map<unknown>, optional)

## Example request

```json
{
  "name": "string",
  "slug": "string",
  "config": {
    "property1": null,
    "property2": null
  }
}
```

## Code samples

### cURL

```bash
curl --request PATCH \
  --url 'https://api.cloudraker.com/actions/<id>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "string",
  "slug": "string",
  "config": {
    "property1": null,
    "property2": null
  }
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/actions/<id>';
const options = {
  method: 'PATCH',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({name: 'string', slug: 'string', config: {property1: null, property2: null}})
};

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/actions/<id>"

payload = {
    "name": "string",
    "slug": "string",
    "config": {
        "property1": None,
        "property2": None
    }
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

The updated install.

#### Example

```json
{
  "data": {
    "id": "act_01J…",
    "slug": "contract-terms-extraction",
    "action": "string",
    "name": "Contract terms",
    "config": {
      "property1": null,
      "property2": null
    },
    "revision": 1,
    "created_at": "string",
    "updated_at": "string"
  }
}
```

- `data` (`updateInstalledAction.response.200.data`; object, required)
  - `id` (`updateInstalledAction.response.200.data.id`; string, required)
    - example `"act_01J…"`
  - `slug` (`updateInstalledAction.response.200.data.slug`; string, required) — Per-organization slug; interchangeable with `id` wherever an action is named.
    - example `"contract-terms-extraction"`
  - `action` (`updateInstalledAction.response.200.data.action`; string, required) — Catalog entry this install came from.
  - `name` (`updateInstalledAction.response.200.data.name`; string, required)
    - example `"Contract terms"`
  - `config` (`updateInstalledAction.response.200.data.config`; any of, required)
    - any of: `map<unknown>`, `null`
  - `revision` (`updateInstalledAction.response.200.data.revision`; integer, required) — The number of the saved config. It starts at 1, and each save that changes `config` adds one. Runs record the revision they used.
    - min 1; max 9007199254740991
  - `created_at` (`updateInstalledAction.response.200.data.created_at`; string | null, required)
  - `updated_at` (`updateInstalledAction.response.200.data.updated_at`; string | null, required)


Source: https://docs.cloudraker.com/workspace/api/installed-actions/update-installed-action/index.md
