Targets

Inspect preserved custom code for a Target Draft

GET
/targets/{target_id}/customizations

Returns preserved changes, conflicts, reused resolutions, and check results for the Draft. Includes the input and package identifiers needed to compare attempts. Does not include file contents.

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}$

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/targets/tgt_5m8q2v7k1p9d4h6c/customizations"
{  "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"}