Add a field
POST/objects/:object_id/fields
Add a field to an object. Scope objects_admin. Existing records receive it in
the background (an empty value, or the computed value of a lookup, count or
auto number).
config depends on type: choice fields take options (and optional colors,
default); number / currency take decimal_places and currency_code;
relation takes target_object_id and cardinality (one | many) and creates
the inverse field on the target; lookup takes relation_field_id,
source_field_id and mode (live | frozen); related_count takes
inverse_field_id; auto_number takes prefix, padding, start_at;
rating takes max (1–10) and icon (star | heart | fire | thumb | number);
progress takes start, end, display (percent | value) and color;
button takes label, color and confirm.
Formulas. text, number, currency, date, datetime, checkbox,
dropdown, radio, rating and progress fields may take config.formula (see
FormulaDefinition; fields by id or api_id): the value is then calculated from the
record's other fields, kept up to date by the platform and read-only. Existing
records are calculated in the background. Send formula: null on update to turn
it back into a field people type in.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 409
Field added.
Response Headers
Correlation id for this request. Quote it when reporting a problem.
The request was malformed, or a parameter was rejected.
Response Headers
Correlation id for this request. Quote it when reporting a problem.
No token, an expired token, or a credential that has been revoked.
Response Headers
Correlation id for this request. Quote it when reporting a problem.
Refused. Either the credential does not hold the scope this endpoint needs (code: insufficient_scope), or the account's IP allow-list does not include the calling address (code: ip_not_allowed).
Response Headers
Correlation id for this request. Quote it when reporting a problem.
No such resource in this account.
Response Headers
Correlation id for this request. Quote it when reporting a problem.
The request was valid but conflicts with the current state.
Response Headers
Correlation id for this request. Quote it when reporting a problem.