Update an Issue

PUT /api/0/issues/{issue_id}/

Updates an individual issues’s attributes. Only the attributes submitted are modified.

Path Parameters:issue_id (string) – the ID of the group to retrieve.
Parameters:
  • status (string) – the new status for the issue. Valid values are "resolved", resolvedInNextRelease, "unresolved", and "ignored".
  • assignedTo (string) – the actor id (or username) of the user or team that should be assigned to this issue.
  • hasSeen (boolean) – in case this API call is invoked with a user context this allows changing of the flag that indicates if the user has seen the event.
  • isBookmarked (boolean) – in case this API call is invoked with a user context this allows changing of the bookmark flag.
  • isSubscribed (boolean) –
  • isPublic (boolean) – sets the issue to public or private.
Authentication:required
Method:PUT
Path:/api/0/issues/{issue_id}/

Example

PUT /api/0/issues/1/ HTTP/1.1
Authorization: Bearer {base64-encoded-key-here}
Host: sentry.io
Content-Type: application/json

{
  "status": "unresolved"
}
HTTP/1.1 200 OK
Allow: GET, PUT, DELETE, HEAD, OPTIONS
Content-Language: en
Content-Length: 671
Content-Type: application/json
Vary: Accept-Language, Cookie
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-Xss-Protection: 1; mode=block

{
  "lastSeen": "2018-08-22T18:23:44Z",
  "id": "1",
  "userCount": 0,
  "culprit": "raven.scripts.runner in main",
  "title": "This is an example Python exception",
  "numComments": 0,
  "assignedTo": null,
  "logger": null,
  "type": "default",
  "annotations": [],
  "metadata": {
    "title": "This is an example Python exception"
  },
  "status": "unresolved",
  "subscriptionDetails": null,
  "isPublic": false,
  "permalink": null,
  "shortId": "PUMP-STATION-1",
  "shareId": null,
  "firstSeen": "2018-08-22T18:23:44Z",
  "count": "1",
  "hasSeen": false,
  "level": "error",
  "isSubscribed": false,
  "isBookmarked": false,
  "project": {
    "slug": "pump-station",
    "id": "2",
    "name": "Pump Station"
  },
  "statusDetails": {}
}