Create a new ecommerce category or update an existing one, identified by the mandatory `id` field. When `updateEnabled` is set to `false` (the default), the endpoint performs an insert and returns `201`; if the category ID already exists, a `400` error is returned. When `updateEnabled` is `true`, the endpoint performs an upsert, returning `201` for a new category or `204` when an existing category is updated. The `name` field is mandatory for creation but optional for updates.
Request
Values to create/update a category
idstringRequired
Unique Category ID as saved in the shop
deletedAtstringOptional
UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the category deleted from the shop’s database
isDeletedbooleanOptional
category deleted from the shop's database
namestringOptional
Mandatory in case of creation. Name of the Category, as displayed in the shop
updateEnabledbooleanOptionalDefaults to false
Facilitate to update the existing category in the same request (updateEnabled = true)
urlstringOptional
URL to the category
Response
Category created
idstringOptional
ID of the category when a new category is created