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

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
team_id
string
required

Id of the team to add the member to

Example:

"95849b27-40d0-4532-8695-d2028847f823"

member_email
string
required

Email of the new team member

Example:

"example@upstash.com"

member_role
enum<string>
required

Role of the new team member

Available options:
admin,
dev,
finance
Example:

"dev"

Response

200 - application/json

Team member added successfully

team_id
string

ID of the team

Example:

"3423cb72-e50d-43ec-a9c0-f0f359941223"

team_name
string

Name of the team

Example:

"test_team_name_2"

member_email
string

Email of the team member

Example:

"example@upstash.com"

member_role
enum<string>

Role of the team member

Available options:
owner,
admin,
dev,
finance
Example:

"dev"

copy_cc
boolean

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

Example:

true