Skip to main content
POST
Create Entity

Authentication and permissions

Token requirements: User-based token (OAuth) or Organization-scoped API key or Team-scoped API key. Send a bearer access token for one of these identities. The permissions and resource restrictions below also apply.
Permissions joined by + are all required; or separates alternatives. Full-access keys still cannot call endpoints marked unsupported. Team keys must allow every team checked by the request. OAuth access depends on the user’s roles and resource access.
  • Create in a team’s database: team_id is the team the caller acts as: the entity type’s owning team, or a team the type’s database is shared with at “Can write”. The entity is created in the owning team. An entity type the acting team cannot reach reads as not found. Schema and row-access rules still apply.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
teamId
string

The ID of the team the caller acts as: the entity type's owning team, or a team the type's database is shared with at "Can write". A key or worker bound to a team acts as that team and may name only it or the owning team. The entity is created in the owning team.

entityTypeId
string

The ID of the entity type. A type the acting team cannot reach reads as not found.

key
string

The entity key. Sets the value of the entity type's key field (is_key_field). Ignored if field_values already contains a value for the key field.

name
string

The entity name. Sets the value of the entity type's name field (is_name_field). Ignored if field_values already contains a value for the name field.

fieldValues
EntityFieldValueInput · object[]

The field values for the entity. Must include the key field and name field values (unless using the key/name convenience fields above).

Response

200 - application/json

Success

data
data · object

The created entity.

pendingChange
EntityPendingChange · object | null