## Update an entry of a value list; setting a unique flag such as default moves it here (desk:admin)

`PUT /api/desk/v1/enums/{kind}/{key}`

Module: Desk · operationId: `updateEnumValue` · Tag: Configuration · Auth: access token (`Authorization: Bearer <accessToken>`)

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `kind` | path | string | yes | (one of `linkType`, `source`, `assigneeRole`, `callbackStatus`, `callbackReason`) |
| `key` | path | string | yes |  |

### Request body

`application/json` (required)

- `key` (string, required): Key of the entry, unique in its list
- `label` (string, required): Display label
- `archived` (boolean): Archived: kept for existing data, no longer offered
- `color` (string): Display color
- `description` (string): Description of the entry
- `flags` (array of string): Flags of the entry (e.g. default)
- `props` (object): linkType: inverseLabel
- `sortOrder` (integer): Position in lists (ascending)
- `system` (boolean, read-only): Built-in entry desk relies on

Example:

```json
{
  "archived": false,
  "description": "Dieses Ticket wurde durch das verknüpfte verursacht",
  "flags": [],
  "key": "caused_by",
  "label": "Verursacht durch",
  "props": {
    "inverse": "Verursacht"
  },
  "sortOrder": 4,
  "system": true
}
```

### Responses

- **200** Saved (`application/json`)

Fields of the 200 answer:

- `key` (string, required): Key of the entry, unique in its list
- `label` (string, required): Display label
- `archived` (boolean): Archived: kept for existing data, no longer offered
- `color` (string): Display color
- `description` (string): Description of the entry
- `flags` (array of string): Flags of the entry (e.g. default)
- `props` (object): linkType: inverseLabel
- `sortOrder` (integer): Position in lists (ascending)
- `system` (boolean, read-only): Built-in entry desk relies on

Example 200 answer:

```json
{
  "archived": false,
  "description": "Dieses Ticket wurde durch das verknüpfte verursacht",
  "flags": [],
  "key": "caused_by",
  "label": "Verursacht durch",
  "props": {
    "inverse": "Verursacht"
  },
  "sortOrder": 4,
  "system": true
}
```

### Example request

```bash
curl -X PUT 'https://api.mbcom.cloud/api/desk/v1/enums/linkType/string' \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"archived":false,"description":"Dieses Ticket wurde durch das verknüpfte verursacht","flags":[],"key":"caused_by","label":"Verursacht durch","props":{"inverse":"Verursacht"},"sortOrder":4,"system":true}'
```
