Skip to content

Create a page

Endpoint: https://api.youcan.shop/pages/{id}

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

[200] OK

json
{
    "message": "Page updated successfully",
    "http_code": 200,
    "code": "UPDATED",
    "type": "success",
    "data": null
}

[404] Not Found

json
{
    "status": 404,
    "code": 0,
    "detail": "Page not found",
    "meta": []
}