| Method | PUT /_config/section/key | |
| Request | Value structure | |
| Response | Previous value | |
| Admin Privileges Required | no | |
| Return Codes | ||
| 200 | Configuration option updated successfully | |
| 500 | Error setting configuration | |
Updates a configuration value. The new value should be supplied in the request body in the corresponding JSON format. For example, if you are setting a string value, you must supply a valid JSON string.
For example, to set the function used to generate UUIDs by the
GET /_uuids API call to use the
utc_random generator:
PUT http://couchdb:5984/_config/uuids/algorithm Content-Type: application/json "utc_random"
The return value will be empty, with the response code indicating the success or failure of the configuration setting.