Unlock
[POST] .../v1/docinout/unlock
Releases edit locks on warehouse goods receipt or write-off documents. Unlock one or more warehouse goods receipt/write-off documents after an editing, posting, cancellation or deletion workflow finishes. The request requires the warehouse goods receipt/write-off document unlock permission and the stock receipt/expense tariff option; the body must contain a non-empty ids array with positive document IDs. The response reports how many document lock rows changed and callers can verify the lock state with DocInOut/Get for the current request user. Errors such as missing body, missing ids, invalid IDs, denied access, disabled tariff option, lock ownership conflicts, storage errors or unlock errors are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ids | Array of Int64 | Required | Required non-empty array of positive stock receipt/write-off document IDs. |
Request Example
{
"ids": [
42
]
}
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
}
}