[POST] .../v1/docsetprice/lock
Locks document setting prices for editing. Use this method before editing a price setting document or its SetPriceOperation rows so concurrent users cannot modify the same document. The request body must contain a non-empty ids array of positive document ids and the response returns row_affected for documents whose lock state changed. The current controller path validates the body and delegates to the document lock service without a separate controller-level RBAC permission check; unavailable tariff, invalid ids, existing locks, storage failures or lock-service errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ids | Array of Int64 | Required | Price setting document IDs. The array must contain at least one positive ID. |
Request Example
{
"ids": [
6101
]
}
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": 1
}
}