Register an entity from a data source
POST/v1/builder/tools/register_entity
Registers an entity (data blocks bind to it) from an operation of a connected data source (describe_data_source), with the fields inferred from a sample of its records, and starts its first sync. Use it when the operator wants data that no entity has yet. It takes effect in the workspace right away (it is not part of the draft); the new entity can be used by blocks in this same answer. The workspace caps how many fields a new entity keeps: when the source has more, the refusal lists every field with a sample value — call again with fields set to the ones the portal needs (what it shows, filters or sums, and whatever identifies the customer the record belongs to).
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.