Update an Organization's Release

PUT /api/0/organizations/{organization_slug}/releases/{version}/

Update a release. This can change some metadata associated with the release (the ref, url, and dates).

Path Parameters:
  • organization_slug (string)

    the slug of the organization the release belongs to.

  • version (string)

    the version identifier of the release.

Parameters:
  • ref (string)

    an optional commit reference. This is useful if a tagged version has been provided.

  • url (url)

    a URL that points to the release. This can be the path to an online interface to the sourcecode for instance.

  • dateReleased (datetime)

    an optional date that indicates when the release went live. If not provided the current time is assumed.

  • commits (array)

    an optional list of commit data to be associated with the release. Commits must include parameters id (the sha of the commit), and can optionally include repository, message, author_name, author_email, and timestamp.

  • refs (array)

    an optional way to indicate the start and end commits for each repository included in a release. Head commits must include parameters repository and commit (the HEAD sha). They can optionally include previousCommit (the sha of the HEAD of the previous release), which should be specified if this is the first time you’ve sent commit data.

Authentication: required
Method: PUT
Path: /api/0/organizations/{organization_slug}/releases/{version}/

Example

PUT /api/0/organization/the-interstellar-jurisdiction/releases/3000/ HTTP/1.1
Host: sentry.io
Authorization: Bearer <token>
Content-Type: application/json

{
  "ref": "deadbeef1337", 
  "url": "https://vcshub.invalid/user/project/refs/deadbeef1337"
}
HTTP/1.1 404 NOT FOUND
Content-Length: 0
X-XSS-Protection: 1; mode=block
Content-Language: en
X-Content-Type-Options: nosniff
Vary: Accept-Language, Cookie
X-Frame-Options: deny
Content-Type: text/html; charset=utf-8