model.tar.gz) to a revision.
POST /revisions/:id/data/command (Command: upload)
Request Format
The model bytes travel in the request body, so the JSON command cannot. This endpoint reads a binary request: the file as the body, and the command as a header.X-Request-Body is named in the API’s Access-Control-Allow-Headers, so a browser client can send it.
Posting the command as a plain JSON body instead — Content-Type: application/json, no X-Request-Body —
parses, but delivers no bytes. Nothing is stored and the call answers 500.
Request Body
Serialized intoX-Request-Body, not into the body itself:
Response
The file bytes travel in this request, so no upload URL comes back — the model is already stored by the
time the command answers. Poll Get Operation with
operation_id
to follow the post-processing that unpacks it.

