/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
Body · 2
slugstringRequiredBranch slug the lock is currently attached to.
lockIdnumberRequiredExternal TTLock identifier of the lock to detach.
Request
POST /bff/branch/detach-lock
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.