---
title: "Create"
method: POST
path: "/public/api/files"
tags: ["Files"]
---

# Create

`POST /public/api/files`

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

## Headers

- `Accept` string

## Response `200`

OK

- object
  - `file_id` string
  - `folder_id` string
  - `folder_name` string
  - `size` number
  - `filename` string
  - `download_url` string
  - `mime_type` string
  - `created_date` string
  - `updated_date` string

---

[API](https://skmtc.net/yoobic/apis/yoobic-public-api.md) · [All operations](https://skmtc.net/yoobic/apis/yoobic-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/yoobic/yoobic-public-api/revisions/dd57df399bc4/schema)
