Skip to main content
POST
/
published
/
publish
Publish or unpublish documents
curl --request POST \
  --url https://app.myhero.so/published/publish \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "documentIds": [
    "<string>"
  ],
  "isPublished": false
}
'
{
  "data": {
    "isPublished": false,
    "publishedSettings": {
      "publishedById": "<string>",
      "publishedAt": 123,
      "styling": {},
      "domainSlug": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
documentIds
string[]
required
Minimum array length: 1
Minimum string length: 1
isPublished
boolean
required
Example:

false

Response

200 response

data
required