Get an attachment
This endpoint is deprecated. Please do not use it for new projects. The documentation remains here for legacy API consumers. Please use the Frontend API V3.
Get an attachment
For retrieving an attachment assigned to an application by attachment-ID and applicationId use the /applications/{applicationId}/attachments/{attachmentId} endpoint.
By sending the following GET-request, one can obtain the requested attachment.
1 2 |
curl -i -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X GET "https://api.softgarden.io/api/rest/v2/frontend/applications/{applicationId}/attachments/{attachmentId}" |
with TOKEN being the user access token of the user in question. It is used to determine the validity of this request. Moreover the {applicationId} is the ID of the application, the attachment is assigned to and the {attachmentId} is the ID of the desired attachment.
Path parameters
Name | Description | Data Type |
---|---|---|
applicationId | The ID of the application the attachment is assigned to. | String |
attachmentId | The ID of the desired attachment. | String |
Query parameters
– none –
Response values
Upon | Returned value | Description |
---|---|---|
success | n/a | User will be redirected to the requested file. |
failure | 500 – INTERNAL SERVER ERROR | When an error appears while processing your request. |
authorization error | 401 / 403 | See here for details. |