v1

latestOpenAPI 3.0.0Elastic License 2.02026-07-1791851.7 KB

Upload a section of file data

Upload portions of the intended file in a piecewise fashion. This route is idempotent in that any successive calls will overwrite previous ones for the same URL parameters. Chunks may be uploaded in any order, and may be uploaded in parallel. The body is the raw contents of the file at the given position matching the chunk number. The body must be the exact chunk size returned from the upload initiation response. All chunks must be this size except for the final one, which is naturally the file remainder.

put/api/fleet/uploads/{id}/{chunkNum}

Path parameters

idstring required
Example:ecb30383-6dd1-4b1d-bed0-2386b4e5df51

The upload_id as returned in the Upload initiation response

chunkNuminteger required
Example:3

the positional index of the chunk within the file. The first chunk is 0, the next 1, etc.

Headers

X-Chunk-SHA2string required
Example:0c4a81b85a6b7ff00bde6c32e1e8be33b4b793b3b7b5cb03db93f77f7c9374d1

the SHA256 hash of the body contents for this request

X-Request-Idstring

The request tracking ID for APM.

Elastic-Api-Versionstring

The API version to use, format should be "YYYY-MM-DD"

Response

Successful chunk upload