Skip to content

Creation of filtering parameter

Request

Security
shoptetAccessToken or shoptetPrivateApiToken
Headers
Content-Typestringrequired
Default:"application/json"
Bodyapplication/json
dataobjectrequired
curl -i -X POST \
  https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/products/filtering-parameters \
  -H 'Content-Type: application/json' \
  -H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
  -d '{
    "data": {
      "name": "Materiál",
      "code": "material",
      "displayName": "Materiál",
      "description": "Popisek",
      "priority": 1,
      "googleMapping": "google:color",
      "values": [
        {
          "name": "Bavlna",
          "valueIndex": "bavlna",
          "priority": 1,
          "color": "FF00FF",
          "image": "car-001.jpg"
        }
      ]
    }
  }'

Responses

Created

Bodyapplication/json
dataobjectrequired
errorsArray of objects or null(Errors)required
metadataobject(Metadata)required
Response
{ "data": { "id": 1, "code": "material", "name": "Material", "displayName": "Material of product", "description": "Material of product", "priority": 1, "googleMapping": {}, "values": [] }, "errors": [ {} ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }