Create Attribute
POST /objects/{object_slug}/attributes
PREVIEW. This endpoint is deployed but gated: it returns 404 unless the hosted app platform is enabled for your organization. It is published here so the contract describes the whole surface, not so it can be called today.
Create a typed CRM field. Requires objects:manage and current Admin access. A computed field is checked against
the schema the credential may see (an admin key included): a field it cannot see or an object it cannot read is
unknown_field / unknown_relationship (422), exactly as validate answers.
Authorizations
Parameters
Path Parameters
Header Parameters
Request Body required
object
Valid attribute types for the Custom Objects type system.
Configuration for specific attribute types.
object
Guided-builder input for a computed field (CRM-06): only the typed JSON expression. The result type,
currency, dependencies, input closure and rollup flag are computed and stored server side at save time —
never accepted from a client. A rollup is a rollup node (the whole expression, or nested).
object
object
object
Responses
201
Successful Response
object
One field on a custom object, and the rules its values must satisfy.
object
One of the 16 supported attribute types (text, number, email_address, timestamp, select, record_reference, …). Determines how values are validated and canonicalized.
Type-specific configuration, e.g. select options. Record references require target_object and must resolve to active records in that object within the caller’s organization and app.
object
Configured create default. Enabled non-null defaults pass the same validation as explicit values.
Archived fields retain their values and can be restored.
Apply the configured default when this field is omitted on create. Never applies on PATCH.
Values are a list rather than a scalar.
Required on create. PATCH may omit it, but cannot clear it with null or an empty multivalue list.
Whether this field is protected as a system attribute.
No two active records may hold the same value for this attribute. A collision is rejected with 409 duplicate_active_value.
Stable API slug for the attribute, used as a payload key.
Configured display order; equal values are ordered by API slug.
Customer-facing field label, distinct from its stable API slug.
object
Whether there are more pages
Items per page
Current page number (1-indexed)
Total number of items
422
Validation Error