Targets

Resolve or reset custom code on the rolling Draft

POST
/targets/{target_id}/customizations/reset

Keeps the current or generated side of selected conflicts, or resets all customizations. Reruns integration and checks on the same Draft. Supply the expected head revision to prevent a stale choice from changing a newer Draft.

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

target_id*string

Stable identifier for one configured generated product.

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

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Resolve an explicit bounded conflict batch, or reset or adopt all current customizations in one call.

Resolve an explicit bounded conflict batch, or reset or adopt all current customizations in one call.

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/customizations/reset" \  -H "Content-Type: application/json" \  -d '{    "paths": [      "string"    ],    "expected_head_revision": "0123456789abcdef0123456789abcdef01234567"  }'
{  "object": "target_customizations",  "target_id": "tgt_5m8q2v7k1p9d4h6c",  "status": "not_generated",  "attempt_id": "int_8m2q5v1k9p4d7h3c",  "baseline_available": true,  "input": {    "current_release_id": "rel_7m2q8v4k1p9d5h6c",    "previous_generation_id": "gen_7h2p5d9c3m8w1k6q",    "previous_generated_snapshot_id": "snap_6m1q8v4k2p9d7h3c",    "previous_combined_snapshot_id": "snap_6m1q8v4k2p9d7h3c",    "current_snapshot_id": "snap_6m1q8v4k2p9d7h3c",    "current_revision": "string",    "next_generation_id": "gen_7h2p5d9c3m8w1k6q",    "next_generated_snapshot_id": "snap_6m1q8v4k2p9d7h3c",    "default_revision": "string",    "draft_revision": "string"  },  "output": {    "combined_snapshot_id": "snap_6m1q8v4k2p9d7h3c",    "generated_hash": "string",    "customer_diff_hash": "string",    "final_package_hash": "string",    "publication_required": true,    "candidate_revision": "string"  },  "changes": [    {      "path": "string",      "kind": "added",      "previous": {        "mode": "100644",        "hash": "string"      },      "current": {        "mode": "100644",        "hash": "string"      },      "next": {        "mode": "100644",        "hash": "string"      }    }  ],  "conflicts": [    {      "path": "string",      "kind": "missing_baseline",      "fingerprint": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",      "previous": {        "present": true,        "mode": "100644",        "hash": "string"      },      "current": {        "present": true,        "mode": "100644",        "hash": "string"      },      "next": {        "present": true,        "mode": "100644",        "hash": "string"      }    }  ],  "conflict_stage": "default_sync",  "reused_resolutions": [    {      "path": "string",      "fingerprint": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",      "choice": "current",      "approved_revision": "string",      "approved_by": "string",      "approved_at": "2019-08-24T14:15:22Z"    }  ],  "checks": [    {      "name": "string",      "source": "typeship",      "required": true,      "state": "pending",      "reason": "string",      "revision": "string",      "url": "http://example.com",      "observed_at": "2019-08-24T14:15:22Z"    }  ],  "pull_request_url": "http://example.com",  "head_revision": "string",  "request_id": "req_3k8m1v6q9p2d7h4c"}