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

Authorizations

Authorization
string
header
required

A company admin credential for your company, or a droplet installation token with the website scope for reads, except on the share routes, which refuse a droplet token.

Path Parameters

id
string<uuid>
required

The site's id.

slug
string
required

The 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, sent unwrapped. schema is the folder's db/schema.json, which the check validates against the bundle's schema rules. Any other field is refused.

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.

schema_check
object
required

The schema's plan on each database.

status
integer
required

The HTTP status.

meta
object
required

Response metadata included on every response body.