JDBC Driver for Confluence

Build 25.0.9434

UploadAttachment

Uploads a new attachment to a specified page in Confluence, linking the file to the target content.

Input

Name Type Required Accepts Input Streams Description
ContentId String True False The unique identifier of the content item (such as a page or blog post) to which the attachment will be uploaded.
FileLocation String False False The full path, including the file name and extension, of the file to be uploaded.
FileStream String False True An input stream containing the file data to be uploaded. Used when FileLocation is not specified.
FileName String False False The name of the file to be uploaded. If not specified, the system uses the original file name.
Status String False False Specifies the status of the attachment's content container. Accepted values include current and draft. Defaults to current.

The allowed values are current, draft.

AllowDuplicates Boolean False False If the value is 'true', allows uploading an attachment with a file name that already exists. If the value is 'false', duplicates are not permitted. The default value is 'false'.

Result Set Columns

Name Type Description
Success String If the value is 'true', the upload operation completed successfully. If the value is 'false', the upload failed.
AttachmentId String The unique identifier assigned to the attachment after a successful upload.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434