publish_pages
Publishes many pages/endpoints at once: each page in pageIds gets a new default published version and state 2 (approved/published). rootParentId (the collection's invisible root page) must also be supplied so it is marked published. Requires READ_WRITE permission. Triggers background search indexing, translation and AI SEO/meta generation, and clears the docs cache. Get ids from List Collections (rootParentId) and List Collection Pages. Body fields:
rootParentId (string, required) - 12-char id of the collection's invisible root page (type 0). pageIds (array<string>, required) - Non-empty array of 12-char page/endpoint ids to publish. PATCH https://api.docstar.io/orgs/:orgId/collections/:collectionId/bulkPublish
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"orgId": "<orgId>",
"collectionId": "<collectionId>"
},
"name": "publish_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | Yes | The orgId path variable | |
| pageIds | No | e.g. ["Pg12Ab34Cd56","Pg98Zy76Xw54"] | |
| collectionId | Yes | The collectionId path variable | |
| rootParentId | No | e.g. Xy12Ab34Cd56 |