Resolve selected Draft conflicts
Save deliberate decisions for the exact inspected Draft. Keep the repository or incoming side, or submit final file content, including binary bytes. Decisions save atomically. Use dry_run to preview them, then generate the Target separately to apply saved decisions and run its checks.
Authorization
apiKey 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
Stable identifier for one configured generated product.
^tgt_[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
application/json
curl -X POST "https://example.com/targets/tgt_5m8q2v7k1p9d4h6c/draft/conflicts/resolve" \ -H "Content-Type: application/json" \ -d '{ "expected_head_revision": "0123456789abcdef0123456789abcdef01234567", "resolutions": [ { "path": "src/index.ts", "keep": "incoming" } ] }'{ "target_id": "tgt_5m8q2v7k1p9d4h6c", "head_revision": "0123456789abcdef0123456789abcdef01234567", "request_id": "req_3k8m1v6q9p2d7h4c", "object": "draft_code_update", "status": "pending_generation", "total_files": 1, "has_more": false, "next_path": null, "files": [ { "path": "src/index.ts", "action": "write", "content_base64": "Z2VuZXJhdGVkCg==", "mode": "100644", "size_bytes": 10, "content_offset": 0, "next_offset": null } ]}Inspect conflicts on a Draft GET
Returns every conflict with its base, repository, and incoming file bytes and modes in one response. An absent file is null. incoming_source distinguishes generated changes, default-branch changes, and recovered saved Draft code. Saved decisions require a separate Generate before conflicts clear.
Discard selected Draft customizations POST
Replace explicitly listed non-conflicting paths with generated files in one Draft commit. Listing a customer-only file deletes it. Use dry_run to inspect writes and deletions first. Resolve conflicts through the separate conflicts action. Generate afterward to refresh the Draft and its checks.