跳至主要内容

Upload a file chunk

PATCH 

/api/v1/orgs/{orgId}/ai-models/{modelId}/editions/{edition}/uploads/{uploadId}

Appends a chunk of file data to the upload — step 3 of the resumable upload flow, the actual byte-transfer step.

• The request body is the raw bytes with Content-Type: application/offset+octet-stream, starting at the supplied Upload-Offset.

• Returns 204 with the new Upload-Offset on success, 409 if the supplied Upload-Offset does not match the server state, or 404 if the upload resource is not found.

Request

Responses

Chunk stored.

Response Headers
    Upload-Offset

    New offset after this chunk.