Actions43
- Space Actions
- Page Actions
- Template Actions
- Search Actions
- Comment Actions
- Get Page Footer Comments
- Get Page Inline Comments
- Get Blog Post Footer Comments
- Get Blog Post Inline Comments
- Get Custom Content Comments
- Get Footer Comments
- Create Footer Comment
- Get Footer Comment By Id
- Update Footer Comment
- Delete Footer Comment
- Get Footer Comment Children
- Get Inline Comments
- Create Inline Comment
- Get Inline Comment By Id
- Update Inline Comment
- Delete Inline Comment
- Get Inline Comment Children
- Label Actions
Overview
The "Update Content Template" operation in the Confluence Cloud node allows users to update an existing content template within Confluence. This is useful for modifying templates that define reusable page structures or content snippets, ensuring consistency and saving time when creating new pages.
Typical use cases include:
- Updating a space-level or global content template with new formatting or content.
- Adjusting template body or metadata without manually editing each page created from it.
- Automating template updates as part of a larger workflow to maintain documentation standards.
For example, if your team uses a project status report template, you can programmatically update its structure or default text via this operation, so all future reports follow the latest format.
Properties
| Name | Meaning |
|---|---|
| Request Body | The JSON data representing the updated content template. This should be a valid JSON object describing the template's new state. |
Note: The "Request Body" property expects a JSON string input which will be parsed and sent as the request payload to update the content template.
Output
The output of this operation is the JSON response from the Confluence API after updating the content template. It typically includes details about the updated template such as its ID, name, body content, associated space or blueprint, and metadata reflecting the changes.
No binary data is involved in this operation.
Dependencies
- Requires access to a Confluence Cloud instance with appropriate permissions.
- An API authentication token (API key credential) configured in n8n credentials to authorize requests.
- The node uses the Confluence Cloud REST API endpoint
/wiki/rest/api/templatewith HTTP PUT method.
Troubleshooting
- Invalid JSON in Request Body: If the JSON provided in the "Request Body" field is malformed, the node will fail to parse it. Ensure the JSON syntax is correct before running the node.
- Permission Errors: The user must have 'Admin' permission for the space to update a space template or 'Confluence Administrator' global permission to update a global template. Lack of these permissions will result in authorization errors.
- Template Not Found: If the specified template does not exist or the ID is incorrect, the API will return an error indicating the resource was not found.
- API Rate Limits: Frequent updates may hit Confluence API rate limits; handle such errors by retrying after some delay.
Links and References
- Confluence Cloud REST API - Templates
- Confluence Permissions Documentation
- Confluence Query Language (CQL) (for related search operations)
This summary focuses on the "Update Content Template" operation under the "Template" resource as requested.