Skip to main content
POST
cURL

Usage notes

  • A Product Schema needs a name and at least one column.
  • To attach an existing company Attribute, send its attribute_id with kind: attribute. Its key and type must match.
  • To create a table-local helper, send kind: helper and omit attribute_id.
  • If you omit both identity fields, Lasso preserves the legacy behavior and creates or attaches the company Attribute for the column key.
Retain the server-issued column id when you later replace the full columns array with PUT /schemas/{schema_id}.

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required
columns
object[]
required
Minimum array length: 1
description
string
is_default
boolean
default:false

Response

Created schema

id
string
required
name
string
required
columns
object[]
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
description
string
is_default
boolean