チームにメンバーを追加する
POST
https://deploygate.com/api/organizations/{ORGANIZATION_NAME}/teams/{TEAM_NAME}/users
チームのメンバーにユーザーを追加します。
Path Params
Name | Type | Required | Description |
---|---|---|---|
ORGANIZATION_NAME | string | true | グループ名 |
TEAM_NAME | string | true | チーム名 |
Body
Name | Type | Required | Description |
---|---|---|---|
user | string | true | ユーザー名 |
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})"
}