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
Parameter | Description | Parameter Type |
---|---|---|
id | The service request id | path |
Returns
200 OK - File Attachment
Example
const int = 123
var attachment = await _fileAttachmentManager.GetByServiceRequest(id);