Browse API

Job configuration

Read, update, or guardedly delete one numbered Job.

GET/api/v0/projects/<key>/jobs/<job>

Read a Job

GET https://repopack.com/api/v0/projects/<key>/jobs/<job>
Authorization: Bearer <token>

<job> is a project-local number. With job.read, the response contains the public Job configuration plus trigger_changes and trigger_deliveries. The route returns 404 both when the caller cannot read the Job/project and when the number is absent; a missing number has JSON error: "job_not_found". Run records and artifacts have separate routes.

Update configuration

PATCH the same URL with a JSON object containing at least one of name, description, source, execution, execution_edit, build_arg, artifact_paths, or artifact_access (only "project"). job.write is required. For example, {"source":"trigger:master"} enables an automatic branch trigger where authorized; a plain master source is manual-only. {"build_arg":{"action":"add","name":"VERSION","default":null}} adds a required non-secret Containerfile argument; add, update, and remove are the allowed actions and a build-argument edit must be the only field in the PATCH. For artifact-only conversion, use {"execution_edit":{"artifact_only":true,"command":"none"}}; do not combine it with execution, build-argument or artifact-path changes. The result is the updated Job presentation. Invalid source, name, paths, execution or edit shape returns 400; name conflicts return a conflict response. An omitted field is left unchanged; do not send a read-only Job detail object as an update. Existing Run snapshots do not change.

Delete a Job

DELETE the same URL requires job.manage and human confirmation. Deletion refuses (409) while rolling channels bind the Job (job_rolling_channels_bound), any Release holds its Runs (job_runs_release_held), or a manual freeze protects Runs (job_runs_frozen); active cleanup can also block execution. Resolve the named blocker and obtain a fresh confirmation rather than blindly replaying the request. The confirmed result is {"ok":true}. A Job's number is never reused. See Run freeze and purge for distinct retention actions.