Limitations
- Large page bodies can be truncated when they pass through the model context window, when you fetch a long page and then append additional text before calling this action. In these cases, the updated page may contain only part of the original content.
- The underlying body schema exposes multiple representations, for example, storage and wiki.
- The action depends on the Confluence versioning model. If the version number you pass does not match with what Confluence expects, the update can fail without changing the page.
Prerequisites
- Glean action must be enabled for your instance and the Confluence action pack must be available.
- A connected Confluence account must exist for the user with permission to edit pages in the target space.
Supported parameters
| Parameter | Type | Description |
|---|---|---|
| Body content | Object | Required. Updated content body of the page, including representation and value, for example, storage format. |
| ID | String | Required. Unique identifier of the page to update. |
| Space ID | String | Identifier of the space the page belongs to; used to validate or change the page’s space if supported. |
| Title | String | Required. Updated title of the page. |
| Version number | Object | Required. Version object containing the new version number and related metadata for the update operation. |
| Body → wiki → representation | String | The representation format of the content. Supported values: ‘storage’, ‘atlas_doc_format’, ‘wiki’. Examples: “storage” “atlas_doc_format” “wiki” |
| Body → wiki → value | String | The content body in the specified representation. |
| Content format | String | The representation format of the content. Supported values: ‘storage’, ‘atlas_doc_format’, ‘wiki’. Examples: “storage” “atlas_doc_format” “wiki” |
| Version message | String | Optional version message describing the changes. Examples: “Updated content” “Fixed formatting” |
Usage example
You want to update the API documentation page with new endpoint information. Instruction to an agent: “Find the REST API v3.0 Documentation page in the Engineering space and add a new section about the /users/batch endpoint. Include authentication requirements and rate limits. Add the version message ‘Added batch users endpoint documentation’.” Resulting behavior:- Calls Get pages to locate the REST API v3.0 Documentation page and retrieves its current version number.
-
Calls the Update page action with:
-
IDset to the page ID. -
Space IDset to the Engineering space ID. -
Titleunchanged (REST API v3.0 Documentation). -
Body contentupdated with the new endpoint section appended to existing content. -
Version numberset to the current version to avoid conflicts. -
Version messageset to “Added batch users endpoint documentation” for tracking purposes.
-
Troubleshooting
Action fails even when all visible fields look correct
Action fails even when all visible fields look correct
- Possible cause: The action schema for the body field has changed, for example, around the storage representation, and the environment is using an outdated parsing or flattening configuration.
- Fix: Confirm that your environment is on the latest action schema and parsing logic. If the failures persist, share the agent link and inputs with Glean support so they can verify the schema version.
Invalid request data provided – missing body.wiki.value
Invalid request data provided – missing body.wiki.value
- Possible cause: A wiki body representation field such as body.wiki.representation is set without a corresponding body.wiki.value.
- Fix: Clear all body.wiki.* fields in the action inputs and rely only on body.storage.* for content updates. Re-run the agent after removing wiki fields.
Updated page body is truncated or shows placeholder text instead of the full original content
Updated page body is truncated or shows placeholder text instead of the full original content
- Possible cause: The model’s context window is too small to handle the full page body plus the new content, so the body is truncated before it is sent to the action.
- Fix: Switch the agent or the specific update step to a model with a larger context window, and re-run the flow. If you still need to use a smaller context window, reduce the amount of page content you include in the prompt before calling the action.
FAQs
Can I leave the body content empty to only update metadata such as the title?
Can I leave the body content empty to only update metadata such as the title?
In most cases you should provide body content. Leaving the body empty can cause the request to fail or leave the page unchanged, depending on how the schema is interpreted in your environment.