Organization Collectives
Gets the list of all collectives 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 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-426614174000
Name of the collective
Kira Collective
Description of the collective
Logistics and delivery collective
Status of the collective
active
Example: active
Possible 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-426614174000
Unique ID of the collective
collective123-def6-7890-abcd-ef1234567890
Collective 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-426614174000
Unique ID of the collective
collective123-def6-7890-abcd-ef1234567890
New name for the collective
Kira Logistics Collective
New description for the collective
Enhanced logistics and delivery collective with expanded services
New status for the collective
active
Possible 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-426614174000
Unique ID of the collective to delete
collective123-def6-7890-abcd-ef1234567890
Collective 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"
}