Skip to navigation

Attachment - LIST (Retrieve FileID)

View as Markdown

This API is used to extract list of employee attachments data (e.g., resume, profile photo, etc.). It retrieves attachment from TblEmployeeAttachment table, joined with TblAttachment.

Note: this API does not return the actual file or binary content. In order to get actual file (in binary format), use the FileID returned from this API in the GetAttachment API.

It can also filter with EmployeeCode parameter for a specific employee. If EmployeeCode is not provided, the API returns attachments uploaded in the past 30 days.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
InterfaceCodestringRequired

Response headers

CF-RAYstringOptional
pragmastringOptional
expiresstringOptional
Cache-ControlstringOptional
CF-Cache-StatusstringOptional
x-frame-optionsstringOptional
x-aspnet-versionstringOptional
x-xss-protectionstringOptional
x-content-type-optionsstringOptional
content-security-policystringOptional
strict-transport-securitystringOptional

Response

OK
FileIDstringformat: "uuid"
Sourcestring
FileNamestring
DateCreateddatetime
AttachmentIDstringformat: "uuid"
EmployeeCodestring
FileSizeInBytesinteger
OriginalFileNamestring