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.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.
Documentation Index
Fetch the complete documentation index at: https://docs.poelis.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Enter your API key. Example: Bearer poelis_api_...
Path Parameters
Body
Response
The newly created file and its initial link usage.
Public representation of a stored file.
File ID
Original file name
Whether the file is soft-deleted
Optional editable file title
MIME type
File description
File size in bytes
ISO 8601 upload timestamp
User who uploaded the file
{
"id": "auth0|550e8400-e29b-41d4-a716-446655440000",
"imageUrl": "https://example.com/avatar.png",
"userName": "Jane Doe"
}
Current file link placements for this file