Publish the head version
websiteSourceCode_head_publishValidates, builds, and publishes head. Canonical formatting may create a new head first. Pass the version the check returned to refuse publishing a draft that changed since. Takes the edit lease when no leaseToken is sent.
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": {
"websiteId": "<websiteId>"
},
"name": "websiteSourceCode_head_publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | Version returned by websiteSourceCode.head.check. Publishing refuses when the draft changed after that check. | |
| websiteId | Yes | ||
| leaseToken | No | Omit to have Cactal take the edit lease for you; pass a token from websiteSourceCode.lease.acquire to take over from another editor. |