Builder

Update page status for website pages

Update the publication status of one or more pages from a website in the builder interface

post/v1/builder/websites/{website_id}/pages/publish

Request

Path parameters

website_idinteger required

Headers

x-api-keystring required

API key for authentication

Request body

action'publish' | 'draft' | 'pending' | 'private' required

Action to perform on the pages

page_idsinteger[] required

Array of page IDs to publish

Example request

{
  "action": "publish",
  "page_ids": [
    54
  ]
}

Response

Page status updated successfully

msgstring

Status message

statusinteger

HTTP status code

Example response

{
  "msg": "Success",
  "status": 200,
  "data": {
    "message": "Page is published."
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.