API referenceEndpoints

Approve run

Requires an authenticated tenant principal. Generated from the production route registered in `internal/features/sources/inbound/http.go`.

POST/v1/sources/{id}/versions/{version}/preparation-jobs/{job}/approve

Requires an authenticated tenant principal. Generated from the production route registered in internal/features/sources/inbound/http.go.

Authorization

bearerAuth
AuthorizationBearer <token>

Engine-issued API key or tenant-signed JWT.

In: header

Path Parameters

id*string
Formatuuid
version*string
job*string

Header Parameters

Idempotency-Key*string

Required, at most 200 bytes. Gated (SOURCE_PREPARATION_ENABLED). A replay with the same key, job, expected_source_revision and expected_active_version_id returns the version the approval claimed; the same key with any of them different is 409 {"error":{"type":"conflict","code":"idempotency_key_reuse","message":"this key was used for different input"}}, and approving an already approved job under another key is 409 source_preparation_job_final.

Lengthlength <= 200

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/v1/sources/497f6eca-6276-4993-bfeb-53cbbbba6f08/versions/string/preparation-jobs/string/approve" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{}'
{}