curl --request POST \
--url https://api.voice-agents.miraiminds.co/v1/admin/organization/unarchive \
--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 unarchived successfully.",
"data": null
}Unarchives a previously archived organization or workspace by ID. When unarchiving an organization, all associated workspaces, assistants and campaigns are also unarchived in a cascading manner. When unarchiving a workspace, the parent organization must not be archived; if the parent organization is still archived, the request will fail with a 400 error. Requires admin or organization_admin role.
curl --request POST \
--url https://api.voice-agents.miraiminds.co/v1/admin/organization/unarchive \
--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 unarchived 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"