Skip to main content
PUT
Finalize an Agent workspace upload

Authorizations

Authorization
string
header
required

Bearer JWT token or API Key (sk-*).

Path Parameters

agentId
string
required
storageUploadSessionId
string
required

Body

application/json
expectedPartCount
number

Expected contiguous multipart count (parts 1..N). Use this to fence distributed uploads against missing parts.

Required range: x >= 1
Example:

24

expectedPartNumbers
number[]

Expected explicit multipart numbers. Use for sparse distributed uploads; cannot be combined with expectedPartCount.

Maximum array length: 100000
Example:
metadata
object | null

Optional metadata replacement at finalize time. Values may use any JSON type. Maximum 16 KiB and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use.

Example:
computeStats
enum<string>

Optional post-finalize compute mode.

Available options:
none,
sync,
async
Example:

"none"

Response

200