Private preview of the new site. Not live.

fields.define

Add a custom field to customers, properties, jobs, quotes or invoices for a shop.

WhoAgents can call this
RESTPOST /v1/fields
MCP toolfields_define
Writesyes, send an Idempotency-Key
AreaImports, custom fields, tags and search

When to use it

Add a custom field to customers, properties, jobs, quotes or invoices for a shop.

What to tell the owner

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

Input

FieldTypeRequired
shop_idstring (uuid)yes
keystringyes
labelstringno
targetstring (one of customer, property, job, quote, invoice)yes
typestring (one of text, number, money, date, boolean, enum, json)yes
optionsarrayno
requiredbooleanno
piibooleanno
shared_with_homeownerbooleanno

Example

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

{
  "shop_id": "00000000-0000-4000-8000-000000000000",
  "key": "...",
  "target": "customer",
  "type": "text"
}

Output

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

Errors

CodeStatusWhat to do
invalid_input, invalid_token, rate_limitedCan happen on any call. See errors.