GET https://qa-api.bentley.com/issues/{id}/attachments
Retrieves the metadata for all files attached to the given issue. In order to get the contents of a file itself, use the Get attachment file by ID endpoint, passing the id from the metadata object returned by this request as the attachmentId parameter of that request.
To use this endpoint, the user is required to have the Forms View (Forms_ViewAccess) permission for the iTwin, or for the issue's associated form definition if form definition security is specified. (Having any other level of Forms permission automatically grants the View permission as well.)
{"attachments":[{"id":"XZzxOCC8sVvUcgeXz1Ih_exlLgPfRTpAuShXz1cTpAu","fileName":"CrackedConcrete.png","createdDateTime":"2020-10-20T16:16:30.6704320Z","size":34770,"caption":"Picture of the cracked concrete","binding":"TypeOfDefect","type":"png"},{"id":"XZzxOCC8sVvUcgeXz1Ih_exlLgPfRTpAuShXz1cTpAu","fileName":"StreetView.png","createdDateTime":"2020-10-20T16:08:30.2804722Z","size":56893,"caption":"Picture showing the bridge from the perspective of an approaching car","binding":null,"type":"png"}]}
This response indicates that request lacks valid authentication credentials. Access token might not been provided, issued by the wrong issuer, does not have required scopes or request headers were malformed.
json
HeaderNotFound
{"error":{"code":"HeaderNotFound","message":"Header Authorization was not found in the request. Access denied."}}
Gives details for an error that occurred while handling the request. Note that clients MUST NOT assume that every failed request will produce an object of this schema, or that all of the properties in the response will be non-null, as the error may have prevented this response from being constructed.