Bulk Mutate a List of Issues

PUT /api/0/projects/{organization_slug}/{project_slug}/issues/

Bulk mutate various attributes on issues. The list of issues to modify is given through the id query parameter. It is repeated for each issue that should be modified.

  • For non-status updates, the id query parameter is required.
  • For status updates, the id query parameter may be omitted for a batch “update all” query.
  • An optional status query parameter may be used to restrict mutations to only events with the given status.

The following attributes can be modified and are supplied as JSON object in the body:

If any ids are out of scope this operation will succeed without any data mutation.

Query Parameters:
  • id (int) – a list of IDs of the issues to be mutated. This parameter shall be repeated for each issue. It is optional only if a status is mutated in which case an implicit update all is assumed.
  • status (string) – optionally limits the query to issues of the specified status. Valid values are "resolved", "unresolved" and "ignored".
Path Parameters:
  • organization_slug (string) – the slug of the organization the issues belong to.
  • project_slug (string) – the slug of the project the issues belong to.
Parameters:
  • status (string) – the new status for the issues. Valid values are "resolved", "resolvedInNextRelease", "unresolved", and "ignored".
  • ignoreDuration (int) – the number of minutes to ignore this issue.
  • isPublic (boolean) – sets the issue to public or private.
  • merge (boolean) – allows to merge or unmerge different issues.
  • assignedTo (string) – the username of the user 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.
Authentication:

required

Method:

PUT

Path:

/api/0/projects/{organization_slug}/{project_slug}/issues/

Example

PUT /api/0/projects/the-interstellar-jurisdiction/pump-station/issues/?id=1&id=2 HTTP/1.1
Authorization: Basic ___ENCODED_API_KEY___
Host: app.getsentry.com
Content-Type: application/json

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

{
  "status": "unresolved",
  "isPublic": false,
  "statusDetails": {}
}