Create a resumable upload
POST/api/v1/orgs/{orgId}/ai-models/{modelId}/editions/{edition}/uploads
Creates a new resumable upload session — step 2 of the resumable upload flow.
• Call Register New Edition first to obtain an uploadId, then send it (base64-encoded) in the Upload-Metadata header.
• Service will validate the uploadId, and that Upload-Length matches the registered file size.
• On success the Location header points to the upload resource URL used for the subsequent PATCH requests.
• Returns 400 if the backend pre-create hook rejects the request (missing / expired upload, size mismatch).
Request
Responses
- 201
- 400
- 401
Upload created. The Location header contains the upload resource URL.
Response Headers
URL of the created upload resource.
TUS protocol version.
Validation failed (rejected by the backend pre-create hook): missing/expired upload, size mismatch, etc.
Missing or invalid Bearer token.