DocsAPI ReferenceBranch/bff/branch/detach-lock
postBranchAdmin BFF

/bff/branch/detach-lock

Sets iot__ttlock_lock.branch_id back to NULL. Rejects when the lock is attached to a different branch than slug — that protects against stale-UI races.

BranchpostBffBranchDetach-lock

Parameters

2 body

2 total
Body · 2
slugstringRequired

Branch slug the lock is currently attached to.

lockIdnumberRequired

External TTLock identifier of the lock to detach.

Request

POST /bff/branch/detach-lock

post
curl -X POST "https://api.bizkithub.com/bff/branch/detach-lock" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "slug": "example_slug",
  "lockId": 0
}'

Response

JSON payload

{
  "success": false,
  "lockId": 0,
  "branchSlug": "example_branchSlug"
}

All response codes

1 status code documented

Need an API key?

All BizKitHub API endpoints require authentication via API key.

Get API Key