Unlock

[POST] .../v1/docordertomovement/unlock

Unlocks transfer order document for editing. Use this method after finishing edits to release locks on one or more movement order documents. The request body must contain a non-empty ids array of positive movement order document ids and the response returns row_affected for documents whose lock state changed. The caller must have movement order unlock permission; missing body, invalid ids, unavailable tariff, denied access, 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 Movement order document IDs. The array must contain at least one positive ID.

Request Example

{
  "ids": [
    4401
  ]
}

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
  }
}