Get a file by service request id
Description
Gets a file attachment by a service request id.
Package Details
Interface
IFileAttachmentManager
Syntax
await fileAttachmentManager.GetByServiceRequest(<sr id>);
Returns
Task<FileAttachment>
API
GET
/api/v1/servicerequests/{id}/file-attachments
Parameters
Path
Id: The service request id
Returns
200 OK - File Attachment
Example
const int = 123
var attachment = await _fileAttachmentManager.GetByServiceRequest(id);