Issues

Regenerate Patch

Regenerate the patch for a single issue. Deletes any existing patch (and any leftover patch candidates) and enqueues a fresh patch generation request. If force is true and the issue was previously marked unpatchable, the unpatchable flag (and any recorded reason/remediation instructions) is cleared and a new patch generation request is enqueued anyway — the agent may still refuse on retry. With variantCount > 1 the worker stores alternative patch candidates on the issue instead of a patch; fetch them from the issue detail (patchCandidates) and promote one with issues.selectPatchCandidate. Returns the new patch generation request id.

post/api/v2/issues/regeneratePatch

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
issueIdstring required
forceboolean

Override the unpatchable flag and force generation. Defaults to false.

feedbackstring

Free-form feedback describing what should change about the previous patch. Forwarded verbatim to the patch-generation agent.

variantCountinteger

How many alternative patches to generate (default 1). With more than 1, the worker stores patch candidates for selection instead of applying a patch directly.

Response

Patch regeneration request created

okboolean required
requestIdstring required

Changes

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