Teams
GET
Team members retrieved successfully
Access denied
GET /teams/members HTTP/1.1
Host:
Accept: */*
[
{
"id": 1,
"firstName": "John",
"lastName": "Doe",
"phone": "123-456-7890",
"role": "Member",
"isActive": true,
"invitationAccepted": true
}
]
The number of records to skip.
0
The maximum number of records to return.
10
The global search term to use for finding teams.
Team Name
Teams retrieved successfully
Internal server error
GET /teams/all HTTP/1.1
Host:
Accept: */*
[
{
"id": "team_id",
"name": "Team Name",
"usersLimit": 5,
"membersCount": 10,
"owner": {
"id": 1,
"firstName": "John",
"lastName": "Doe",
"email": "owner@example.com"
},
"subscription": "Basic",
"isImpersonationEnabled": true
}
]
POST
Team Name
Team created successfully
Team already exists
Internal server error
POST /teams HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"teamName": "Team Name"
}
{
"id": "team_id",
"name": "Team Name",
"usersLimit": 5
}
user@example.com
John
Doe
123-456-7890
Viewer
Possible values: team_id
Invitation created successfully
{"message":"Invitation email sent","description":"Wait for the invited person to finish their registration."}
Team is full
Access denied
Internal server error
POST /teams/invitation HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 122
{
"email": "user@example.com",
"firstName": "John",
"lastName": "Doe",
"phone": "123-456-7890",
"role": "Viewer",
"teamId": "team_id"
}
{
"message": "Invitation email sent",
"description": "Wait for the invited person to finish their registration."
}
PUT
Leaves a team by its ID. Sends an email to the new owner if provided. Also applies new owners subscription plan to this team.
The ID of the team to leave.
team_id
1
Left the team successfully
{"message":"Left the team successfully","description":"You have left the team successfully."}
Team not found
Internal server error
PUT /teams/leave-team/{id} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"newOwnerId": 1
}
{
"message": "Left the team successfully",
"description": "You have left the team successfully."
}
The ID of the team to accept the invitation for.
team_id
Invitation accepted successfully
{"message":"Invitation accepted successfully","description":"You have accepted the invitation successfully."}
Membership not found
Internal server error
PUT /teams/accept-invitation/{id} HTTP/1.1
Host:
Accept: */*
{
"message": "Invitation accepted successfully",
"description": "You have accepted the invitation successfully."
}
The ID of the team to decline the invitation for.
team_id
Invitation declined successfully
{"message":"Invitation declined successfully","description":"You have declined the invitation successfully."}
Membership not found
Internal server error
PUT /teams/decline-invitation/{id} HTTP/1.1
Host:
Accept: */*
{
"message": "Invitation declined successfully",
"description": "You have declined the invitation successfully."
}
DELETE
The ID of the user to cancel the invitation for.
1
1
Invitation cancelled successfully
{"message":"Invitation cancelled successfully","description":"The invitation has been cancelled successfully."}
User not found
Internal server error
DELETE /teams/invitation/{id} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"membershipId": 1
}
{
"message": "Invitation cancelled successfully",
"description": "The invitation has been cancelled successfully."
}
The ID of the team to delete.
team_id
Team deleted successfully
{"message":"Team deleted successfully","description":"The team has been deleted successfully."}
Team not found
Access denied
Internal server error
DELETE /teams/{id} HTTP/1.1
Host:
Accept: */*
{
"message": "Team deleted successfully",
"description": "The team has been deleted successfully."
}
Last updated