メインコンテンツまでスキップ

グループを削除する

こちらは旧グループプランの内容です。

Flexible/Enterpriseプランをご利用の場合はこちらのページをご覧ください。

DELETE https://deploygate.com/api/organizations/{ORGANIZATION_NAME}

グループを削除します。


注意点
  • グループを削除すると、グループ内に存在するすべてのチームとアプリケーションも削除されます
  • Startup, Business, Large Business プランをご契約状態のグループは削除できません。事前にクレジットカード、PayPal ないし請求書払いをご解約いただく必要があります。
  • グループのAPIキーではご利用いただけません。グループのオーナーであるユーザーのAPIキーをご利用ください。

Path Params​

NameTypeRequiredDescription
ORGANIZATION_NAMEstringtrueグループ名

Example​

curl \
-X DELETE \
--url "https://deploygate.com/api/organizations/${ORGANIZATION_NAME}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${API_TOKEN}"

Result 200​

{
"error": false,
"results": {
"message": "The organization was removed successfully"
}
}

Result 403 - グループのAPIキーでアクセスした場合​

{
"invalid_params": null,
"message": "Only User API keys are allowed",
"error": true,
"because": "Only User API keys are allowed",
"error_type": "non_user_api_key"
}

Result 403 - オーナーではないユーザーのAPIキーでアクセスした場合​

{
"invalid_params": null,
"message": "this actor does not have permission to perform this action.",
"error": true,
"because": "this actor does not have permission to perform this action.",
"error_type": "forbidden_action"
}

Result 404​

{
"invalid_params": null,
"message": "Organization not found",
"error": true,
"because": "Organization not found",
"error_type": "common_not_found"
}