lift_account_delete_lock #
On this page
Generated automatically from the published contract sources.
A script calls this action over HTTPS at POST https://turnzero.ai/api/v1/lift_account_delete_lock, with a bearer credential and the action's payload as the JSON body. An MCP connection lists this action as the tool lift_account_delete_lock.
OAuth access tokens and minted tokens, including the turnzero command's computer token, are bearer credentials. The action determines which kinds, scopes and grants it accepts (Sign-in, sessions, and tokens).
Build metadata: Registered in this build. Registration describes the default dispatcher in this build. It does not guarantee that a caller has the required credential or grant, that a tool is listed for that connection, or that the required service is configured.
Contract description #
Request removal of an account deletion lock. Use your signed-in session or a token minted with destructive. Give the approver the browser link. The lock lifts after approval.
More about this action #
For your account, use a connection for that account. A credential with super_admin can pass subject_account to request a lift for another account. Without the grant, a call for another account refuses with grant_required.
The approval page identifies the account, indicates if it is an operator account, and lists its applications by label. It also shows the reason and set time. The account owner approves a lift for their account. For a lift requested by an operator on another account, the operator approves.
Use read_approval_status to check the outcome. Approval removes only the lock shown. If the lock changes or is removed before the approval check, the request is declined with outcome.error: description_changed. If it changes or is removed after that check and before the lift, the lift fails with not_locked. A later lock stays in place. If the account has no lock at request time, the call refuses with not_locked and creates no pending action.
The call returns HTTP 202 with pending_action and approval_url. The approver opens approval_url in a browser.
Access and action metadata #
{
"name": "lift_account_delete_lock",
"resource": "account",
"tier": "destructive",
"surface": "account",
"addresses": [
"tzcloud",
"tztools"
],
"clients": [
"bearer",
"browser_session"
],
"summary": "Request removal of an account deletion lock through browser approval.",
"annotations": {
"readOnlyHint": false,
"destructiveHint": true,
"openWorldHint": false
}
}
MCP catalog entry #
{
"name": "lift_account_delete_lock",
"title": "Lift account deletion lock",
"tier": "destructive",
"scenario": "CHI-L0-10",
"summary": "Request removal of an account deletion lock. Use your signed-in session or a token minted with `destructive`. Give the approver the browser link. The lock lifts after approval.",
"owners": [
"ACB-L0-110",
"MAPI-09"
]
}
request #
| JSON pointer | Description and constraints |
|---|---|
| "" (root) | Type: object |
| / |
Any string you choose. A repeat from the same account while that pending action is live returns it again, creating no second one. Omitted, every call creates a new one. Type: string |
| / |
The account whose deletion lock to remove. Omit this field for the calling account. A credential needs super_admin to specify another account. Without that grant the request refuses with grant_required.Type: string |
response #
| JSON pointer | Description and constraints |
|---|---|
| "" (root) | The 202 creation envelope: the pending action and its approval link. Read the terminal outcome on the pending record with read_approval_status. Type: object Required fields: ["contract_version","pending_action","approval_url"] |
| / |
Required value: 1 |
| / |
The short reference the platform recorded your call under: ten lowercase hexadecimal characters, the value in the call’s record row. Quote it when you report the call. Type: string Pattern: ^[0-9a-f]{10}$ |
| / |
$ref: #/shapes/pending_action |
| / |
Type: string |
| / |
Type: string |
Complete payload contract #
{
"request": {
"type": "object",
"properties": {
"request_id": {
"type": "string",
"description": "Any string you choose. A repeat from the same account while that pending action is live returns it again, creating no second one. Omitted, every call creates a new one."
},
"subject_account": {
"type": "string",
"description": "The account whose deletion lock to remove. Omit this field for the calling account. A credential needs `super_admin` to specify another account. Without that grant the request refuses with `grant_required`."
}
}
},
"response": {
"type": "object",
"description": "The 202 creation envelope: the pending action and its approval link. Read the terminal outcome on the pending record with read_approval_status (API-L0-07).",
"required": [
"contract_version",
"pending_action",
"approval_url"
],
"properties": {
"contract_version": {
"const": 1
},
"reference": {
"type": "string",
"pattern": "^[0-9a-f]{10}$",
"description": "The short reference the platform recorded your call under: ten lowercase hexadecimal characters, the value in the call’s record row. Quote it when you report the call."
},
"pending_action": {
"$ref": "#/shapes/pending_action"
},
"approval_url": {
"type": "string"
},
"detail": {
"type": "string"
}
}
}
}
Shared contracts #
- Refusals: every refusal, by surface, with its cause and its remedy
- schemas/wire_error.schema.json
- schemas/wire_errors.json
- schemas/action_payloads.json (includes shared shapes)
- management_api_contract.md