Targets

Retrieve a Target's rolling Draft release

GET
/targets/{target_id}/draft

Returns Current's version, the proposed Draft version, readiness, and commit. Pass revision as expected_revision when updating the Draft to avoid changing a newer candidate.

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/draft"
{  "object": "target_draft",  "target_id": "tgt_5m8q2v7k1p9d4h6c",  "revision": 0,  "current_version": "string",  "version": "string",  "selection": {    "mode": "automatic"  },  "readiness": {},  "changes": {    "changelog": "string",    "breaking_count": 0,    "previous_version": "string"  },  "head_revision": "string",  "pull_request_url": "http://example.com",  "request_id": "req_3k8m1v6q9p2d7h4c"}