List Employee Files
GET /services/api/v1/employee_files
Returns a list of employee files.
Optional Query Parameters
Parameter | Type | Description |
---|---|---|
created_at_since | timestamp | Only return employee files that have been created since the specified timestamp. |
updated_at_since | timestamp | Only return employee files that have been updated since the specified timestamp. |
employee_file_category_id | string | Only return employee files that are in the provided category. |
employee_id | string | Only return employee files that belong to the provided employee. |
Response
Results list.
- Example
- Schema
{
"entries": [
{
"id": "A96ey16n",
"employee_id": "vke923ml",
"employee_file_category_id": "KZBGNQz4",
"date": "2024-07-27",
"type_of": "custom",
"display_name": "MY CV",
"name": "MY CV",
"file_url": "http://assets.onboard.org/uploads/employee_file/file/vM7WRbqLmEjpOQyag6P0/cv.pdf",
"file_name": "cv.pdf",
"file_size": 75637,
"file_content_type": "application/pdf",
"created_at": "2024-09-12T14:25:18.181Z",
"updated_at": "2024-09-12T14:25:34.027Z"
},
{
"id": "Lez8GJ6g",
"employee_id": "k7Rf4gBMi"
"employee_file_category_id": "da6K0nzA",
"date": "2024-08-27",
"type_of": "custom",
"display_name": "STCED.pdf",
"name": null,
"file_url": "http://assets.onboard.org/uploads/employee_file/file/AJV7KrRz2QAg2wYZD8gG/STCED.pdf",
"file_name": "STCED.pdf",
"file_size": 1041137,
"file_content_type": "application/pdf",
"created_at": "2024-09-12T14:25:18.181Z",
"updated_at": "2024-09-12T14:25:34.027Z"
}
],
"current_page": 1,
"per_page": 30,
"total_entries": 2
}
Attribute | Type | Description |
---|---|---|
id | string | Employee file id. |
created_at | timestamp | Creation timestamp. |
updated_at | timestamp | Last update timestamp. |
employee_file_category_id | string | Id of the employee file category the file is in. Null when file is not assigned to any category. |
date | string | Creation date of the file. |
type_of | int | Type of the file. Possible values are: ["custom", "employee_payout", "certificazione_unica", "signed_document"] |
name | string | Customizable name of the file. |
file_url | string | Temporary url to the file. |
file_name | string | Name of the file. |
file_size | int | Size of the file in bytes. |
file_content_type | string | Content Type of the file. |