Xeonr Developer Docs

Set Upload Common Metadata KV

POST
/uplim.api.v1.InternalPipelineRunsService/SetUploadCommonMetadataKV

Pre-step write path the coordinator uses after virus scan and classification: upserts common:* KV entries on exactly one of an upload or a folder, bypassing step bindings. Entries without a value are skipped; any key outside common:* or a value with no variant set is rejected with InvalidArgument.

Access: internal only — the pipeline coordinator, authenticated by the shared X-Upl-Internal-Token header matching PIPELINE_INTERNAL_TOKEN (FailedPrecondition when unset, Unauthenticated on mismatch). No user authentication.

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

uploadId?string

Exactly one of upload_id / folder_id MUST be set. upload_id routes to UploadMetadataKV (the original path); folder_id routes to FolderMetadataKV (folder-bound pipelines).

Lengthlength <= 64
folderId?string
Lengthlength <= 64
entries?
Itemsitems <= 1000
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.InternalPipelineRunsService/SetUploadCommonMetadataKV" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{}
{
  "code": "not_found",
  "message": "string",
  "details": [
    {
      "type": "string",
      "value": "string",
      "debug": {}
    }
  ]
}