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)REQUIREDThe ID or slug of the organization the resource belongs to.
version(string)REQUIREDThe version identifier of the release
Body Parameters
file(string)REQUIREDThe 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.
<auth_token> requires one of the following scopes:org:ciproject:adminproject:releasesproject: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?