Documents

Add a schema version

Saves the next version of one of the account's schemas. Free, and works at any balance.

  • Earlier versions stay as they were, so an extract that names schema_version keeps getting the same schema.
  • name and description, when left out, carry over from the previous version.
post/v1/extraction-schemas/{id}/versions

Request

Path parameters

idstring required

The schema's schema_id (sch_...). An id longer than 128 characters answers 404 with code not_found, not schema_not_found.

Request body

namestring
descriptionstring
schemaobject required

The new version's JSON Schema.

Response

The new version.

schema_idstring required

Stable id of the schema across its versions (sch_...).

namestring required
descriptionstring nullable
versioninteger required
owner'account' | 'platform' required

account for a schema this account saved.

created_atstring date-time required
updated_atstring date-time required
schemaobject

The version's JSON Schema. Always present on a single schema, a version and a list of versions; GET /v1/extraction-schemas leaves it out.

Changes

No recorded changes to this operation across all 1 revision of this API.