Collective Teams
Gets the list of all teams that belong to the specified collective
Unique ID of the collective
collective123-def6-7890-abcd-ef1234567890Page number for pagination
1Example: 1Number of items per page
20Example: 20List of collective teams retrieved successfully
Internal server error
GET /memberships/collectives/{collectiveId}/teams HTTP/1.1
Host: api.example.com
Accept: */*
{
"data": [
{
"id": "team456-abc1-2345-6789-abcdef123456",
"name": "Riders Team",
"description": "Delivery riders coordination team",
"collectiveId": "collective123-def6-7890-abcd-ef1234567890",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-20T14:45:00Z",
"memberCount": 8,
"metadata": {
"region": "LATAM",
"vehicleType": "motorcycle"
}
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 1,
"totalPages": 1,
"hasNext": false,
"hasPrev": false
}
}Creates a new team within the specified collective
Unique ID of the collective
collective123-def6-7890-abcd-ef1234567890Name of the team
Engineering TeamDescription of the team
Core development teamCollective team created successfully
Internal server error
POST /memberships/collectives/{collectiveId}/teams HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 129
{
"name": "Riders Team",
"description": "Delivery riders coordination team",
"metadata": {
"region": "LATAM",
"vehicleType": "motorcycle"
}
}{
"id": "team456-abc1-2345-6789-abcdef123456",
"name": "Riders Team",
"description": "Delivery riders coordination team",
"collectiveId": "collective123-def6-7890-abcd-ef1234567890",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z",
"memberCount": 0,
"metadata": {
"region": "LATAM",
"vehicleType": "motorcycle"
}
}Gets the information of a specific team in the collective
Unique ID of the collective
collective123-def6-7890-abcd-ef1234567890Unique ID of the team
team456-abc1-2345-6789-abcdef123456Collective team information retrieved successfully
Internal server error
GET /memberships/collectives/{collectiveId}/teams/{teamId} HTTP/1.1
Host: api.example.com
Accept: */*
{
"id": "team456-abc1-2345-6789-abcdef123456",
"name": "Riders Team",
"description": "Delivery riders coordination team",
"collectiveId": "collective123-def6-7890-abcd-ef1234567890",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-20T14:45:00Z",
"memberCount": 8,
"metadata": {
"region": "LATAM",
"vehicleType": "motorcycle"
}
}Updates the information of a specific team in the collective
Unique ID of the collective
collective123-def6-7890-abcd-ef1234567890Unique ID of the team
team456-abc1-2345-6789-abcdef123456New name for the team
Senior Engineering TeamNew description for the team
Senior development team with expanded responsibilitiesCollective team updated successfully
Internal server error
PUT /memberships/collectives/{collectiveId}/teams/{teamId} HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 190
{
"name": "Senior Riders Team",
"description": "Advanced delivery riders coordination team with expanded coverage",
"metadata": {
"region": "LATAM",
"vehicleType": "motorcycle",
"coverage": "extended"
}
}{
"id": "team456-abc1-2345-6789-abcdef123456",
"name": "Senior Riders Team",
"description": "Advanced delivery riders coordination team with expanded coverage",
"collectiveId": "collective123-def6-7890-abcd-ef1234567890",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-22T16:30:00Z",
"memberCount": 8,
"metadata": {
"region": "LATAM",
"vehicleType": "motorcycle",
"coverage": "extended"
}
}Deletes a specific team from the collective
Unique ID of the collective
collective123-def6-7890-abcd-ef1234567890Unique ID of the team to delete
team456-abc1-2345-6789-abcdef123456Collective team deleted successfully
Internal server error
DELETE /memberships/collectives/{collectiveId}/teams/{teamId} HTTP/1.1
Host: api.example.com
Accept: */*
{
"success": true,
"message": "Team successfully deleted from collective"
}