Agent

Create a vulnerability patch record

Create a CodeScanVulnerabilityPatch record for a vulnerability. This records a proposed fix and can later be submitted for PR creation via agent.triggerPrFromPatch.

post/api/v2/agent/createPatch

Request

  • Base URL
    https://zeropath.com
  • Auth
    API key in header X-ZeroPath-API-Token-Id and API key in header X-ZeroPath-API-Token-Secret

Request body

organizationIdstring

Organization ID (injected by MCP server)

vulnerabilityIdstring uuid required

ID of the vulnerability to create a patch for

prTitlestring required

Title for the pull request

prDescriptionstring

Description for the pull request

gitDiffstring

Git diff content for the patch

localBranchstring

Local branch name where the patch was created

Response

Patch record created

Changes

No recorded changes to this operation across all 1 revision of this API.