Skip to main content
PUT
Error

Authorizations

Authorization
string
header
required

API token obtained from the Tokens endpoint or CLI device login. Include as Authorization: Bearer <token>. Requests made with a managed CLI session also include X-Strix-Workspace: <organization_id> to pin a process to the workspace it started in; recovery endpoints report the current workspace after a concurrent switch.

Path Parameters

vulnerabilityId
string
required

ID of the vulnerability. Use the id field of a finding from listVulnerabilities.

Body

application/json
url
string<uri>
required

Pull request or merge request URL.

Example:

"https://github.com/acme/api/pull/42"

expected_fix_pr_url
string<uri> | null

The pull request the caller believes the vulnerability currently stores; null when it should have none. When present, the request only succeeds if that is still the case and returns 409 otherwise. Use it to restore a link without overwriting one added in the meantime.

Example:

null

Response

Pull request linked. ticket_links reports the attachment to the finding's tickets.

fix_pr_url
string
required

Canonical form of the stored URL.

Result of attaching the pull request to the finding's tickets. Every list is empty when the finding has no ticket.

replaced
object | null
required

The pull request this one replaced, when the finding already had one.