[POST] .../v1/docproduction/unlock
Unlocks production document for editing. Use this method after editing a production document and its ProductionOperation rows to release the edit lock. The request body must contain a positive document id and the response returns row_affected for the unlock state change. Production must be enabled and the current request user must have production document unlock permission. Missing body, invalid id, disabled production, denied access, unavailable tariff, missing 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
}
}