Appearance
POST
/web-pages/draft/draftsRequired scope:
viskan:draft:createCreates a draft. Does not create any content.
Parameters
Query parameters
webStoreId stringRequired
Identifier of the web store that the draft belongs to.
Request body
JSON
{
"draftName": "Black Friday"
}
Response
The response contains the identifier of the newly created draft.
JSON
{
"draftId": "e104abc6-6355-42a3-8b4d-08ff838d028f"
}
| Error code | Description |
|---|---|
web-pages.create-draft.draft-name-required | Draft name is required. |
web-pages.create-draft.web-store-not-found | Specified web store was not found. |