Save a computed field
POST/v1/builder/tools/save_computed_field
Adds a computed field to an entity — a value derived from the other fields by an expression (n8n style) — or changes the expression of a computed field it already has (same key). Use it when the operator wants a value the source does not give as is: part of a text, a join of fields, a formatted date or amount, a label from a condition. It is tried on stored records first (an expression that fails on all of them is refused, nothing saved), then saved to the entity in the workspace right away (not part of the draft) and computed on every stored record from the data it already has (no new fetch from the source). Blocks and sample_records see it in this same answer.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 422
- 429
- 500
What the tool did, in data, and the draft's new revision (the same as before when nothing changed).
Request body failed validation.
Missing or invalid bearer token.
Token is valid but lacks permission for this operation.
Resource not found in the current organization.
The revision sent is stale: someone (or another tab) saved the draft in between. Read it again and resend.
The tool refused the step (BUILDER_OPERATION_REJECTED): unknown block type, props that fail the block schema, a path in use, an unknown entity… The message says why and nothing is saved.
Rate limit exceeded.
Unexpected server error.