Skip to main content

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​

What the tool did, in data, and the draft's new revision (the same as before when nothing changed).