v1
latestOpenAPI 3.0.0Proprietary2026-08-06130577659.7 KBCreate/Update a file.
This endpoint can be used to create/update files and assign them to an employee, vehicle, project, order or tool. The file must be base64 encoded and provided in the data field. The base64 encoded file can only be up to 256 MB in size. The object type allows you to choose whether to associate the file with an employee or one of the other options provided. You must also provide a tagId or targetReference to associate the document with a target. The filename must be the full filename including the extension, for example: document.pdf. You risk corrupting the file if you do not specify the extension. You can add a file type by specifying its id. You can see a list of available file types at the fetch_type endpoint. If none is specified, the default file type is used.
Request body
Example request
{
"records": [
{
"data": {
"date": "2015-02-20",
"validTo": "2015-02-20"
}
}
]
}Response
Success Response: