getDocumentAttachmentContent
Fetch a document attachment's raw file content as UTF-8 text from Polarion. Use to read text-based files; binary files will appear garbled.
Instructions
Downloads the raw file content of one Document attachment. The file body is returned as UTF-8 text: plain-text files (TXT, CSV, XML, JSON, HTML) are readable, but binary files (images, PDF, Office) arrive garbled. 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; call getProjects to list valid IDs. | |
| attachmentId | Yes | The attachment's ID, as returned by the corresponding list- or get-attachments call for this resource. | |
| documentName | Yes | The Document name. |