Returns the document blob.
GET/api/download/:docId/:propertyXPathAndFilename
Streams the blob with its own content type and sends ETag, Last-Modified (epoch milliseconds), Content-Disposition, Accept-Ranges: bytes and Content-Length; a Want-Digest: sha-256 request header adds a Digest header. Send Accept: */* (or application/octet-stream); a JSON Accept is answered with 406. Errors depend on Accept: with */* a missing document returns a 404 JSON body, with application/octet-stream the same error is returned as 500 with an empty body.
Request
Responses
- 200
- 206
- 304
- 401
- 403
- 404
- 406
- 500
Returns the document blob.
Partial content, returned for a Range request (for example Range: bytes=0-99).
The blob matches the If-None-Match or If-Modified-Since condition, so no body is returned. Last-Modified is sent when available; ETag is sent when the response is selected by If-None-Match.
Not Authorized
Not Allowed
Document not found (with Accept: */*).
No representation matches the Accept header. This API carries its version in the media type, so asking for a version it no longer serves — for example application/vnd.hxcs.v0+json — is answered here.
Returned with an empty body instead of the 404 when the request sends Accept: application/octet-stream.