v1

latestOpenAPI 3.0.02026-08-04265791.1 MB
Files

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.

<img src="https://assets.yoobic.com/image/upload/v1769336454/jpjdfb7mhrnmgisymkmf.png" >
post/public/api/files

Headers

Acceptstring

e.g. application/json

Response

OK

file_idstring
folder_idstring
folder_namestring
sizenumber
filenamestring
download_urlstring
mime_typestring
created_datestring
updated_datestring

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"
}