Contract
- shape
- entity
- authority
- act
- evidence
- none
- subscription
- false
- permission
- any one of: staff.provision (the staff role staff_provision held in the Internal org, tradehq_role.staff_role); a deactivated caller is refused first
- idempotency
- natural
- emits
- org.renamed
- MCP tool
- rename_org
- decision_set
- approve, reject, escalate
- REST
- POST https://api.containertradehq.com/v1/cap/rename_org
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. |
| name | name | required | 1 to 120 characters The org's new name: the legal entity's, as customers know it. |
Response
org_id· string · The org.name· string · The org's name now.previous· string · The name it had before the call; the same as name when nothing changed.
Full JSON Schema
{
"type": "object",
"properties": {
"org_id": {
"type": "string",
"minLength": 1,
"maxLength": 20,
"pattern": "^[A-Za-z0-9_-]{1,20}$",
"format": "tradehq-org-id",
"description": "The org.",
"x-data-class": "operational"
},
"name": {
"type": "string",
"description": "The org's name now.",
"x-data-class": "operational"
},
"previous": {
"type": "string",
"description": "The name it had before the call; the same as name when nothing changed.",
"x-data-class": "operational"
}
},
"required": [
"org_id",
"name",
"previous"
],
"additionalProperties": false
} Refusals
org_is_twin· 422 · a test twin is named after its live org; rename the live orgorg_is_system· 422 · a system org's name is declared in db/tradehq/orgs.json, and every tradehq apply puts it backorg_has_no_type· 422 · the org has no type row: a ported org nothing has typed yetorg_purged· 422 · the org is purged; only its tombstone is left
The platform refusals apply to every call: version, authentication, authority, validation and rate limits, each in the same envelope.
Surfaces
- MCP: approval required
- Voice: degraded: confirmation
- OneBox: no document originates an org's name
- Outbound: crosses to no counterparty
Events
org.renamedaudit_only
Related
create_access_review, create_sso_connection, invite_user, update_sso_connection