Upload a file
Uploads a file's binary content and attaches it to a project in one call. An alternative to the two-step presigned-URL flow (see the upload-url endpoints in the Room Scans / Files documentation) for integrators that prefer sending the binary directly. category is not accepted: the created file always has category=project. fileType must be an allowed autarc_file_type label (see UploadFileType); personnel types are rejected.
Request
- Base URLhttps://api3.autarc.energy/v1
- AuthAPI key in header X-Api-Key
Request body multipart/form-data
The project to attach the file to.
Display name shown in the project's documents. Defaults to the uploaded filename if omitted.
autarc_file_type labels accepted by POST /v1/files. Defaults to image for image mime types, other otherwise. Personnel types (employmentContract, contractAmendment, personnelDocument) are rejected because they require category=personnel, which this endpoint never sets.
The file content. Accepted mime types: image/jpeg, image/png, image/webp, image/heic, image/heif, application/pdf, text/csv, text/plain, application/msword, .docx, application/vnd.ms-excel, .xlsx. Max size 100MB.
Response
The created file
Specific document kind. GET /v1/files may return any autarc_file_type label, including personnel types uploaded from the team member panel.
Owner/context of the file (not a folder hierarchy). Public GET /v1/files returns the company's files of every category listed here; the only list filter is projectId. Public POST /v1/files does not accept this field and always writes category=project.
Changes
No recorded changes to this operation across all 1 revision of this API.