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>"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers.myhero.so/llms.txt

Use this file to discover all available pages before exploring further.

Sets isPublished on each document in documentIds and returns the updated publish settings. The caller must have edit permission on all supplied documents.

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