Contract
- shape
- entity
- authority
- act
- evidence
- none
- subscription
- false
- permission
- any one of: role.manage (carried by the caller's role template in the org `org_id`); a deactivated caller is refused first
- idempotency
- natural
- emits
- role.deleted
- MCP tool
- delete_role_template
- decision_set
- approve, reject
- REST
- POST https://api.containertradehq.com/v1/cap/delete_role_template
Through MCP this call returns an approval request first; see Approvals.
Idempotency: keyed by the contract's own inputs: the same inputs replay the first call's result
Inputs
| name | type | required | validation |
|---|---|---|---|
| org_id | org_id | required | tradehq-org-id; 1 to 20 characters The org the template belongs to. |
| role_id | text | required | 1 to 20 characters The org's own template to delete: a clone id (RT and twelve characters). |
Response
role_id· string · The template's id.org_id· string · The org it belonged to.deleted· boolean · True: the org has no template with this id.
Full JSON Schema
{
"type": "object",
"properties": {
"role_id": {
"type": "string",
"description": "The template's id.",
"x-data-class": "operational"
},
"org_id": {
"type": "string",
"minLength": 1,
"maxLength": 20,
"pattern": "^[A-Za-z0-9_-]{1,20}$",
"format": "tradehq-org-id",
"description": "The org it belonged to.",
"x-data-class": "operational"
},
"deleted": {
"type": "boolean",
"description": "True: the org has no template with this id.",
"x-data-class": "operational"
}
},
"required": [
"role_id",
"org_id",
"deleted"
],
"additionalProperties": false
} Refusals
not yet declared
The platform refusals apply to every call: version, authentication, authority, validation and rate limits, each in the same envelope.
Surfaces
DesktopF
MobileF
APIF
MCPF*
VoiceD2
PushF
OneBoxN
OutboundN
- MCP: approval required
- Voice: degraded: confirmation
- OneBox: no document originates a role
- Outbound: crosses to no counterparty
Events
role.deletedaudit_only