Loading TOC...

PUT /manage/v2/meters/labels/{id|name}


This resource address updates an existing label and returns the ID of the updated label.

URL Parameters
format The format of the posted data. Can be either json (default) or xml. This value overrides the Accept header if both are present.
Request Headers
Accept The expected MIME type of the response. If the format parameter is present, it takes precedence over the Accept header.
Content-type The MIME type of the data in the request body, either application/xml or application/json.
Response Headers
Content-type The MIME type of the data in the response body. Depending upon the value of the format parameter or Accept header, either application/xml or application/json.


Upon success, MarkLogic Server returns status code 200 (OK).

Required Privileges

This operation requires the manage-admin role, or the following privilege:


Usage Notes

The structure of the data in the request body is as follows:



cat UpdateLabel.xml
  <label xmlns="http://marklogic.com/manage/meters/label">
     <name>update label</name>  
     <text>label text</text>
     <meta><info>more information</info></meta>

curl -X PUT --digest -u admin:password \
     -H "Content-type: application/xml" -d @UpdateLabel.xml \

==> Updates the 3108808182876923314 label on MarkLogic Server.

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.


The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.