# Set a Workspace field value (/docs/api-reference/set_workspace_field_value)

`PUT /v1/workspace-fields/{field_id}/values/{business_id}` · operation `set_workspace_field_value`

Set or clear (null) a Business's value for a Workspace field; it shows in every List. A choice is an option id, a person a member's user ID.

**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 |
| --- | --- | --- | --- |
| `business_id` | string | yes |  |
| `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 |
| --- | --- | --- | --- |
| `value` | object or null | yes |  |

### Response

**200** Successful authorized response.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object | yes |  |
| `data.field_id` | string | yes |  |
| `data.business_id` | string | yes |  |
| `data.value` | object or object or object or object or object or object or null | 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` | `set_workspace_field_value` | 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 PUT "https://api.smb.co/v1/workspace-fields/$FIELD_ID/values/$BUSINESS_ID" \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header "Idempotency-Key: $IDEMPOTENCY_KEY" \
  --header "SMB-Workspace-Id: $WORKSPACE_ID" \
  --header "Content-Type: application/json" \
  --data '{"value":"…"}'
```