Team Members
Gets the list of all members that belong to the specified team
Unique ID of the team
team123-def6-7890-abcd-ef1234567890
Page number for pagination
1
Example: 1
Number of items per page
20
Example: 20
List of team members retrieved successfully
Internal server error
GET /memberships/teams/{teamId}/members HTTP/1.1
Host: api.example.com
Accept: */*
{
"data": [
{
"id": "member123-def6-7890-abcd-ef1234567890",
"userId": "456e7890-e89b-12d3-a456-426614174001",
"teamId": "team123-def6-7890-abcd-ef1234567890",
"user": {
"id": "456e7890-e89b-12d3-a456-426614174001",
"email": "john.doe@example.com",
"firstName": "John",
"lastName": "Doe",
"avatar": "https://example.com/avatars/john.jpg"
},
"role": "member",
"joinedAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-20T14:45:00Z",
"metadata": {
"position": "Frontend Developer",
"level": "Senior"
}
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 1,
"totalPages": 1,
"hasNext": false,
"hasPrev": false
}
}
Adds an existing organization user to the specified team
Unique ID of the team
team123-def6-7890-abcd-ef1234567890
ID of the existing organization user to add to the team
456e7890-e89b-12d3-a456-426614174001
Role of the user in the team
member
Example: member
Possible values: Member successfully added to team
Internal server error
POST /memberships/teams/{teamId}/members HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 127
{
"userId": "456e7890-e89b-12d3-a456-426614174001",
"role": "member",
"metadata": {
"position": "Frontend Developer",
"level": "Senior"
}
}
{
"id": "member123-def6-7890-abcd-ef1234567890",
"userId": "456e7890-e89b-12d3-a456-426614174001",
"teamId": "team123-def6-7890-abcd-ef1234567890",
"user": {
"id": "456e7890-e89b-12d3-a456-426614174001",
"email": "john.doe@example.com",
"firstName": "John",
"lastName": "Doe",
"avatar": "https://example.com/avatars/john.jpg"
},
"role": "member",
"joinedAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z",
"metadata": {
"position": "Frontend Developer",
"level": "Senior"
}
}
Gets the information of a specific team member
Unique ID of the team
team123-def6-7890-abcd-ef1234567890
Unique ID of the team member
member123-def6-7890-abcd-ef1234567890
Team member information retrieved successfully
Internal server error
GET /memberships/teams/{teamId}/members/{memberId} HTTP/1.1
Host: api.example.com
Accept: */*
{
"id": "member123-def6-7890-abcd-ef1234567890",
"userId": "456e7890-e89b-12d3-a456-426614174001",
"teamId": "team123-def6-7890-abcd-ef1234567890",
"user": {
"id": "456e7890-e89b-12d3-a456-426614174001",
"email": "john.doe@example.com",
"firstName": "John",
"lastName": "Doe",
"avatar": "https://example.com/avatars/john.jpg"
},
"role": "member",
"joinedAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-20T14:45:00Z",
"metadata": {
"position": "Frontend Developer",
"level": "Senior"
}
}
Updates the role and information of a team member
Unique ID of the team
team123-def6-7890-abcd-ef1234567890
Unique ID of the team member
member123-def6-7890-abcd-ef1234567890
New role for the team member
lead
Possible values: Team member updated successfully
Internal server error
PUT /memberships/teams/{teamId}/members/{memberId} HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 131
{
"role": "lead",
"metadata": {
"position": "Tech Lead",
"level": "Senior",
"responsibilities": "Team coordination and technical decisions"
}
}
{
"id": "member123-def6-7890-abcd-ef1234567890",
"userId": "456e7890-e89b-12d3-a456-426614174001",
"teamId": "team123-def6-7890-abcd-ef1234567890",
"user": {
"id": "456e7890-e89b-12d3-a456-426614174001",
"email": "john.doe@example.com",
"firstName": "John",
"lastName": "Doe",
"avatar": "https://example.com/avatars/john.jpg"
},
"role": "lead",
"joinedAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-22T16:30:00Z",
"metadata": {
"position": "Tech Lead",
"level": "Senior",
"responsibilities": "Team coordination and technical decisions"
}
}
Removes a member from the specified team
Unique ID of the team
team123-def6-7890-abcd-ef1234567890
Unique ID of the team member to remove
member123-def6-7890-abcd-ef1234567890
Member successfully removed from team
Internal server error
DELETE /memberships/teams/{teamId}/members/{memberId} HTTP/1.1
Host: api.example.com
Accept: */*
{
"success": true,
"message": "Member successfully removed from team"
}