Skip to content

Insert of article section

Request

Creates a new article section.

Security
shoptetAccessToken or shoptetPrivateApiToken
Headers
Content-Typestringrequired
Default:"application/json"
Bodyapplication/json
dataobject, non-emptyrequired
curl -i -X POST \
  https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/articles/sections \
  -H 'Content-Type: application/json' \
  -H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
  -d '{
    "data": {
      "title": "Test",
      "language": "cs",
      "parentId": 1,
      "indexName": "new-article",
      "description": "<p>Content of the article section</p>",
      "secondDescription": "<p>Content of the second article section</p>",
      "limit": 4,
      "homepageLimit": 4,
      "sorting": "alphabetically",
      "perexLimit": 100,
      "hidePublishDate": false,
      "showPrevNext": true,
      "showOnHomepage": false,
      "linkText": "Test articles",
      "metaTitle": "Test articles",
      "metaDescription": "Test articles",
      "visible": true,
      "access": "logged-in",
      "sourceImageName": "image.png",
      "sourceOgImageName": "image.png"
    }
  }'

Responses

Created

Bodyapplication/json
dataobjectrequired
errorsArray of objects or null(Errors)required
metadataobject(Metadata)required
Response
{ "data": { "articleSection": {} }, "errors": [ {} ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }