Skip to navigation

Patch Schema Field

Edits a single field on a schema, creating an override for a detected field if needed.

Authentication

AuthorizationBearer
Bearer user API key
OR
AuthorizationBasic

Basic organization-scoped API key

Path parameters

connection_idstringRequiredformat: "uuid"
Connection holding the schema
schema_idstringRequired
Schema identifier
field_idstringRequired
Field identifier within the schema

Headers

X-Polytomic-VersionstringOptional

Request

This endpoint expects an object.
definitionenum or list of anyOptional

Detailed type of the field, such as “bigint” or [“decimal”, {“precision”: 10, “scale”: 2}]; it must be consistent with the field’s type.

exampleanyOptional
Sample value surfaced in the UI
labelstring or nullOptional

Human-readable label for the field

pathstring or nullOptional

JSONPath used to extract the field from each source record; only meaningful for document-style backends. Pass an empty string to clear an existing path.

typestring or nullOptional

One of: string, number, boolean, datetime, array, object, binary. Changing the type without supplying a matching definition clears any prior detailed type metadata.

Response

OK
dataobjectOptional
The updated schema field

Errors

400
Bad Request Error
404
Not Found Error
500
Internal Server Error