---
title: fields.set | Doing Work API
description: Set one custom field value on a customer, property, job, quote or invoice.
url: https://doingwork.work/docs/reference/fields-set/
---

# fields.set

Set one custom field value on a customer, property, job, quote or invoice.

|  |  |
|---|---|
| Who | Agents can call this |
| REST | `POST /v1/fields/set` |
| MCP tool | `fields_set` |
| Writes | yes, send an Idempotency-Key |
| Area | [Imports, custom fields, tags and search](https://doingwork.work/docs/reference/#imports-custom-fields-tags-and-search) |

## When to use it

Set one custom field value on a customer, property, job, quote or invoice.

## What to tell the owner

Say what you did in plain words and what happens next.

## Input

| Field | Type | Required |
|---|---|---|
| `shop_id` | string (uuid) | yes |
| `key` | string | yes |
| `target` | string (one of customer, property, job, quote, invoice) | yes |
| `object_id` | string (uuid) | yes |
| `value` | string | yes |
| `currency` | string | no |

## Example

```http
POST https://doingwork.work/v1/fields/set
content-type: application/json
Idempotency-Key: 3f1c...

{
  "shop_id": "00000000-0000-4000-8000-000000000000",
  "key": "...",
  "target": "customer",
  "object_id": "00000000-0000-4000-8000-000000000000",
  "value": "..."
}
```

## Output

JSON. The response shape isn't published yet; read the fields you need and ignore the rest. Errors are `{code, message, status}`.

## Errors

| Code | Status | What to do |
|---|---|---|
| `invalid_input`, `invalid_token`, `rate_limited` |  | Can happen on any call. See [errors](https://doingwork.work/docs/errors/). |
