Skip to content

Create a content page

POST
/admin/v1/pages
curl --request POST \
--url https://your-store.example.com/admin/v1/pages \
--header 'Content-Type: application/json' \
--data '{ "slug": "example", "title": "example", "body": "example", "locale": "fr", "status": "draft", "seoTitle": "example", "seoDescription": "example" }'
Media type application/json
object
slug
required
string
>= 1 characters <= 512 characters
title
required
string
>= 1 characters <= 512 characters
body
required
string
>= 1 characters <= 100000 characters
locale
required
string
Allowed values: fr en
status
string
default: draft
Allowed values: draft published
seoTitle
Any of:
string
<= 512 characters
seoDescription
Any of:
string
<= 1024 characters