Creates a new parametric category definition for a given category and set of parameters.
The definition specifies which parameters are used to generate parametric category pages for the specified category. You can specify 1 to 4 parameters. Each parameterCode must exist and must be unique within the request. Only one definition with the same set of parameters can exist per category.
The "Advanced SEO" module must be active to use this endpoint.
Security
shoptetAccessToken or shoptetPrivateApiToken
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/parametric-categories-definition
- https://api.myshoptet.comhttps://api.myshoptet.com/api/parametric-categories-definition
- shoptetAccessToken
- shoptetPrivateApiToken
curl -i -X POST \
https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/parametric-categories-definition \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
-d '{
"data": {
"categoryGuid": "1b02cb8e-d7b5-11e0-9a5c-feab5ed617ed",
"parameters": [
{
"parameterCode": "color"
}
]
}
}'Response
{ "data": {}, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }