Save page

POST /V1/cmsPage

Save page.

Body

  • page object Required

    CMS page interface.

    Hide page attributes Show page attributes object
    • id integer

      ID

    • identifier string Required

      Identifier

    • title string

      Title

    • page_layout string

      Page layout

    • meta_title string

      Meta title

    • meta_keywords string

      Meta keywords

    • meta_description string

      Meta description

    • content_heading string

      Content heading

    • content string

      Content

    • creation_time string

      Creation time

    • update_time string

      Update time

    • sort_order string

      Sort order

    • layout_update_xml string

      Layout update xml

    • custom_theme string

      Custom theme

    • custom_root_template string

      Custom root template

    • custom_layout_update_xml string

      Custom layout update xml

    • custom_theme_from string

      Custom theme from

    • custom_theme_to string

      Custom theme to

    • active boolean

      Active

Responses

  • 200

    200 Success.

    Hide response attributes Show response attributes object
    • id integer

      ID

    • identifier string Required

      Identifier

    • title string

      Title

    • page_layout string

      Page layout

    • meta_title string

      Meta title

    • meta_keywords string

      Meta keywords

    • meta_description string

      Meta description

    • content_heading string

      Content heading

    • content string

      Content

    • creation_time string

      Creation time

    • update_time string

      Update time

    • sort_order string

      Sort order

    • layout_update_xml string

      Layout update xml

    • custom_theme string

      Custom theme

    • custom_root_template string

      Custom root template

    • custom_layout_update_xml string

      Custom layout update xml

    • custom_theme_from string

      Custom theme from

    • custom_theme_to string

      Custom theme to

    • active boolean

      Active

  • 401

    401 Unauthorized

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Error details

      Hide errors attributes Show errors attributes object
      • message string

        Error message

      • parameters array[object]

        Error parameters item

        Error parameters item

        Hide parameters attributes Show parameters attributes object
        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Error parameters item

      Hide parameters attributes Show parameters attributes object
      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

  • 500

    Internal Server error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Error details

      Hide errors attributes Show errors attributes object
      • message string

        Error message

      • parameters array[object]

        Error parameters item

        Error parameters item

        Hide parameters attributes Show parameters attributes object
        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Error parameters item

      Hide parameters attributes Show parameters attributes object
      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

  • default

    Unexpected error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Error details

      Hide errors attributes Show errors attributes object
      • message string

        Error message

      • parameters array[object]

        Error parameters item

        Error parameters item

        Hide parameters attributes Show parameters attributes object
        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Error parameters item

      Hide parameters attributes Show parameters attributes object
      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

POST /V1/cmsPage
curl \
 --request POST 'https://magento2.winkelstraat.mac/rest/all/V1/cmsPage' \
 --data '{"page":{"id":42,"identifier":"string","title":"string","page_layout":"string","meta_title":"string","meta_keywords":"string","meta_description":"string","content_heading":"string","content":"string","creation_time":"string","update_time":"string","sort_order":"string","layout_update_xml":"string","custom_theme":"string","custom_root_template":"string","custom_layout_update_xml":"string","custom_theme_from":"string","custom_theme_to":"string","active":true}}'
Request examples
{
  "page": {
    "id": 42,
    "identifier": "string",
    "title": "string",
    "page_layout": "string",
    "meta_title": "string",
    "meta_keywords": "string",
    "meta_description": "string",
    "content_heading": "string",
    "content": "string",
    "creation_time": "string",
    "update_time": "string",
    "sort_order": "string",
    "layout_update_xml": "string",
    "custom_theme": "string",
    "custom_root_template": "string",
    "custom_layout_update_xml": "string",
    "custom_theme_from": "string",
    "custom_theme_to": "string",
    "active": true
  }
}
Response examples (200)
{
  "id": 42,
  "identifier": "string",
  "title": "string",
  "page_layout": "string",
  "meta_title": "string",
  "meta_keywords": "string",
  "meta_description": "string",
  "content_heading": "string",
  "content": "string",
  "creation_time": "string",
  "update_time": "string",
  "sort_order": "string",
  "layout_update_xml": "string",
  "custom_theme": "string",
  "custom_root_template": "string",
  "custom_layout_update_xml": "string",
  "custom_theme_from": "string",
  "custom_theme_to": "string",
  "active": true
}
Response examples (401)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}
Response examples (500)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}
Response examples (default)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}