Skip to Content
Xeonr Developer Docs

Publish Pipeline

POST
/uplim.api.v1.PipelineAdminService/PublishPipeline

Publishes a pipeline: inlines sub-pipeline steps (one level only), resolves and freezes every step manifest from the steps registry, bumps the version and writes a PipelineSnapshot. Returns FailedPrecondition when the pipeline is archived or any publish check fails: step config against its schema, manifest kinds against the resource kind, BUILTIN steps, KV key registrations, required secrets, or a total time budget above the orphan reaper's max age (default 1800s).

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.

Authorization

AuthorizationBearer <token>

JWT access token obtained via OAuth2 flow or service account

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

id?string
Formatuuid
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.PipelineAdminService/PublishPipeline" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "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] publishedAt:2026-10-20T16:45:00Z resourceKind:PIPELINE_RESOURCE_KIND_UPLOAD status:PIPELINE_STATUS_PUBLISHED 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]",
  "snapshot": "map[createdAt:2026-10-20T16:45:00Z id:c71a5e93-2b8f-4d06-a4e1-9f3c6b2d8e17 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] publishedAt:2026-10-20T16:45:00Z resourceKind:PIPELINE_RESOURCE_KIND_UPLOAD status:PIPELINE_STATUS_PUBLISHED 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] pipelineId:3f8e2b17-6a4d-4c91-9e05-7b2d1a8c4f60 pipelineVersion:3 stepManifests:map[acme:[email protected]:map[bundleSha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 configSchemaJson:{\"type\":\"object\",\"properties\":{\"width\":{\"type\":\"integer\"}}} description:Extracts a poster frame from a video upload. inputs:[map[isBlob:true name:source required:true schemaJson:{\"type\":\"object\"}]] kind:PIPELINE_STEP_KIND_JS kinds:[PIPELINE_RESOURCE_KIND_UPLOAD] name:acme:video-thumbnail outputs:map[blobs:[map[maxSizeBytes:5242880 mimeHint:image/webp name:common:thumbnail_light required:true]] kv:[map[name:width required:false valueType:METADATA_VALUE_TYPE_STRING]]] requiredSecrets:[ACME_API_KEY] runtimeVersion:node:20.11 version:1.2.0]]]"
}