POST /revisions/:id/data/query (Command: download)
Request Format
The command travels as an ordinary JSON body, but two request headers are load-bearing:application/octet-stream is the only binary media type this API declares, and the gateway converts a binary
payload only for a request whose Accept names one.
Request Body
Response
The file itself, asapplication/octet-stream: this command answers with the bytes, not with a URL to fetch them
from. The JSON envelope travels in the X-Response-Body header instead of the body, which holds the bytes:
Access-Control-Expose-Headers names X-Response-Body, so a browser client can read it.
The bytes travel inside the API response, which is limited to 6 MB once base64-encoded. For an artifact larger than
4 MiB, use Multipart Download, which answers with presigned URLs for ranged
parts instead. Describe Model gives each artifact’s size.
Errors
Example
model.onnx; the JSON above is what -D - prints as the X-Response-Body header.
