curl --request POST \
--url https://api.voice-agents.miraiminds.co/v1/admin/organization/archive \
--header 'Content-Type: application/json' \
--header 'x-private-key: <api-key>' \
--header 'x-public-key: <api-key>' \
--data '
{
"type": "organization",
"id": "507f1f77bcf86cd799439011"
}
'{
"status_code": 200,
"message": "Organization archived successfully.",
"data": null
}Archives an organization or workspace by ID. When archiving an organization, all associated workspaces, assistants and campaigns are also archived in a cascading manner. When archiving a workspace, all its associated assistants and campaigns are archived. Requires admin or organization_admin role.
curl --request POST \
--url https://api.voice-agents.miraiminds.co/v1/admin/organization/archive \
--header 'Content-Type: application/json' \
--header 'x-private-key: <api-key>' \
--header 'x-public-key: <api-key>' \
--data '
{
"type": "organization",
"id": "507f1f77bcf86cd799439011"
}
'{
"status_code": 200,
"message": "Organization archived successfully.",
"data": null
}The entity type to archive or unarchive. Use "organization" to target an organization (cascades to all workspaces, assistants, and campaigns). Use "workspace" to target a single workspace (cascades to its assistants and campaigns).
organization, workspace "organization"
The MongoDB ObjectId of the organization or workspace to archive/unarchive.
"507f1f77bcf86cd799439011"