action confluence_expand_attachment_for_humans { label: "Get all metadata for an expanded attachment" description: "Returns the metadata for the contents of an attachment, if it is an archive, and metadata for the attachment itself. For example, if the attachment is a ZIP archive, then information about the files in the archive is returned and metadata for the ZIP archive. Currently, only the ZIP archive format is supported.\n\nUse this operation to retrieve data that is presented to the user, as this operation returns the metadata for the attachment itself, such as the attachment's ID and name. Otherwise, use [ Get contents metadata for an expanded attachment](#api-rest-api-3-attachment-id-expand-raw-get), which only returns the metadata for the attachment's contents.\n\nThis operation can be accessed anonymously.\n\n**[Permissions](#permissions) required:** For the issue containing the attachment:\n\n * *Browse projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project that the issue is in.\n * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is configured, issue-level security permission to view the issue." provider: confluence method: GET path: "/rest/api/3/attachment/{id}/expand/human" encoding: json input: { type: "object" properties: { id: { type: "string" } } required: ["id"] additionalProperties: false } output: { type: "object" description: "Metadata for an archive (for example a zip) and its contents." properties: { entries: { type: "array" description: "The list of the items included in the archive." items: { type: "object" description: "Metadata for an item in an attachment archive." properties: { index: { type: "integer" format: "int64" description: "The position of the item within the archive." } label: { type: "string" description: "The label for the archive item." } mediaType: { type: "string" description: "The MIME type of the archive item." } path: { type: "string" description: "The path of the archive item." } size: { type: "string" description: "The size of the archive item." } } additionalProperties: false } } id: { type: "integer" format: "int64" description: "The ID of the attachment." } mediaType: { type: "string" description: "The MIME type of the attachment." } name: { type: "string" description: "The name of the archive file." } totalEntryCount: { type: "integer" format: "int64" description: "The number of items included in the archive." } } additionalProperties: false } }