# Edit a Workspace field (/docs/api-reference/update_workspace_field)

`PATCH /v1/workspace-fields/{field_id}` · operation `update_workspace_field`

Rename or move a Workspace field, or change a choice field's options (a removed option's values clear). Its type can't change.

**Sign-in:** a signed-in person's access token (`Authorization: Bearer …`), which AI apps get through MCP sign-in; or a Workspace API key in the `X-SMB-API-Key` header.

### Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `field_id` | string | yes |  |

### Headers

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string | yes |  |
| `SMB-Workspace-Id` | string (uuid) | yes |  |

### Request body (JSON)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | no |  |
| `options` | array of object | no |  |
| `options[].id` | string | yes |  |
| `options[].label` | string | yes |  |
| `options[].color` | one of `gray`, `blue`, `green`, `yellow`, `orange`, `red`, `purple`, `pink` | yes |  |
| `position` | integer | no |  |
| `expected_version` | integer | yes |  |

### Response

**200** Successful authorized response.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object | yes |  |
| `data.field_id` | string | yes |  |
| `data.name` | string | yes |  |
| `data.value_type` | one of `text`, `number`, `boolean`, `date`, `choice`, `person` | yes |  |
| `data.position` | integer | yes |  |
| `data.options` | array of object | no |  |
| `data.version` | integer | yes |  |
| `request_id` | string | yes |  |
| `action_receipt` | object | yes |  |
| `action_receipt.receipt_id` | string (uuid) | yes |  |
| `action_receipt.command_id` | string (uuid) | yes |  |
| `action_receipt.operation` | `update_workspace_field` | yes |  |
| `action_receipt.workspace_id` | string (uuid) | yes |  |
| `idempotent_replay` | boolean | yes |  |

### Errors

- `400` The request is invalid.
- `401` Authentication is required.
- `403` The caller is not authorized.
- `404` The resource was not found.
- `409` The resource revision or idempotency input conflicts.
- `413` The request body is too large.
- `415` The request must be JSON.
- `422` Required evidence is missing.
- `429` Rate limit reached; honor Retry-After.
- `500` The request could not be completed.
- `502` A dependency returned an invalid response.
- `503` The service is temporarily unavailable.

### Example

```bash
curl --request PATCH "https://api.smb.co/v1/workspace-fields/$FIELD_ID" \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header "Idempotency-Key: $IDEMPOTENCY_KEY" \
  --header "SMB-Workspace-Id: $WORKSPACE_ID" \
  --header "Content-Type: application/json" \
  --data '{"expected_version":1}'
```