To create a new price list scheduler, send a POST request to the /api/price_list_schedulers endpoint, passing the resource arguments in the request body.
Request
POST https://yourdomain.commercelayer.io/api/price_list_schedulers
Arguments
Body Parameter
Type
Required
type
string
Required
attributes.name
string
Required
attributes.starts_at
datetime
Required
attributes.expires_at
datetime
Required
attributes._disable
boolean
Optional
attributes._enable
boolean
Optional
attributes.reference
string
Optional
attributes.reference_origin
string
Optional
attributes.metadata
object
Optional
relationships.market
object
Required
relationships.price_list
object
Required
Example
The following request creates a new price list scheduler: