# Create upload

```http
POST /projects/{project_reference}/uploads
```

Create a pending upload at a project path and return the signed URL and headers for the PUT request that sends the bytes. Requires project.uploads.write.

## Parameters

| Name                | In   | Required | Description                                                |
| ------------------- | ---- | -------- | ---------------------------------------------------------- |
| `project_reference` | path | Yes      | Project slug, UUID, or domain that identifies the project. |

## Request body

| Field          | Type    | Required | Description                                           |
| -------------- | ------- | -------- | ----------------------------------------------------- |
| `path`         | string  |          | Project-relative path where the upload is stored.     |
| `file_path`    | string  |          | Another spelling of path. Send one of the two.        |
| `content_type` | string  |          | MIME type of the file                                 |
| `size_bytes`   | integer |          | File size in bytes (required for quota tracking).     |
| `size`         | integer |          | Another spelling of size\_bytes. Send one of the two. |

## Responses

| Status | Description                                         |
| ------ | --------------------------------------------------- |
| 201    | Signed upload URL created.                          |
| 400    | Bad request                                         |
| 401    | Unauthorized                                        |
| 402    | Payment required                                    |
| 403    | Forbidden                                           |
| 404    | Not found                                           |
| 409    | An upload was created at the same path concurrently |
| 500    | Server error                                        |
