GET api/v2.0/ResourceLibrary/GetDocumentAttachments?documentKey={documentKey}

Returns Document Attachment Details for the specified Document.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
documentKey

DocumentKey of the Document from which to retrieve the associated Attachments.

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

List of Document Attachments.

Collection of DocumentAttachment
NameDescriptionTypeAdditional information
DocumentAttachmentKey

globally unique identifier

None.

DocumentKey

globally unique identifier

None.

FileName

string

None.

UploadedByContact

ContactConcise

None.

CreatedOn

date

None.

FileExtension

string

None.

FileSizeInBytes

integer

None.

Width

integer

None.

Height

integer

None.

DurationSeconds

integer

None.

DownloadUrl

string

None.

IconUrl

string

None.

Status

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "DocumentAttachmentKey": "bfc7878a-d406-4853-b95c-a1c252d19ca7",
    "DocumentKey": "6c1634ab-46bd-4877-a849-2b39bc5ee99d",
    "FileName": "sample string 3",
    "UploadedByContact": {
      "LinkToProfile": "sample string 1",
      "PictureUrl": "sample string 2",
      "ContactKey": "0e898bdd-ac7c-43a8-a81c-351dcb9d1d24",
      "FirstName": "sample string 4",
      "LastName": "sample string 5",
      "DisplayName": "sample string 6",
      "EmailAddress": "sample string 7",
      "ContactStatusCode": "sample string 8",
      "PrefixCode": "sample string 9",
      "UpdatedOn": "2024-12-06T02:49:04.2839309Z",
      "UpdatedByContactKey": "ff67b23e-1a7a-4765-b302-f1f943fec8d6",
      "CompanyName": "sample string 12",
      "CompanyTitle": "sample string 13",
      "SuffixCode": "sample string 14",
      "Designation": "sample string 15",
      "LegacyContactKey": "sample string 16",
      "InformalName": "sample string 17",
      "MiddleName": "sample string 18",
      "IsCompany": true,
      "CompanyLegacyContactKey": "sample string 20",
      "AMSDirectoryOptOut": true,
      "HLDirectoryOptOut": true,
      "HLContactMeOptOut": true,
      "LargePictureUrl": "sample string 24",
      "AgreedToTermsDateTime": "2024-12-06T02:49:04.2839309Z"
    },
    "CreatedOn": "2024-12-06T02:49:04.2839309Z",
    "FileExtension": "sample string 5",
    "FileSizeInBytes": 1,
    "Width": 1,
    "Height": 1,
    "DurationSeconds": 1,
    "DownloadUrl": "sample string 6",
    "IconUrl": "sample string 7",
    "Status": "sample string 8"
  },
  {
    "DocumentAttachmentKey": "bfc7878a-d406-4853-b95c-a1c252d19ca7",
    "DocumentKey": "6c1634ab-46bd-4877-a849-2b39bc5ee99d",
    "FileName": "sample string 3",
    "UploadedByContact": {
      "LinkToProfile": "sample string 1",
      "PictureUrl": "sample string 2",
      "ContactKey": "0e898bdd-ac7c-43a8-a81c-351dcb9d1d24",
      "FirstName": "sample string 4",
      "LastName": "sample string 5",
      "DisplayName": "sample string 6",
      "EmailAddress": "sample string 7",
      "ContactStatusCode": "sample string 8",
      "PrefixCode": "sample string 9",
      "UpdatedOn": "2024-12-06T02:49:04.2839309Z",
      "UpdatedByContactKey": "ff67b23e-1a7a-4765-b302-f1f943fec8d6",
      "CompanyName": "sample string 12",
      "CompanyTitle": "sample string 13",
      "SuffixCode": "sample string 14",
      "Designation": "sample string 15",
      "LegacyContactKey": "sample string 16",
      "InformalName": "sample string 17",
      "MiddleName": "sample string 18",
      "IsCompany": true,
      "CompanyLegacyContactKey": "sample string 20",
      "AMSDirectoryOptOut": true,
      "HLDirectoryOptOut": true,
      "HLContactMeOptOut": true,
      "LargePictureUrl": "sample string 24",
      "AgreedToTermsDateTime": "2024-12-06T02:49:04.2839309Z"
    },
    "CreatedOn": "2024-12-06T02:49:04.2839309Z",
    "FileExtension": "sample string 5",
    "FileSizeInBytes": 1,
    "Width": 1,
    "Height": 1,
    "DurationSeconds": 1,
    "DownloadUrl": "sample string 6",
    "IconUrl": "sample string 7",
    "Status": "sample string 8"
  }
]

application/xml, text/xml

Sample:
<ArrayOfDocumentAttachment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise.ResourceLibrary">
  <DocumentAttachment>
    <CreatedOn>2024-12-05T21:49:04.2839309-05:00</CreatedOn>
    <DocumentAttachmentKey>bfc7878a-d406-4853-b95c-a1c252d19ca7</DocumentAttachmentKey>
    <DocumentKey>6c1634ab-46bd-4877-a849-2b39bc5ee99d</DocumentKey>
    <DownloadUrl>sample string 6</DownloadUrl>
    <DurationSeconds>1</DurationSeconds>
    <FileExtension>sample string 5</FileExtension>
    <FileName>sample string 3</FileName>
    <FileSizeInBytes>1</FileSizeInBytes>
    <Height>1</Height>
    <IconUrl>sample string 7</IconUrl>
    <Status>sample string 8</Status>
    <UploadedByContact xmlns:d3p1="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise">
      <d3p1:AMSDirectoryOptOut>true</d3p1:AMSDirectoryOptOut>
      <d3p1:AgreedToTermsDateTime>2024-12-05T21:49:04.2839309-05:00</d3p1:AgreedToTermsDateTime>
      <d3p1:CompanyLegacyContactKey>sample string 20</d3p1:CompanyLegacyContactKey>
      <d3p1:CompanyName>sample string 12</d3p1:CompanyName>
      <d3p1:CompanyTitle>sample string 13</d3p1:CompanyTitle>
      <d3p1:ContactKey>0e898bdd-ac7c-43a8-a81c-351dcb9d1d24</d3p1:ContactKey>
      <d3p1:ContactStatusCode>sample string 8</d3p1:ContactStatusCode>
      <d3p1:Designation>sample string 15</d3p1:Designation>
      <d3p1:DisplayName>sample string 6</d3p1:DisplayName>
      <d3p1:EmailAddress>sample string 7</d3p1:EmailAddress>
      <d3p1:FirstName>sample string 4</d3p1:FirstName>
      <d3p1:HLContactMeOptOut>true</d3p1:HLContactMeOptOut>
      <d3p1:HLDirectoryOptOut>true</d3p1:HLDirectoryOptOut>
      <d3p1:InformalName>sample string 17</d3p1:InformalName>
      <d3p1:IsCompany>true</d3p1:IsCompany>
      <d3p1:LargePictureUrl>sample string 24</d3p1:LargePictureUrl>
      <d3p1:LastName>sample string 5</d3p1:LastName>
      <d3p1:LegacyContactKey>sample string 16</d3p1:LegacyContactKey>
      <d3p1:LinkToProfile>sample string 1</d3p1:LinkToProfile>
      <d3p1:MiddleName>sample string 18</d3p1:MiddleName>
      <d3p1:PictureUrl>sample string 2</d3p1:PictureUrl>
      <d3p1:PrefixCode>sample string 9</d3p1:PrefixCode>
      <d3p1:SuffixCode>sample string 14</d3p1:SuffixCode>
      <d3p1:UpdatedByContactKey>ff67b23e-1a7a-4765-b302-f1f943fec8d6</d3p1:UpdatedByContactKey>
      <d3p1:UpdatedOn>2024-12-05T21:49:04.2839309-05:00</d3p1:UpdatedOn>
    </UploadedByContact>
    <Width>1</Width>
  </DocumentAttachment>
  <DocumentAttachment>
    <CreatedOn>2024-12-05T21:49:04.2839309-05:00</CreatedOn>
    <DocumentAttachmentKey>bfc7878a-d406-4853-b95c-a1c252d19ca7</DocumentAttachmentKey>
    <DocumentKey>6c1634ab-46bd-4877-a849-2b39bc5ee99d</DocumentKey>
    <DownloadUrl>sample string 6</DownloadUrl>
    <DurationSeconds>1</DurationSeconds>
    <FileExtension>sample string 5</FileExtension>
    <FileName>sample string 3</FileName>
    <FileSizeInBytes>1</FileSizeInBytes>
    <Height>1</Height>
    <IconUrl>sample string 7</IconUrl>
    <Status>sample string 8</Status>
    <UploadedByContact xmlns:d3p1="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise">
      <d3p1:AMSDirectoryOptOut>true</d3p1:AMSDirectoryOptOut>
      <d3p1:AgreedToTermsDateTime>2024-12-05T21:49:04.2839309-05:00</d3p1:AgreedToTermsDateTime>
      <d3p1:CompanyLegacyContactKey>sample string 20</d3p1:CompanyLegacyContactKey>
      <d3p1:CompanyName>sample string 12</d3p1:CompanyName>
      <d3p1:CompanyTitle>sample string 13</d3p1:CompanyTitle>
      <d3p1:ContactKey>0e898bdd-ac7c-43a8-a81c-351dcb9d1d24</d3p1:ContactKey>
      <d3p1:ContactStatusCode>sample string 8</d3p1:ContactStatusCode>
      <d3p1:Designation>sample string 15</d3p1:Designation>
      <d3p1:DisplayName>sample string 6</d3p1:DisplayName>
      <d3p1:EmailAddress>sample string 7</d3p1:EmailAddress>
      <d3p1:FirstName>sample string 4</d3p1:FirstName>
      <d3p1:HLContactMeOptOut>true</d3p1:HLContactMeOptOut>
      <d3p1:HLDirectoryOptOut>true</d3p1:HLDirectoryOptOut>
      <d3p1:InformalName>sample string 17</d3p1:InformalName>
      <d3p1:IsCompany>true</d3p1:IsCompany>
      <d3p1:LargePictureUrl>sample string 24</d3p1:LargePictureUrl>
      <d3p1:LastName>sample string 5</d3p1:LastName>
      <d3p1:LegacyContactKey>sample string 16</d3p1:LegacyContactKey>
      <d3p1:LinkToProfile>sample string 1</d3p1:LinkToProfile>
      <d3p1:MiddleName>sample string 18</d3p1:MiddleName>
      <d3p1:PictureUrl>sample string 2</d3p1:PictureUrl>
      <d3p1:PrefixCode>sample string 9</d3p1:PrefixCode>
      <d3p1:SuffixCode>sample string 14</d3p1:SuffixCode>
      <d3p1:UpdatedByContactKey>ff67b23e-1a7a-4765-b302-f1f943fec8d6</d3p1:UpdatedByContactKey>
      <d3p1:UpdatedOn>2024-12-05T21:49:04.2839309-05:00</d3p1:UpdatedOn>
    </UploadedByContact>
    <Width>1</Width>
  </DocumentAttachment>
</ArrayOfDocumentAttachment>