Files
Upload a file
Upload a file in order to reference it as the attachment of another resource (e.g. a portrait).
POST
Upload a file
Access
Access
OAuth 2.0 scopes
Authorizations
The Lucca API implements the oAuth 2 protocol with the client-credentials-flow. Refer to RFC8725.
Headers
Set the API version.
Available options:
2024-11-01 Allowed value:
"2024-11-01"Maximum string length:
10Example:
"2024-11-01"
Query Parameters
Include metadata:
embedded: the partial or complete representations of related resources (e.g. the employee the resource belongs to).links: links to related resources or actions (e.g. approving a leave-request). May benullwhen you do not have access to the resource (or action). Includes the download links of the files the resource references, underlinks.files.totalCount: only applicable on collections (i.e. lists of resources), gives the total number of items across all pages.
Read more about expanding responses.
Available options:
embedded, links, totalCount Response
File successfully uploaded.
JSON representation of a file. A file may be downloaded via the Accept: octet-stream HTTP header.
Indicates the content-type of the file. Refer to the enum values to figure out which are accepted.
Available options:
message/rfc822, binary/octet-stream, unknown/unknown, audio/mpeg, video/mp4, image/png, image/heic, image/heif, image/jpe, image/jpg, image/pjpeg, image/gif, image/bmp, image/tif, image/tiff, image/x-dcraw, image/x-jb2, image/x-jbig2, image/x-jpf, image/x-ms-bmp, image/x-panasonic-raw, image/x-pcx, image/x-icon, image/x-png, image/vnd.microsoft.icon, image/webp, image/svg+xml, image/x-portable-anymap, text/plain, text/csv, text/rtf, text/calendar, text/comma-separated-values, text/css, text/html, text/xml, text/markdown, text/x-affix, application/pdf, application/msword, application/xls, application/x-csv, application/ms-excel, application/vnd.ms-office, application/vnd.ms-word, application/vnd.ms-outlook, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/vnd.ms-excel.sheet.binary.macroEnabled.12, application/vnd.ms-excel.sheet.macroEnabled.12, application/vnd.ms-pki.stl, application/vnd.ms-xpsdocument, application/vnd.oasis.opendocument.text, application/vnd.oasis.opendocument.spreadsheet, application/vnd.oasis.opendocument.presentation, application/vnd.oasis.opendocument.graphics, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.openxmlformats-officedocument.presentationml.slideshow, application/vnd.openxmlformats-officedocument.presentationml.template, application/x-7z-compressed, application/rar, application/x-rar, application/zip, application/andrew-inset, application/binary, application/csv, application/download, application/force-download, application/x-download, application/hta, application/javascript, application/json, application/mac-binhex40, application/oleobject, application/pkcs7-signature, application/postscript, application/rtf, application/text, application/txt, application/unknown, application/x-iwork-keynote-sffkey, application/x-ms-application, application/x-ms-manifest, application/x-msdownload, application/x-pdf, application/x-unknown, application/x-zip-compressed, application/xml, application/x-wine-extension-ini, application/vnd.hp-hpgl, application/x-sega-pico-rom