Upsert Pipeline
Creates or updates a pipeline keyed by id, or by (integration, content_type_urn, resource_kind) when id is empty. The integration is taken from integration_id (UUID or slug) or else from the URN's slug prefix. On update, content_type_urn and resource_kind are immutable (InvalidArgument), the policy is replaced, the status drops back to DRAFT, and the step list is replaced atomically in request order. InvalidArgument when pipeline is missing.
Access: authenticated caller who owns the integration's OAuth client (and its application, when the client belongs to one), or any caller holding the upl:admin scope. System integrations such as Default require upl:admin. Missing integrations return NotFound; other callers get PermissionDenied.
JWT access token obtained via OAuth2 flow or service account
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
The pipeline to write. id may be empty for create. integration_id,
content_type_urn, and resource_kind together identify the row;
those three are immutable post-create (changing them = new pipeline).
version, status, created_at, updated_at, published_at are
server-controlled and ignored on writes.
steps is the full ordered list — replaces any prior steps atomically.
Response Body
application/json
application/json
curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.PipelineAdminService/UpsertPipeline" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{ "pipeline": "map[contentTypeUrn:acme:video integrationId:5d2c8a41-7e3b-4f96-b0a8-1c9e6f3d2a75 policy:map[maxRetriesPerStep:2 pipelineTimeoutSec:900 stepTimeoutSec:300] resourceKind:PIPELINE_RESOURCE_KIND_UPLOAD steps:[map[kind:PIPELINE_STEP_KIND_PROBE probe:map[outputs:[map[kv:map[expectedValueType:METADATA_VALUE_TYPE_STRING key:common:duration_sec] required:true slot:duration_sec]] sourceRef:${{ resource }}] stepId:probe] map[ffmpeg:map[configJson:{\"frame_at_percent\":10} mode:thumbnail outputs:[map[blob:map[maxSizeBytes:5242880 mimeHint:image/webp name:common:thumbnail_light] required:true slot:image]] sourceRef:${{ resource }}] kind:PIPELINE_STEP_KIND_FFMPEG stepId:thumbnail]]]" }'{
"pipeline": "map[contentTypeUrn:acme:video createdAt:2026-10-01T12:00:00Z id:3f8e2b17-6a4d-4c91-9e05-7b2d1a8c4f60 integrationId:5d2c8a41-7e3b-4f96-b0a8-1c9e6f3d2a75 policy:map[maxRetriesPerStep:2 pipelineTimeoutSec:900 stepTimeoutSec:300] resourceKind:PIPELINE_RESOURCE_KIND_UPLOAD status:PIPELINE_STATUS_DRAFT steps:[map[kind:PIPELINE_STEP_KIND_PROBE probe:map[outputs:[map[kv:map[expectedValueType:METADATA_VALUE_TYPE_STRING key:common:duration_sec] required:true slot:duration_sec]] sourceRef:${{ resource }}] stepId:probe] map[ffmpeg:map[configJson:{\"frame_at_percent\":10} mode:thumbnail outputs:[map[blob:map[maxSizeBytes:5242880 mimeHint:image/webp name:common:thumbnail_light] required:true slot:image]] sourceRef:${{ resource }}] kind:PIPELINE_STEP_KIND_FFMPEG stepId:thumbnail]] updatedAt:2026-10-20T16:45:00Z version:3]"
}