confluence_updateSpaceTemplateFromFile
Update a Confluence space template's body by uploading a storage XML file, preserving existing labels. Rename the template by providing a new name.
Instructions
Update a space page template body from a local storage XML file via PUT /rest/experimental/template. Preserves labels by default. BSA page remains source of truth — this publishes a snapshot for Create from template. To rename: pass templateId + new name (id alone is used for lookup).
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": {
"spaceKey": "<spaceKey>",
"filePath": "<filePath>"
},
"name": "confluence_updateSpaceTemplateFromFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Template name (used to find and/or rename) | |
| filePath | Yes | Absolute path to storage XML | |
| spaceKey | Yes | Space key, e.g. TempStream | |
| keepLabels | No | Keep existing labels (default true) | |
| templateId | No | Space template ID | |
| description | No | New description; default keep current |