ClarifyAPI
Schemas

Add fields to an object

Adds one or more fields to an object type in one change. The body maps each new field slug to its JSON Schema property document. A select option without an id gets one, and a field with xClarifyEnumMetadata and no enum gets enum derived from the option keys. A relationship field declares xClarifyRelationship with kind, entity, and field, and names its counterpart with counterpart.title: the counterpart is created on the related object at the slug field names. A slug that already exists, archived or not, on this object or as a counterpart, returns 409, and this endpoint never overwrites. The response holds the created fields of this object as GET /workspaces/{workspace}/schemas/objects/{object} returns them, keyed by slug.

POST
/workspaces/{workspace}/schemas/objects/{object}/fields
Authorization<token>

API key authentication. Send your key in the Authorization header as: api-key <your-api-key>.

In: header

Path Parameters

workspace*string

The workspace slug — the {slug} segment of your Clarify workspace URL.

object*string

The object type: a built-in entity (person, company, deal, …) or a custom object (c_*).

Query Parameters

silent?boolean

When true, suppresses in-app and Slack notifications for this mutation and batches its live updates, so open views can lag by up to 20 seconds.

Header Parameters

clarify-version?string

The API version for this request. Send 2026-11 to get the behavior documented here. Omit it to use your API key's version, which this header can raise but not lower.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

The new fields, keyed by field slug. Each value is a JSON Schema property document. Fails if the slug already exists.

Response Body

application/json

curl -X POST "https://example.com/workspaces/string/schemas/objects/string/fields" \  -H "clarify-version: 2026-11" \  -H "Content-Type: application/json" \  -d '{    "budget": {      "type": [        "number",        "null"      ],      "title": "Budget"    }  }'
{  "data": {    "type": "schema-fields",    "id": "c_project",    "attributes": {      "budget": {        "type": [          "number",          "null"        ],        "title": "Budget"      }    }  }}