Upload a file
curl --request POST \
--url https://api.poelis.com/v1/public/files/{target_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-fileimport requests
url = "https://api.poelis.com/v1/public/files/{target_id}"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://api.poelis.com/v1/public/files/{target_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": "SPEC-ENG-0042",
"content_type": "application/pdf",
"deleted": false,
"description": "Specification document for compressor performance and operating constraints.",
"id": "990e8400-e29b-41d4-a716-446655440000",
"name": "compressor-spec-v3.pdf",
"originalFileName": "compressor-spec-v3.pdf",
"revision": "Rev C",
"size_bytes": 245612,
"uploadedBy": {
"id": "auth0|550e8400-e29b-41d4-a716-446655440000",
"imageUrl": "https://example.com/avatar.png",
"userName": "Jane Doe"
},
"uploaded_at": "2026-04-01T10:11:12.123Z",
"used_in": [
{
"file_link_id": "890e8400-e29b-41d4-a716-446655440000",
"product_id": "660e8400-e29b-41d4-a716-446655440000",
"target_id": "770e8400-e29b-41d4-a716-446655440000",
"target_type": "item"
}
],
"userTitle": "Compressor specification"
}{
"error": "unauthorized",
"message": "Invalid or missing API key"
}{
"error": "forbidden",
"message": "Access denied"
}{
"error": "not_found",
"message": "Not found"
}{
"error": "validation_error",
"message": "Invalid data format",
"details": {
"errors": [
{
"loc": [
"body",
"field_name"
],
"msg": "field required",
"type": "value_error.missing"
}
]
}
}{
"error": "rate_limit_exceeded",
"message": "Too many requests"
}Files
Upload a file
Attach a file to a target identified by target_id.
Today the supported targets are items and properties. The API auto-detects the kind of target from the UUID.
Request
Multipart form data:
file(required): the file bytes.userTitle(optional): editable display title; defaults to the filename.revision(optional): for exampleRev B.code(optional): document code. When AI is on for the organization, empty values may be suggested from the document after upload.allow_duplicate(optional, defaultfalse): whenfalse, an upload whose(size, content_type)already exists in the workspace returns409 duplicate_file. Settrueto override.
Response
201 Created with the new file. used_in[0] reflects the new link:
target_type="item"for an item target (property_typeisnull).target_type="property"for a property target withproperty_typeauto-detected as one ofnumeric,formula,matrix,text,date,status.
AI description
When AI usage is enabled for the workspace’s organization, Poelis enqueues
an AI description generation which runs asynchronously after 201 Created.
It is not blocking the upload response.
If AI usage is disabled for the organization, no description is generated.
Setting description via PATCH /files/{file_id} dismisses further automatic
generation for that file.
Errors
400 invalid_request— missing or emptyfile.400 file_too_large— file exceeds the configured size limit.403— API key org does not match the target’s workspace org.404 target_not_found—target_idis neither a known item nor a known property.409 duplicate_file— duplicate exists; retry withallow_duplicate=trueto bypass.
POST
/
v1
/
public
/
files
/
{target_id}
Upload a file
curl --request POST \
--url https://api.poelis.com/v1/public/files/{target_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-fileimport requests
url = "https://api.poelis.com/v1/public/files/{target_id}"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://api.poelis.com/v1/public/files/{target_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": "SPEC-ENG-0042",
"content_type": "application/pdf",
"deleted": false,
"description": "Specification document for compressor performance and operating constraints.",
"id": "990e8400-e29b-41d4-a716-446655440000",
"name": "compressor-spec-v3.pdf",
"originalFileName": "compressor-spec-v3.pdf",
"revision": "Rev C",
"size_bytes": 245612,
"uploadedBy": {
"id": "auth0|550e8400-e29b-41d4-a716-446655440000",
"imageUrl": "https://example.com/avatar.png",
"userName": "Jane Doe"
},
"uploaded_at": "2026-04-01T10:11:12.123Z",
"used_in": [
{
"file_link_id": "890e8400-e29b-41d4-a716-446655440000",
"product_id": "660e8400-e29b-41d4-a716-446655440000",
"target_id": "770e8400-e29b-41d4-a716-446655440000",
"target_type": "item"
}
],
"userTitle": "Compressor specification"
}{
"error": "unauthorized",
"message": "Invalid or missing API key"
}{
"error": "forbidden",
"message": "Access denied"
}{
"error": "not_found",
"message": "Not found"
}{
"error": "validation_error",
"message": "Invalid data format",
"details": {
"errors": [
{
"loc": [
"body",
"field_name"
],
"msg": "field required",
"type": "value_error.missing"
}
]
}
}{
"error": "rate_limit_exceeded",
"message": "Too many requests"
}Body
multipart/form-data
Response
The newly created file and its initial link usage.
Public representation of a stored file.