Add Member to Project
POST https://deploygate.com/api/organizations/{PROJECT_NAME}/members
Add new users to the Project as members. If the user has not registered with DeployGate, an invitation will be sent.
Using username and email
If you invite users to the Project,specify username or email as a query parameter at least either one. If you use username, the users which username matches from all DeployGate users are added as members. If you use email, add existing DeployGate users which are registered with the specified email addresses as members or send invitations to the email addresses for unregistered users. Users who receive the invitation will be members of the invited Project automatically after they sign up for DeployGate.
Path Params
| Name | Type | Required | Description |
|---|---|---|---|
| PROJECT_NAME | string | true | Project Name |
Body
| Name | Type | Required | Description |
|---|---|---|---|
| username | string | false | DeployGate username |
| string | false | Email address registered with DeployGate, or the email address to which an invitation will be sent |
Example
curl \
-X POST \
--url "https://deploygate.com/api/organizations/${PROJECT_NAME}/members" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${API_TOKEN}" \
--form-string "email=${EMAIL}"
Result 200
{
"error": false,
"message": "${EMAIL} was invited to ${PROJECT_NAME}"
}
Result 400
{}