v1
latestOpenAPI 3.0.02026-08-04265791.1 MBFiles
Create
Upload a file in YOOBIC Documents.
To upload a photo, you should make a post request of type multipart/form-data. The request body should contain two fields:
-
file: the binary file you want to upload.
-
group_ids: select the groups that will have visibility of the file.
-
Optionally, folder_id: select the parent folder to upload the file.
post/public/api/files
Headers
Acceptstring
e.g. application/json
Response
OK
Example response
{
"file_id": "54ab03c6546847ee0d30087d",
"folder_id": "54ab03c6546847ee0d30087b",
"folder_name": "Rockets folder",
"size": 25,
"filename": "Rockets file 1",
"download_url": "www.rocketltd.com/file/RocketsFile1.jpg",
"mime_type": "jpg",
"created_date": "2018-05-23T04:51:40.862Z",
"updated_date": "2018-05-23T04:51:40.862Z"
}