[POST] .../v1/promoprogramsetting/edit
Edits promotion settings. Use this batch method to update existing loyalty promotion settings after retrieving their ids with PromoProgramSetting/Get. The request body is an array of one to 250 records; each row must contain id and a non-empty JSON value string. The method requires the promotion setting edit permission, loads the existing settings, validates the JSON value against the stored program type and key, checks related payment, item, group, setting and condition references, normalizes numeric fields where the persistent layer does so and returns row_affected. Business errors such as a missing or empty array body, batch-size violations, invalid ids, missing settings, invalid JSON, invalid numeric/reference values, denied access, disabled retail promotion tariff or persistence failures are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Promotion setting ID. |
| value | String | Optional | Setting value. |
Request Example
[
{
"id": 1,
"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
}
}