Organization Teams
Gets the list of all teams that belong to the specified organization
Unique ID of the organization
123e4567-e89b-12d3-a456-426614174000
Page number for pagination
1
Example: 1
Number of items per page
20
Example: 20
List of teams retrieved successfully
Internal server error
GET /memberships/orgs/{organisationId}/teams HTTP/1.1
Host: api.example.com
Accept: */*
{
"data": [
{
"id": "team123-def6-7890-abcd-ef1234567890",
"name": "Engineering Team",
"description": "Core development team",
"organisationId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-20T14:45:00Z",
"memberCount": 5,
"metadata": {
"department": "Engineering",
"budget": 50000
}
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 1,
"totalPages": 1,
"hasNext": false,
"hasPrev": false
}
}
Creates a new team in the specified organization
Unique ID of the organization
123e4567-e89b-12d3-a456-426614174000
Name of the team
Engineering Team
Description of the team
Core development team
Team created successfully
Internal server error
POST /memberships/orgs/{organisationId}/teams HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 120
{
"name": "Engineering Team",
"description": "Core development team",
"metadata": {
"department": "Engineering",
"budget": 50000
}
}
{
"id": "team123-def6-7890-abcd-ef1234567890",
"name": "Engineering Team",
"description": "Core development team",
"organisationId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z",
"memberCount": 0,
"metadata": {
"department": "Engineering",
"budget": 50000
}
}
Gets the information of a specific team in the organization
Unique ID of the organization
123e4567-e89b-12d3-a456-426614174000
Unique ID of the team
team123-def6-7890-abcd-ef1234567890
Team information retrieved successfully
Internal server error
GET /memberships/orgs/{organisationId}/teams/{teamId} HTTP/1.1
Host: api.example.com
Accept: */*
{
"id": "team123-def6-7890-abcd-ef1234567890",
"name": "Engineering Team",
"description": "Core development team",
"organisationId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-20T14:45:00Z",
"memberCount": 5,
"metadata": {
"department": "Engineering",
"budget": 50000
}
}
Updates the information of a specific team in the organization
Unique ID of the organization
123e4567-e89b-12d3-a456-426614174000
Unique ID of the team
team123-def6-7890-abcd-ef1234567890
New name for the team
Senior Engineering Team
New description for the team
Senior development team with expanded responsibilities
Team updated successfully
Internal server error
PUT /memberships/orgs/{organisationId}/teams/{teamId} HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 160
{
"name": "Senior Engineering Team",
"description": "Senior development team with expanded responsibilities",
"metadata": {
"department": "Engineering",
"budget": 75000
}
}
{
"id": "team123-def6-7890-abcd-ef1234567890",
"name": "Senior Engineering Team",
"description": "Senior development team with expanded responsibilities",
"organisationId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-22T16:30:00Z",
"memberCount": 5,
"metadata": {
"department": "Engineering",
"budget": 75000
}
}
Deletes a specific team from the organization
Unique ID of the organization
123e4567-e89b-12d3-a456-426614174000
Unique ID of the team to delete
team123-def6-7890-abcd-ef1234567890
Team deleted successfully
Internal server error
DELETE /memberships/orgs/{organisationId}/teams/{teamId} HTTP/1.1
Host: api.example.com
Accept: */*
{
"success": true,
"message": "Team successfully deleted"
}