Skip to content

Create a page

Endpoint: https://api.youcan.shop/pages

Method: POST

Required Scopes

  • edit-pages

Parameters

Param NameParam TypeDescriptionRequired
namestringPage nameyes
slugstringPage slugno
contentstringPage contentno
visibilitybooleanPage visibilityno
templatestringPage templateno
is_using_page_builderbooleanPage using page builderno
meta.titlestringPage meta titleno
meta.descriptionstringPage meta descriptionno

Response

[201] Created

json
{
    "id": "676a0db0-0d9a-4022-b681-68cefb1c260a",
    "name": "about-us",
    "slug": "about-us",
    "visibility": "1",
    "public_url": null,
    "content": "<h4>about us</h4>",
    "created_at": "2021-04-19T12:26:46+00:00",
    "meta": {
        "title": "about us",
        "description": "about us description",
        "images": []
    }
}