Get Attachments

Describes the API specifications for retrieving attachments.

Request

URI: https://<SAP Fieldglass envionment URL>/api/v1/admin/v1/attachments/<attachmentID>

HTTP Method: GET

Request Parameters

Parameter Required Data Type Description Parameter Type
attachmentID Yes String The unique ID of the attachment. Path

Request Example

GET https://company.com/api/v1/admin/v1/attachments/z18020515304816010283983
authorization: Bearer WDXlKj3TTOn3rpg9GHnZpbKmvj1=
x-ApplicationKey: 5c91f4fdb0c6ee9992ff476f89bf6cf25e589350
content-type: application/json

Response

Response Status and Error Codes

See Common Status and Error Codes for more information.

Response Header Elements

Element Name Data Type Description
RequestId String The globally unique ID of the requested attachment.
Content-Disposition String The name of the attachment file.
Content-Type String Identifies the file type.
Date String The data and time the response was created.

Response Header Example

Key Value
RequestId z21072321133425987592983
Content-Disposition attachment; fileName="Test Resume_PubSub.docx";
Content-Type application/x-msword
Date Fri, 23 Jul 2021 21:13:34 GMT