EditValues

[POST] .../v1/applicationsetting/editvalues

Edits application setting values for the current user. Save one or more application setting values for the current request user after a settings form or client preference workflow changes them. The request body is an array; each item must provide a non-empty value and either the setting id or a valid app_id plus key pair where key is unique in the batch and no longer than 200 characters. The method saves the current user's setting values and returns row_affected with the number of inserted or updated user setting rows. Errors such as missing body, empty array, invalid or duplicate ids, missing app_id or key when id is omitted, unknown setting, duplicate setting definitions, missing current user, storage errors are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
app_id Int32 Optional Application ID. Used only if id is not provided.
key String Optional Setting key.
value String Required Setting value.

Request Example

[
  {
    "app_id": 1,
    "key": "string",
    "value": "string"
  }
]

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Update Update operation result.

Response Example

{
  "ok": true,
  "result": {
    "ids": [
      null
    ],
    "row_affected": 1
  }
}