rename_attachment
Renames an attachment on a page and returns the new relativePath. Update any references in the page body manually, as they are not rewritten.
Instructions
Rename an attachment on a page. Existing references to the old filename in page bodies are NOT rewritten — update them yourself, using the returned relativePath.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | ||
| newName | Yes | New filename, including the extension. | |
| filename | Yes | Current attachment filename from list_attachments. | |
| collectiveId | Yes |