The shard key determines the distribution of the collection’s documents among the cluster’s shards.

This is specified via the shardkey query parameter.


return documents with given shardkey


write document specifying the shardkey

$ http POST "{"skey":"B"} desc="just a document"

Documentation references

How to use the examples

The examples make use of the brilliant httpie CLI HTTP client and are ment to be used with RESTHeart stareted on the localhost without the authentication enabled.

Eventually pass username and password with the -a username:password option.