Projects

Apply exact, reviewed diagnostic remediations

Applies only deterministic patches. Repository sources receive an updateable source pull request; URL sources receive project overlays. Diagnostics that require API-owner intent return 422 and include an authoring_brief in the Diagnostic instead.

POST
/projects/{project_id}/diagnostics/remediations

Applies only deterministic patches. Repository sources receive an updateable source pull request; URL sources receive project overlays. Diagnostics that require API-owner intent return 422 and include an authoring_brief in the Diagnostic instead.

AuthorizationBearer <token>

Organization API key from the console (ak_...), or an OAuth access token with user:org:read, the organization selected during consent, and the capability required by the operation.

In: header

Path Parameters

project_id*string

Unique identifier for a project.

Match^prj_[a-z0-9]{16}$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/projects/prj_4f8k2m7x9q1v6b3n/diagnostics/remediations" \  -H "Content-Type: application/json" \  -d '{    "diagnostic_ids": [      "string"    ]  }'
{  "object": "diagnostic_remediation",  "kind": "overlay",  "patches_applied": 0,  "review_url": "http://example.com"}