Create File Manager File From Multipart File
This endpoint allows you to import a file and set the properties of the resulting File Manager File entity at the same time. The body of the
request is an HTTP form with the Content-Type header set to multipart/form-data, containing 2 parts: fileManagerFile for the entity
properties, and file for the file.
The fileManagerFile part must have the Content-Type header set to application/json and is similar to other entity types.
The file part contains the file to be uploaded and its Content-Type header must correspond to the file’s data type. For example, for a
.csv file, the Content-Type header for the file part should be text/csv.
For reference, these are the content types associated with common file types:
| File extension | Content type value |
|---|---|
.csv | text/csv |
.xls | application/vnd.ms-excel |
.xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
.zip | application/zip |
.gz | application/gzip |
Permissions
api.file-manager.write
Authorizations
Response
Created

