Contract
- shape
- entity
- authority
- act
- evidence
- none
- subscription
- false
- permission
- any one of: org.member (carried by the caller's role template in the org `org_id`); a deactivated caller is refused first
- idempotency
- natural
- emits
- none
- MCP tool
- delete_view
- decision_set
- approve, reject
- REST
- POST https://api.containertradehq.com/v1/cap/delete_view
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 view is in. |
| view_id | text | required | 1 to 64 characters The view to delete. |
Response
view_id· string · The view deleted.org_id· string · The org it was in.title· string · What it was called.deleted_by· string · Who deleted it.
Full JSON Schema
{
"type": "object",
"properties": {
"view_id": {
"type": "string",
"description": "The view deleted.",
"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 was in.",
"x-data-class": "operational"
},
"title": {
"type": "string",
"description": "What it was called.",
"x-data-class": "operational"
},
"deleted_by": {
"type": "string",
"minLength": 1,
"maxLength": 20,
"pattern": "^[A-Za-z0-9_-]{1,20}$",
"format": "tradehq-user-id",
"description": "Who deleted it.",
"x-data-class": "operational"
}
},
"required": [
"view_id",
"org_id",
"title",
"deleted_by"
],
"additionalProperties": false
} Refusals
unknown_view· 422 · the org has no view by that id that the caller may readview_read_only· 422 · a system view, or a view the caller may read and not change: another member's, shared org-read
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
PushN
OneBoxN
OutboundN
- MCP: approval required
- Voice: degraded: confirmation
- Push: emits nothing
- OneBox: no document originates a saved view
- Outbound: crosses to no counterparty
Events
None emitted.
Related
get_view, get_view_default, pin_view, save_view, set_my_view_default, set_org_view_default, share_view