[POST] .../v1/sysconfig/edit
Edits settings. Use this batch method to edit one or more system configuration values after reading the editable keys through SysConfig/Get. The request body is a JSON array of SysConfigEdit records; the method validates that the array is not empty, every item is present, key and value are provided, keys are unique inside the batch, checks system configuration edit permission 125, writes the changes and returns row_affected. The request body is required, key must be no more than 150 characters, value must be no more than 255 characters and each key can appear only once per request. Missing body, empty array, null items, missing key or value, duplicate keys, denied permission, unknown keys and persistent errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| key | String | Required | Setting key. |
| value | String | Required | Setting key value. |
Request Example
[
{
"key": "default_language",
"value": "eng"
},
{
"key": "show_hints",
"value": "true"
}
]
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"row_affected": 2,
"ids": []
}
}