Read document header
Like GET, but only fetch the header fields and not the body. You can use this call to get the current revision of a document or check if the document was deleted.
Request
- The document declares no server URL.
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The name of the fabric.
The name of the collection.
The key of the document.
Headers
If the If-None-Match header is given, it must contain exactly one ETag. If the current document revision is not equal to the specified ETag, a HTTP 200 response is returned. If the current document revision is identical to the specified ETag, a HTTP 304 is returned.
If the If-Match header is given, it must contain exactly one ETag. The document is returned, if it has the same revision as the given ETag. Otherwise a HTTP 412 is returned.
Response
Successfully fetched headers.
Example response
{
"_id": "test/foo",
"_key": "foo",
"_rev": "_dPRuHxe--_",
"data": "data1"
}Changes
No recorded changes to this operation across all 1 revision of this API.