createObjectType

View as Markdown

Create a new custom object type.

Creates a new custom object type definition for the tenant. What is an Object Type? An object type is a schema definition (e.g., “Visa”, “Invoice”, “Travel Request”) that defines what kind of custom objects can be created.

Parameters

NameTypeRequiredDescription
namestringYesDisplay name for the object type
descriptionstringNoOptional description
logo_urlstringNoOptional logo URL
iconobjectNo
display_id_prefixstringNoDisplay ID prefix for instances (e.g., “VEN” for Vendor → VEN-1).
scopeobjectNo
workspace_idintegerNoWorkspace ID for WORKSPACE-scoped types. Required when scope=WORKSPACE,