Skip to navigation

Update issues in bulk

Move up to 500 issues to one status with one shared close record, for example closing a set of findings as duplicates of one original. The same rules apply as in Update an issue, checked for every issue before anything is written.

Send dryRun: true to check permissions and see each issue’s change without writing. A bulk update records each issue in the audit log, but does not send the per-issue issue.updated webhook or realtime update, or learn from false-positive dismissals, as a single update does.

Errors: 400 for an invalid value or an inconsistent duplicate; 403 in workspaces where Pensar owns the verdict (move issues to in-review instead); 404 when an issue or the duplicateOf original is not in the workspace.

Requires the issues:write API key scope.

Authentication

AuthorizationBearer

A workspace API key, sent as Authorization: Bearer.

OR
x-api-keystring

A workspace API key, sent as x-api-key.

Request

This endpoint expects an object.
issueIdslist of stringsRequired
Issues to update, as UUIDs or labels. 1 to 500.
statusenumRequired
Allowed values:
closedDispositionenumOptional
Structured close verdict, applied to every issue. Send one whenever a close is not a plain fix.
Allowed values:
duplicateOfstringOptional

The original issue, as a UUID or label. Required with, and only with, closedDisposition: "duplicate".

closedReasonstringOptional

Free-text reason for closing.

closedCommentsstringOptional
dryRunbooleanOptional
Check permissions and return what would change without writing anything.

Response

The issues that were, or with dryRun would be, updated.

dryRunboolean
updatedlist of objects

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error