Update Employee File
PUT /services/api/v1/employee_files/{id}
Updates an existing employee file.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | The ID of the employee file. |
Request Body
- Example
- Schema
{
"file_url": "https://onboard.org/file2.txt",
"employee_file_category_id": "RrB7LYD2",
"date": "02/02/2025",
"name": "name2.txt",
}
Attribute | Type | Required | Description |
---|---|---|---|
file_url | string | true | A URL pointing to a publicly accessible file. |
employee_file_category_id | string | true | Employee file category id |
date | string | false | Creation date of the file. |
name | string | false | The name of the file. |
employee_id | string | true | Employee id |
Response
The updated employee file.
- Example
- Schema
{
"id": "Oxz0RGYk",
"employee_id": "A96eZlzn",
"employee_file_category_id": "RrB7LYD2",
"date": "2025-02-02",
"display_name": "name2.txt",
"name": "name2.txt",
"file_url": "http://onboard.org/file2.txt",
"file_name": "file2.txt",
"file_size": 4,
"file_content_type": "text/plain",
"created_at": "2025-04-29T13:57:22.171Z",
"updated_at": "2025-05-13T11:10:45.977Z"
}
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. |
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. |
Unprocessable Entity. Example:
{
"email": ["This field is mandatory."],
"birthday": ["This field is invalid."]
}