Lock

[POST] .../v1/doctechmap/lock

Locks document tech map for editing. Use this method before editing a technological map document or its TechMapOperation rows so concurrent users cannot modify the same 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 Tech map document ID.

Request Example

{
  "id": 7301
}

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