[POST] .../v1/docproduction/lock
Locks production document for editing. Use this method before editing a production document or its ProductionOperation rows so concurrent users cannot modify the same production document. The request body must contain a positive document id and the response returns row_affected for the lock state change. Production must be enabled; the current controller path validates the body and delegates to the document lock service without a separate controller-level RBAC permission check. Missing body, invalid id, disabled production, unavailable tariff, existing locks, storage failures or lock-service errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Record ID. |
Request Example
{
"id": 7401
}
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
}
}