You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 5.1 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: SetKey

The PUT operation is used to store a JSON formatted object as a configuration item under the specified key.


curl \
	http://{serverUrl}/fs/{fileSystemName}/config?name={name}  \
	-X PUT \
	-d "{json-data}"


JSON formatted object
Query parameter Required Description
name Yes The name under which the configuration item will be stored


Status code Description
201 Created
Return Value Description
None The request does not return any message


Put a file under name /movies/intro.avi with AllowRead metadata:

curl \
	-X PUT http://localhost:8080/fs/NorthwindFS/config?name=descriptions/intro.avi \
    -d "{Author: 'Hibernathing Rhinos'}"
< HTTP/1.1 201 Created