Update an Organization's Release
Update a release. This can change some metadata associated with the release (the ref, url, and dates).
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
- ref(string)
- An optional commit reference. This is useful if a tagged version has been provided. 
- url(string)
- A URL that points to the release. For instance, this can be the path to an online interface to the source code, such as a GitHub URL. 
- dateReleased(string)
- An optional date that indicates when the release went live. If not provided the current time is used. 
- commits(array(object))
- An optional list of commit data to be associated. 
- refs(array(object))
- An optional way to indicate the start and end commits for each repository included in a release. Head commits must include parameters - repositoryand- 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.
Scopes
<auth_token> requires one of the following scopes:- org:ci
- project:admin
- project:releases
- project:write
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/releases/{version}/ \
 -H 'Authorization: Bearer <auth_token>' \
 -X PUT \
 -H 'Content-Type: application/json' \
 -d '{}'{
  "id": 1122684517,
  "version": "control@abc123",
  "status": "open",
  "shortVersion": "control@abc123",
  "versionInfo": {
    "package": "control",
    "version": {
      "raw": "abc123"
    },
    "description": "abc123",
    "buildHash": "abc123"
  },
  "ref": null,
  "url": null,
  "dateReleased": null,
  "dateCreated": "2024-05-21T11:26:16.190281Z",
  "data": {},
  "newGroups": 0,
  "owner": null,
  "commitCount": 2,
  "lastCommit": {
    "id": "xyz123",
    "message": "feat(raspberries): Made raspberries even more delicious",
    "dateCreated": "2024-05-21T11:04:55Z",
    "pullRequest": {
      "id": "70214",
      "title": "feat(raspberries): Made raspberries even more delicious",
      "message": "Made raspberries even more delicious",
      "dateCreated": "2024-05-03T07:32:28.205043Z",
      "repository": {
        "id": "1",
        "name": "raj/raspberries",
        "url": "https://raspberries.raspberries/raj/raspberries",
        "provider": {
          "id": "integrations:github",
          "name": "GitHub"
        },
        "status": "active",
        "dateCreated": "2016-10-10T21:36:42.414678Z",
        "integrationId": "2933",
        "externalSlug": "raj/raspberries",
        "externalId": "873328"
      },
      "author": {
        "id": "2837091",
        "name": "Raj's Raspberries",
        "username": "rajraspberry",
        "avatarUrl": "https://gravatar.com/avatar/bf99685de539465db9208ab3a888843ba0e5e85b1f156084484c7c6c31312be5?s=32&d=mm",
        "isActive": true,
        "hasPasswordAuth": false,
        "isManaged": false,
        "dateJoined": "2023-08-07T12:32:09.091427Z",
        "lastLogin": "2024-05-21T05:46:23.824074Z",
        "has2fa": true,
        "lastActive": "2024-05-21T13:59:10.614891Z",
        "isSuperuser": true,
        "isStaff": true,
        "experiments": {},
        "emails": [
          {
            "id": "2972219",
            "email": "raj@raspberries",
            "is_verified": true
          }
        ],
        "avatar": {
          "avatarType": "upload",
          "avatarUuid": "xyz123",
          "avatarUrl": "https://sentry.io/avatar/xyz123/"
        }
      },
      "externalUrl": "https://github.com/raj/raspberries/pull/70214"
    },
    "suspectCommitType": "",
    "repository": {
      "id": "1",
      "name": "raj/raspberries",
      "url": "https://github.com/raj/raspberries",
      "provider": {
        "id": "integrations:github",
        "name": "GitHub"
      },
      "status": "active",
      "dateCreated": "2016-10-10T21:36:42.414678Z",
      "integrationId": "2933",
      "externalSlug": "raj/raspberries",
      "externalId": "873328"
    },
    "author": {
      "id": "2837091",
      "name": "Raj's Raspberries",
      "username": "rajraspberry",
      "avatarUrl": "https://gravatar.com/avatar/bf99685de539465db9208ab3a888843ba0e5e85b1f156084484c7c6c31312be5?s=32&d=mm",
      "isActive": true,
      "hasPasswordAuth": false,
      "isManaged": false,
      "dateJoined": "2023-08-07T12:32:09.091427Z",
      "lastLogin": "2024-05-21T05:46:23.824074Z",
      "has2fa": true,
      "lastActive": "2024-05-21T13:59:10.614891Z",
      "isSuperuser": true,
      "isStaff": true,
      "experiments": {},
      "emails": [
        {
          "id": "2972219",
          "email": "raj@raspberries",
          "is_verified": true
        }
      ],
      "avatar": {
        "avatarType": "upload",
        "avatarUuid": "xyz123",
        "avatarUrl": "https://sentry.io/avatar/xyz123/"
      }
    },
    "releases": [
      {
        "version": "control@abc123",
        "shortVersion": "control@abc123",
        "ref": null,
        "url": null,
        "dateReleased": null,
        "dateCreated": "2024-05-21T11:26:16.190281Z"
      },
      {
        "version": "backend@abc123",
        "shortVersion": "backend@abc123",
        "ref": null,
        "url": null,
        "dateReleased": null,
        "dateCreated": "2024-05-21T11:56:36.790866Z"
      },
      {
        "version": "control@def789",
        "shortVersion": "control@def789",
        "ref": null,
        "url": null,
        "dateReleased": null,
        "dateCreated": "2024-05-21T12:44:25.923663Z"
      },
      {
        "version": "frontend@ghi012",
        "shortVersion": "frontend@ghi012",
        "ref": null,
        "url": null,
        "dateReleased": null,
        "dateCreated": "2024-05-21T12:46:42.338358Z"
      }
    ]
  },
  "deployCount": 1,
  "lastDeploy": {
    "id": 53070941,
    "environment": "canary-test-control",
    "dateStarted": null,
    "dateFinished": "2024-05-21T11:26:17.597793Z",
    "name": "control@abc123 to canary-test-",
    "url": null
  },
  "authors": [
    {
      "id": 2837091,
      "name": "Raj's Raspberries",
      "username": "rajraspberry",
      "email": "raj@raspberries",
      "avatarUrl": "https://gravatar.com/avatar/bf99685de539465db9208ab3a888843ba0e5e85b1f156084484c7c6c31312be5?s=32&d=mm",
      "isActive": true,
      "hasPasswordAuth": false,
      "isManaged": false,
      "dateJoined": "2023-08-07T12:32:09.091427Z",
      "lastLogin": "2024-05-21T05:46:23.824074Z",
      "has2fa": true,
      "lastActive": "2024-05-21T13:59:10.614891Z",
      "isSuperuser": true,
      "isStaff": true,
      "experiments": {},
      "emails": [
        {
          "id": "2972219",
          "email": "raj@raspberries",
          "is_verified": true
        }
      ],
      "avatar": {
        "avatarType": "upload",
        "avatarUuid": "xyz123",
        "avatarUrl": "https://sentry.io/avatar/xyz123/"
      }
    }
  ],
  "projects": [
    {
      "id": 1,
      "slug": "sentry",
      "name": "Backend",
      "newGroups": 0,
      "platform": "python",
      "platforms": [
        "native",
        "other",
        "python"
      ],
      "hasHealthData": false,
      "healthData": {
        "durationP50": null,
        "durationP90": null,
        "crashFreeUsers": null,
        "crashFreeSessions": null,
        "sessionsCrashed": 0,
        "sessionsErrored": 0,
        "totalUsers": null,
        "totalUsers24h": null,
        "totalProjectUsers24h": null,
        "totalSessions": null,
        "totalSessions24h": null,
        "totalProjectSessions24h": null,
        "adoption": null,
        "sessionsAdoption": null,
        "stats": {
          "24h": [
            [
              1715126400,
              0
            ],
            [
              1715212800,
              0
            ],
            [
              1715299200,
              0
            ],
            [
              1715385600,
              0
            ],
            [
              1715472000,
              0
            ],
            [
              1715558400,
              0
            ],
            [
              1715644800,
              0
            ],
            [
              1715731200,
              0
            ],
            [
              1715817600,
              0
            ],
            [
              1715904000,
              0
            ],
            [
              1715990400,
              0
            ],
            [
              1716076800,
              0
            ],
            [
              1716163200,
              0
            ],
            [
              1716249600,
              0
            ]
          ]
        },
        "hasHealthData": false
      }
    }
  ],
  "firstEvent": null,
  "lastEvent": null,
  "currentProjectMeta": {},
  "userAgent": "Python-urllib/3.11",
  "adoptionStages": {
    "sentry": {
      "stage": "low_adoption",
      "adopted": null,
      "unadopted": null
    }
  }
}