Schema Patches

Update schema patch

Changed on

Updates an existing patch with fields and mappings. If the patch ID does not exist, a new patch is created; tag and description are optional. Tag is capped at 264 characters. On update, sending a field as an empty string clears it, while omitting the field leaves it unchanged.

post/schema/patch/{table}/{id}

Request

  • Base URL
    https://api.lytics.io/v2
  • URL
    https://api.lytics.io/v2/schema/patch/{table}/{id}
  • Auth
    API key in header Authorization

Path parameters

tablestring required

Table name

idstring required

Patch ID

Query parameters

account_idstring

The account ID. Defaults to the user's default account.

Request body

createdstring date-time
created_bystring
descriptionstring
draft_statusstring
idstring

UUID for this schema version

is_patchboolean
modifiedstring date-time
parent_idstring
published_bystring
status'live' | 'draft' | 'archived'
tablestring
tagstring
version_numberinteger

Response

Updated patch with diff information

_metaobject

Response Metadata

request_idstring
statusinteger

HTTP Status Code

Changes