Teams

Add a team member

Add a team member

post/teams/{team_id}/members

Request

  • Base URL: https://api.presscart.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.presscart.com/teams/{team_id}/members
  • Auth: HTTP bearer

Path parameters

team_idstring uuid required
Example:982f0fc4-78f3-472a-808f-5a1870ca0df0

Request body

team_idstring uuid required
user_idstring uuid required
role'OWNER' | 'ADMIN' | 'MEMBER' required

Example request

{
  "team_id": "648a7c9a-0ca6-49d6-90ac-0096d43b9714",
  "user_id": "8322419c-c182-45ef-a3b9-f294719f3b3a",
  "role": "MEMBER"
}

Response

Team member added successfully

idstring uuid required
user_idstring uuid required
team_idstring uuid required
role'OWNER' | 'ADMIN' | 'MEMBER' required
first_namestring
last_namestring
emailstring email

Example response

{
  "user_id": "8322419c-c182-45ef-a3b9-f294719f3b3a",
  "team_id": "648a7c9a-0ca6-49d6-90ac-0096d43b9714",
  "role": "MEMBER",
  "first_name": "Bernardo",
  "last_name": "Watsica",
  "email": "Tatum_Grady@gmail.com"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.