# Change definitions key actions actionId

Changes one action-bar button: `label` (up to 60 characters), `icon`, `config` and `enabled`. A disabled action stays on the bar and stops being offered, which is the reversible way to take a button out of use. An absent field is left alone; answers 204. Workspace admin.

Access class: `def:admin`.

## Endpoint

`PATCH /v1/definitions/{key}/actions/{actionId}`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |
| actionId | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "config": {},
    "enabled": true,
    "icon": "string",
    "label": "string"
  },
  "params": {
    ":actionId": "",
    ":key": "string"
  },
  "query": {}
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
