Upload a New Organization Release File

POST /api/0/organizations/{organization_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.

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

<auth_token> requires one of the following scopes:
  • org:ci
  • project:admin
  • project:releases
  • project:write
Copied
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/releases/{version}/files/ \
 -H 'Authorization: Bearer <auth_token>' \
 -H 'Content-Type: multipart/form-data'
RESPONSESCHEMA
Copied
.
Was this helpful?