Skip to main content
Put one file into a draft revision of an app blob, replacing the file at that path if there is one. blobhub app push calls it for each file that changed.

POST /revisions/:id/data/command (Command: put_file)

This is a binary command: the file bytes are the application/octet-stream request body, and the JSON command below is serialized onto a single line into the X-Request-Body header instead of the body.
A file is at most 4 MiB (blobhub.package.app.file_bytes, fixed) and a revision holds at most 500 files (blobhub.package.app.files_per_revision, fixed). An ONNX model above 4 MiB cannot ride in an app.

Request Body

Serialized into X-Request-Body, not into the body itself:

Response

Errors

Example