Path Parameters
Provide the unique identifier of the project.
"proj_TrlkLiH4"
Provide the unique identifier of the metadata schema.
"ms_f0r4hm3ta6a4a5ch3ma"
Body
Defines the metadata schema to be updated.
Contains metadata definitions. There can be many properties within this object.
Only the properties sent in the request will be updated. However, if you send a property, all its key-value pairs must be provided - otherwise, they will be overwritten to new values.
You cannot change the "type"
property. However, it is required, so you need to add it to the request.
Restricts the creation of metadata fields when set to true
. In other words, it indicates whether or not you are allowed to create new metadata definitions; for example, in the campaign manager or publication manager. If it is set to true, then only the defined fields will be available for assigning values.
Response
Returns the details about the updated metadata schema.
Response body schema for PUT management/v1/projects/{projectId}/metadata-schemas/{metadataSchemaId}
.
Object representing a metadata schema.
Unique identifier of the metadata schema.
The resource type. You can define custom metadata schemas, which have a custom "related_object"
resource type. The standard metadata schemas are: "campaign"
, "customer"
, "earning_rule"
, "loyalty_tier"
, "order"
, "order_item"
, "product"
, "promotion_tier"
, "publication"
, "redemption"
, "reward"
, "voucher"
.
Contains metadata definitions.
Restricts the creation of metadata fields when set to true
. It indicates whether or not you can create new metadata definitions, e.g. in the campaign or publication manager. If set to true
, then only the defined fields are available for assigning values.
Timestamp representing the date and time when the metadata schema was created. The value for this parameter is shown in the ISO 8601 format.
"2021-12-03T13:33:44.556Z"
Timestamp representing the date and time when the metadata schema was updated. The value for this parameter is shown in the ISO 8601 format.
"2022-08-11T08:05:30.695Z"
The type of the object represented by the JSON. This object stores information about the metadata schema.