Unpublish a post
unpublish_postHide a post from your public site by setting its status back to draft. Reverts publication and removes it from view.
Instructions
Sets a post's status back to draft, taking it off the public site. Shorthand for update_post({ status: 'draft' }). Requires the posts:write scope.
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": {
"id": "<id>"
},
"name": "unpublish_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | PocketBase record ID of the post to unpublish. |