Download attachment
const url = 'https://localhost:10001/api/v1/attachments/1';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://localhost:10001/api/v1/attachments/1 \ --header 'Authorization: <Authorization>'Retrieve and stream the stored file for the given attachment
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Attachment ID
Responses
Section titled “ Responses ”Attachment file stream
Bad request - Invalid attachment ID
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
Invalid request bodyUnauthorized - Missing or invalid token
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
Invalid request bodyForbidden - Insufficient permissions
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
Invalid request bodyAttachment not found
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
Invalid request bodyInternal server error
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
Invalid request body