You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 5.1 version.
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"
Please enable JavaScript to view the comments powered by Disqus.