Skip to main content
POST
Create Entity Type

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.

key
string | null

The unique key for the entity type. If not provided, will be auto-generated from the name.

name
string

The display name of the entity type (required).

fields
EntityTypeFieldInput · object[]

The fields to create on the entity type.

parentEntityTypeId
string | null

Optional parent entity type ID for nesting under a parent type.

schemaKey
string | null

Optional schema key for placing the entity type in a non-default schema. When omitted, the entity type is created in the team's default schema. Use "reference-data" for entity types that represent external reference tables (e.g., ServiceNow reference tables) rather than user-facing assets.

helpAgentVisibility
enum<string> | null

Controls whether the help agent can see entities of this type. Defaults to REQUESTER_ASSOCIATED if not specified.

Available options:
HELP_AGENT_ENTITY_VISIBILITY_UNSPECIFIED,
HELP_AGENT_ENTITY_VISIBILITY_NONE,
HELP_AGENT_ENTITY_VISIBILITY_REQUESTER_ASSOCIATED,
HELP_AGENT_ENTITY_VISIBILITY_ALWAYS
isEdgeType
boolean | null

When true, marks the type as an edge/relationship type whose instances connect two other entities. The type must have exactly two single-valued ENTITY_REF fields in fields (the endpoints); direction labels are derived from those field names, so no extra edge config is needed.

Response

Success

data
data · object

The created entity type.