getDocumentAttachmentContent
Download the raw bytes of a Polarion document attachment, returning images as image content, UTF-8 text as text, and other files as base64 resources; use it when you need file content, not metadata.
Instructions
Downloads the raw file content of one Document attachment. Images (PNG, JPEG, GIF, WebP) come back as image content, UTF-8 text files as text, and any other file (PDF, Office, ZIP) as an embedded base64 resource; files over 20 MB are refused. Use this only when you need the file's bytes; for its metadata (fileName, contentType, size, author) call getDocumentAttachment, and to discover attachment IDs call getDocumentAttachments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spaceId | Yes | The Document Space ID (a folder-like grouping of documents/pages within a project). Use `_default` (no quotes) to address the project's default space. | |
| revision | No | A specific repository revision (e.g. `1234`) to read the resource as it existed at that revision instead of the current HEAD. Omit to use the latest revision. | |
| projectId | Yes | The Polarion project ID (its URL segment, e.g. `myproject`), case-sensitive. Required to scope the request to one project. If the ID is unknown, ask the user; getProjects lists IDs only with global read access. | |
| attachmentId | Yes | The attachment's ID, as returned by the corresponding list- or get-attachments call for this resource. | |
| documentName | Yes | The Document name. | |
| response_format | No | Response detail level. concise removes redundant HTML and JSON:API metadata and may use a small default fieldset on large lists; detailed preserves the complete response. Defaults to detailed. | detailed |