Skip to main content
POST
Check a schema for a site's branch

Authorizations

Authorization
string
header
required

A member credential in the Authorization: Bearer header: a member session JWT, a portal JWT whose login is linked to a membership in that company, an opaque member token, or a verified One Auth identity access token. The credential alone identifies the member and company. Member session JWTs, and portal JWTs the server minted read-only, are refused with 403 on every write.

Path Parameters

site_id
string<uuid>
required

Public id of one of the member's sites.

slug
string
required

Slug of one of the site's branches.

Required string length: 1 - 40
Pattern: ^[a-z0-9]+(-[a-z0-9]+)*$

Body

application/json

The body of a schema check. schema is the folder's db/schema.json, which the check validates against the bundle's schema rules. Any other field is refused as an unknown field.

schema
object
required

The folder's db/schema.json, with version, tables and migrations. After an update from live, its migrations are live's, then the branch's own.

Response

The schema planned on the branch's database and on the live site's.

The schema planned on the branch's database and on the live site's.

status
integer
required

HTTP status code (mirrors the response status line).

data
object
required

The schema planned on the branch's database and on the live site's.

meta
object
required

Envelope metadata present on every response.