application/json
POST
/V1/cmsPage
cURL (application/json)
curl \
--request POST 'https://magento2.winkelstraat.mac/rest/all/V1/cmsPage' \
--header "Content-Type: application/json" \
--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}}'
curl \
--request POST 'https://magento2.winkelstraat.mac/rest/all/V1/cmsPage' \
--header "Content-Type: application/xml"
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
}
}
Request examples
<?xml version="1.0" encoding="UTF-8"?>
<root>
<page>
<id type="integer">42</id>
<identifier>string</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 type="boolean">true</active>
</page>
</root>
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 (200)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<id type="integer">42</id>
<identifier>string</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 type="boolean">true</active>
</root>
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 (401)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<message>string</message>
<errors type="array">
<error>
<message>string</message>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
</error>
</errors>
<code type="integer">42</code>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
<trace>string</trace>
</root>
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 (500)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<message>string</message>
<errors type="array">
<error>
<message>string</message>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
</error>
</errors>
<code type="integer">42</code>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
<trace>string</trace>
</root>
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"
}
Response examples (default)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<message>string</message>
<errors type="array">
<error>
<message>string</message>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
</error>
</errors>
<code type="integer">42</code>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
<trace>string</trace>
</root>