Teams

Add Team Member

This endpoint adds a new team member to the specified team.

POST/v2/teams/member
cURL
curl --request POST \
  --url https://api.upstash.com/v2/teams/member \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "team_id": "95849b27-40d0-4532-8695-d2028847f823",
    "member_email": "example@upstash.com",
    "member_role": "dev"
  }'
200Response
{
  "team_id": "3423cb72-e50d-43ec-a9c0-f0f359941223",
  "team_name": "test_team_name_2",
  "member_email": "example@upstash.com",
  "member_role": "dev",
  "copy_cc": true
}

Authorization

Authorizationheaderstringrequired

Bearer authentication header of the form Bearer <token>.

Body

team_idstringrequired

Id of the team to add the member to

member_emailstringrequired

Email of the new team member

member_roleenum<string>required

Role of the new team member

Available options:admindevfinance

Response

200 — Team member added successfully

team_idstring

ID of the team

team_namestring

Name of the team

member_emailstring

Email of the team member

member_roleenum<string>

Role of the team member

Available options:owneradmindevfinance
copy_ccboolean

Whether to copy existing credit card information to team member or not

Loading search…