GetById()

Get a file by its id

Description

Gets a file attachment by its id.

Package Details

Interface

IFileAttachmentManager

Syntax

await fileAttachmentManager.GetById(int id);

Returns

Task<FileAttachment>

API

GET
/api/v1/file-attachments/{id}

Parameters

Parameter

Description

Parameter Type

Parameter

Description

Parameter Type

id

file attachment id

path

Returns

200 OK - File Attachment

Example

int fileId = 123; var attachment = await _fileAttachmentManager.GetById( fileId );