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

Attachments: How to update an attachment metadata only?

UpdateAttachmentMetadata is used to update an attachment metadata in a database.


curl \
	http://{serverName}/databases/{databaseName}/static/{key} \


Query parameter Required Description
key Yes key under which attachment is stored
Header Required Description
any header No metadata
If-None-Match No current attachment etag, used for concurrency checks


Status code Description
200 OK
Return Value Description
payload etag


curl -X POST "http://localhost:8080/databases/sample/static/sea.jpg" \
	--header "Description: Holidays"

< HTTP/1.1 200 OK
< ETag: "02000000-0000-0002-0000-000000000003"