Skip to Content
Xeonr Developer Docs

Presign Upload Part

POST
/uplim.api.v1.InternalPipelineRunsService/PresignUploadPart

Presigns a 15-minute PUT for one part of an in-progress multipart upload. object_key must lie under this run/step's scratch prefix (PermissionDenied otherwise) and part_number must be 1-10000.

Access: internal only — step-scoped. Requires the per-step JWT in X-Upl-Step-Token (HS256 over PIPELINE_INTERNAL_TOKEN, unexpired) whose run_id/step_id claims match the request; Unauthenticated otherwise. The shared X-Upl-Internal-Token is accepted instead only while PIPELINE_ALLOW_LEGACY_STEP_TOKEN_FALLBACK is enabled.

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

runId?string
Formatuuid
stepId?string
Lengthlength <= 255
objectKey?string
Lengthlength <= 4096
uploadId?string
Lengthlength <= 2048
partNumber?integer

1-based S3 part number.

Range1 <= value <= 10000
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.InternalPipelineRunsService/PresignUploadPart" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "presignedPutUrl": "https://s3.eu-west-2.amazonaws.com/upl-im-storage/pipeline-runs/a4e9c2d7-1f5b-4b83-8c6e-0d7f3a9b5e21/thumbnail/acme:transcode_720p?partNumber=1&uploadId=2~Xb7kq9LrT3vN0pZcW4sYfH1mJ8eD6gA&X-Amz-Expires=900&X-Amz-Signature=5e7a...c013"
}