Create or Update Resource

Create or update a resource. If the resource does not already exist, it will be created. If the resource does exist, the fields provided will be updated.

Log in to see full request history
Required HeadersValue
Acceptapplication/json
Content-Typeapplication/json
Path Params
string
required

ZMP Site ID

string
required

ZMP resource ID to be created or updated

Body Params
string
required

A string designation of the resource type, e.g. article, product, or store

string

The title for the given resource

string

A URL indicating the location for the given resource

string

A URL with a thumnail image for the resource

string

The body content of the resource, for resources such as articles, the entire body copy should go here

string

A description of the resource

string

ISO8601 formatted timestamp indicating the published date of this resource

string

ISO8601 formatted timestamp indicating when the resource was last edited

boolean
Defaults to false

Setting to "true" will remove this resource from all recommendations, set to "false" or leave null to allow this resource to be included in recommendations

props
array

A dictionary of additional metadata about this resource

props
variants
array

A dictionary of variants of this resource. Variants are keyed by a unique identifier, and their value contains a dictionary of values that map to known resource fields

variants
Responses

Language
Credentials
:
Click Try It! to start a request and see the response here! Or choose an example:
application/json