Teams

Send team invitation

Send an invitation to join a team. All team members can send invitations. Members can only invite as MEMBER role, while owners can invite as any role.

post/teams/{team_id}/invitations

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}/invitations
  • Auth: HTTP bearer

Path parameters

team_idstring required
Example:team-a-bb4478bd2e2e

Request body

emailstring email required
role'OWNER' | 'ADMIN' | 'MEMBER' required

Example request

{
  "email": "john.doe@example.com",
  "role": "MEMBER"
}

Response

Invitation sent successfully

idstring uuid required
emailstring email required
role'OWNER' | 'ADMIN' | 'MEMBER' required
team_idstring uuid required
invited_by_idstring uuid required

Example response

{
  "email": "john.doe@example.com",
  "role": "MEMBER",
  "team_id": "123e4567-e89b-12d3-a456-426614174000",
  "invited_by_id": "123e4567-e89b-12d3-a456-426614174001"
}

Changes

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