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

エンタープライズのグループからメンバーを削除する

DELETE https://deploygate.com/api/enterprises/{ENTERPRISE_NAME}/organizations/{ORGANIZATION_NAME}/users/{USERNAME}

エンタープライズ内のそのグループに所属しているユーザーをグループから削除します。エンタープライズからは削除されません。


Path Params

NameTypeRequiredDescription
ENTERPRISE_NAMEstringtrueエンタープライズ名
ORGANIZATION_NAMEstringtrueグループ名
USERNAMEstringtrue削除する対象ユーザのユーザー名

Example

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

Result 200

{
"error": false,
"message": "${USERNAME} was removed from ${ORGANIZATION_NAME}(${ENTERPRISE_NAME})"
}