Organization Collectives
Gets the list of all collectives that belong to the specified organization
Unique ID of the organization
123e4567-e89b-12d3-a456-426614174000Page number for pagination
1Example: 1Number of items per page
20Example: 20List of collectives retrieved successfully
Internal server error
GET /memberships/orgs/{organisationId}/collectives HTTP/1.1
Host: api.example.com
Accept: */*
{
"data": [
{
"id": "collective123-def6-7890-abcd-ef1234567890",
"name": "Kira Collective",
"description": "Logistics and delivery collective",
"organisationId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-20T14:45:00Z",
"memberCount": 25,
"teamCount": 3,
"status": "active",
"metadata": {
"region": "LATAM",
"industry": "Logistics",
"budget": 25000
}
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 1,
"totalPages": 1,
"hasNext": false,
"hasPrev": false
}
}Creates a new collective within the specified organization
Unique ID of the organization
123e4567-e89b-12d3-a456-426614174000Name of the collective
Kira CollectiveDescription of the collective
Logistics and delivery collectiveStatus of the collective
activeExample: activePossible values: Collective created successfully
Internal server error
POST /memberships/orgs/{organisationId}/collectives HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 162
{
"name": "Kira Collective",
"description": "Logistics and delivery collective",
"status": "active",
"metadata": {
"region": "LATAM",
"industry": "Logistics",
"budget": 25000
}
}{
"id": "collective123-def6-7890-abcd-ef1234567890",
"name": "Kira Collective",
"description": "Logistics and delivery collective",
"organisationId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z",
"memberCount": 0,
"teamCount": 0,
"status": "active",
"metadata": {
"region": "LATAM",
"industry": "Logistics",
"budget": 25000
}
}Gets the information of a specific collective in the organization
Unique ID of the organization
123e4567-e89b-12d3-a456-426614174000Unique ID of the collective
collective123-def6-7890-abcd-ef1234567890Collective information retrieved successfully
Internal server error
GET /memberships/orgs/{organisationId}/collectives/{collectiveId} HTTP/1.1
Host: api.example.com
Accept: */*
{
"id": "collective123-def6-7890-abcd-ef1234567890",
"name": "Kira Collective",
"description": "Logistics and delivery collective",
"organisationId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-20T14:45:00Z",
"memberCount": 25,
"teamCount": 3,
"status": "active",
"metadata": {
"region": "LATAM",
"industry": "Logistics",
"budget": 25000
}
}Updates the information of a specific collective in the organization
Unique ID of the organization
123e4567-e89b-12d3-a456-426614174000Unique ID of the collective
collective123-def6-7890-abcd-ef1234567890New name for the collective
Kira Logistics CollectiveNew description for the collective
Enhanced logistics and delivery collective with expanded servicesNew status for the collective
activePossible values: Collective updated successfully
Internal server error
PUT /memberships/orgs/{organisationId}/collectives/{collectiveId} HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 226
{
"name": "Kira Logistics Collective",
"description": "Enhanced logistics and delivery collective with expanded services",
"status": "active",
"metadata": {
"region": "LATAM",
"industry": "Logistics",
"budget": 35000,
"expansion": "Q2-2024"
}
}{
"id": "collective123-def6-7890-abcd-ef1234567890",
"name": "Kira Logistics Collective",
"description": "Enhanced logistics and delivery collective with expanded services",
"organisationId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-22T16:30:00Z",
"memberCount": 25,
"teamCount": 3,
"status": "active",
"metadata": {
"region": "LATAM",
"industry": "Logistics",
"budget": 35000,
"expansion": "Q2-2024"
}
}Deletes a specific collective from the organization
Unique ID of the organization
123e4567-e89b-12d3-a456-426614174000Unique ID of the collective to delete
collective123-def6-7890-abcd-ef1234567890Collective deleted successfully
Internal server error
DELETE /memberships/orgs/{organisationId}/collectives/{collectiveId} HTTP/1.1
Host: api.example.com
Accept: */*
{
"success": true,
"message": "Collective successfully deleted"
}