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

チームにメンバーを追加する

POST https://deploygate.com/api/organizations/{ORGANIZATION_NAME}/teams/{TEAM_NAME}/users

チームのメンバーにユーザーを追加します。


Path Params

NameTypeRequiredDescription
ORGANIZATION_NAMEstringtrueグループ名
TEAM_NAMEstringtrueチーム名

Body

NameTypeRequiredDescription
userstringtrueユーザー名

Example

curl \
-X POST \
--url "https://deploygate.com/api/organizations/${ORGANIZATION_NAME}/teams/${TEAM_NAME}/users" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${API_TOKEN}" \
--form-string "user=${USER_NAME}"

Result 201

{
"error": false,
"results": "invitee has been added to ${TEAM_NAME}(${ORGANIZATION_NAME})"
}