---
title: "Upload a New Project Release File"
url: https://docs.sentry.io/api/releases/upload-a-new-project-release-file/
---

# Upload a New Project Release File | Sentry Docs

POST /api/0/projects/{organization\_id\_or\_slug}/{project\_id\_or\_slug}/releases/{version}/files/

Upload a new file for the given release.

Files must be uploaded using the `multipart/form-data` content type, against the region-specific domain (e.g. `us.sentry.io` or `de.sentry.io`).

### Path Parameters

* `organization_id_or_slug` *(string)*

  REQUIRED

  The ID or slug of the organization the resource belongs to.

* `project_id_or_slug` *(string)*

  REQUIRED

  The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.

* `version` *(string)*

  REQUIRED

  The version identifier of the release

### Body Parameters

* `file` *(string)*

  REQUIRED

  The multipart-encoded file contents to upload.

* `name` *(string)*

  The name (full path) the file will be referenced as, e.g. the full web URI of a JavaScript file. Defaults to the uploaded file's name.

* `dist` *(string)*

  The name of the distribution to associate the file with.

* `header` *(array(string))*

  Headers to attach to the file, each formatted as a `"key:value"` string (for example, to define a content type). May be supplied multiple times.

### Scopes

You need to [authenticate via bearer auth token.](https://docs.sentry.io/api/auth.md)

`<auth_token>` requires one of the following scopes:

* `org:ci`
* `project:admin`
* `project:releases`
* `project:write`

```
curl https://sentry.io/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/releases/{version}/files/ \
 -H 'Authorization: Bearer <auth_token>' \
 -H 'Content-Type: multipart/form-data'
```

RESPONSESCHEMA

```
Copied
.
```

---

Find other pages: [Sitemap](https://docs.sentry.io/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://docs.sentry.io/llms.txt) gives an overview with guidance for agents.
