Monetate Data API
Schema
Update an Existing Schema
PATCH
https://api.monetate.net/api/data/v1/{retailerShortname}/production/schema/{schema-name}/
Authentication
Authorization
apiKey
Path Parameters
schema-name
string
*
Body Parameters
body
SchemaPatch
Example
{"name":"catalog","type":"event","fields":{"new_field":{"data_type":"STRING"}}}
Description
Within a Schema, fields must have unique names.
Columns passed in the fields property are added to the schema.
fields
map<string, Field>
*
Responses
200
Schema patched. Content is the definition of the modified Schema.
SchemaPatchResponse
meta
ResponseMeta
*
data
SchemaPatch
*
400
Validation error.
One or more values being sent was not in the correct format, or a required value was missing.
Response
meta
ResponseMeta
*
data
ResponseAnyData
*
401
Unauthorized.
The request did not include a token, or the token provided was invalid. Please ensure that your token is correct and that the Authorization header is properly formatted.
Response
meta
ResponseMeta
*
data
ResponseAnyData
*
403
Forbidden.
The request included a token that has been revoked. Please contact your account administrator to generate a new token.
Response
meta
ResponseMeta
*
data
ResponseAnyData
*
500
Unknown error.
Please try again or contact your account manager for more information.
Response
meta
ResponseMeta
*
data
ResponseAnyData
*