删除一个指定机构。MongoDB Cloud 对该资源施加了以下限制:
- 无法删除具有活动项目的组织。
- 在删除组织之前,必须先删除组织中的所有项目。
角色要求
- 组织所有者
路径参数
-
唯一的 24-十六进制数字 string,用于标识包含项目的组织。使用
/orgs终结点检索经过身份验证的用户访问权限检索的所有组织。格式应符合以下模式:
^([a-f0-9]{24})$。
DELETE / API/ Atlas/v1.0/orgs/{orgId}
curl \
--request DELETE 'https://cloud.mongodb.com/api/atlas/v1.0/orgs/4888442a3354817a7320eb61' \
--header "Authorization: Bearer $ACCESS_TOKEN"
响应示例 (400)
{
"detail": "(This is just an example, the exception may not be related to this endpoint) No provider AWS exists.",
"error": 400,
"errorCode": "VALIDATION_ERROR",
"reason": "Bad Request"
}
响应示例 (401)
{
"detail": "(This is just an example, the exception may not be related to this endpoint)",
"error": 401,
"errorCode": "NOT_ORG_GROUP_CREATOR",
"reason": "Unauthorized"
}
响应示例 (402)
{
"detail": "(This is just an example, the exception may not be related to this endpoint)",
"error": 402,
"errorCode": "NO_PAYMENT_INFORMATION_FOUND",
"reason": "Payment Required"
}
响应示例 (403)
{
"detail": "(This is just an example, the exception may not be related to this endpoint)",
"error": 403,
"errorCode": "CANNOT_CHANGE_GROUP_NAME",
"reason": "Forbidden"
}
响应示例 (404)
{
"detail": "(This is just an example, the exception may not be related to this endpoint) Cannot find resource AWS",
"error": 404,
"errorCode": "RESOURCE_NOT_FOUND",
"reason": "Not Found"
}
响应示例 (409)
{
"detail": "(This is just an example, the exception may not be related to this endpoint) Cannot delete organization link while there is active migration in following project ids: 60c4fd418ebe251047c50554",
"error": 409,
"errorCode": "CANNOT_DELETE_ORG_ACTIVE_LIVE_MIGRATION_ATLAS_ORG_LINK",
"reason": "Conflict"
}
响应示例 (500)
{
"detail": "(This is just an example, the exception may not be related to this endpoint)",
"error": 500,
"errorCode": "UNEXPECTED_ERROR",
"reason": "Internal Server Error"
}