Create a New Schema
POST
https://api.monetate.net/api/data/v1/{retailerShortname}/production/schema/
acceptstringGenerated from available response content types
bodyobject<p>Representation of a Schema object. A schema must have a name, and at least one field.</p>
<p>Schemata for your account must have unique names. If you are trying to re-create a Schema that already exists, please delete the old one first.</p>
<p>Within a Schema, fields must have unique names.</p>
<p>Exactly one field must be designated as the <code>identifier</code>. This field will be used to link to a Person ID for testing and targeting.</p>
<p>Optionally, one field may be designated as a <code>unique_key</code>. If a Schema defines a unique key, then only one record can exist in your data for a given value of the unique key. Successive data updates with the same unique key value will replace earlier data updates. If no unique key is defined, then all data updates will be considered new data and will never replace earlier data.</p>
201Schema created. Content is the definition of the created Schema.
400<p>Validation error.</p>
<p>One or more values being sent was not in the correct format, or a required value was missing.</p>
401<p>Unauthorized.</p>
<p>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.</p>
403Forbidden.
The request included a token that has been revoked. Please contact your account administrator to generate a new token.
500Unknown error.
Please try again or contact your account manager for more information.
curl --request POST \
--url https://api.monetate.net/api/data/v1/{retailerShortname}/production/schema/ \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"name": "",
"fields": ""
}'