Language
C# Java
Article For
3.5

Attachments: How to update an attachment metadata only?

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

Syntax

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

Request

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

Response

Status code Description
200 OK
Return Value Description
payload etag

Example

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"
"02000000-0000-0002-0000-000000000003"