Sites

Read the database's current schema

Changed on

The schema a database actually has, as the SQL that would recreate it. Pass environment to read the development database (what you are building against) or production (what the site is serving). Production's shape is changed only by deploying — it is a diff of development against it — so this is for understanding, not authoring.

get/sites/{id}/db/schema

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

The resource's ID, as returned in its id field

Response

Current schema

object required
object, string
environment, string
schema, string

CREATE statements for every table, index and trigger.

object_count, integer

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    1 more change in this revision