Contact-Chapter Repository
API Contract
REST
/api/v1/contact-chapter-memberships
7 endpoints
GET
/api/v1/contact-chapter-memberships/api/v1/contact-chapter-memberships
List all contact-chapter membership records
Public
Response Example
{
"data": [
{
"membership_id": "mem-1101",
"contact_id": "contact-8821",
"chapter_id": "chapter-oslo",
"created_at": "2025-11-14T09:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 200
}
}
GET
/api/v1/contact-chapter-memberships/api/v1/contact-chapter-memberships/:id
Fetch a specific contact-chapter membership
Public
Response Example
{
"membership_id": "mem-1101",
"contact_id": "contact-8821",
"chapter_id": "chapter-oslo",
"created_at": "2025-11-14T09:00:00Z"
}
POST
/api/v1/contact-chapter-memberships/api/v1/contact-chapter-memberships
Insert a new contact-chapter membership
Public
Request Example
{
"contact_id": "contact-8821",
"chapter_id": "chapter-bergen"
}
Response Example
{
"membership_id": "mem-1201",
"contact_id": "contact-8821",
"chapter_id": "chapter-bergen",
"created_at": "2026-03-26T12:34:00Z"
}
PUT
/api/v1/contact-chapter-memberships/api/v1/contact-chapter-memberships/:id
Update membership record fields
Public
Request Example
{
"chapter_id": "chapter-bergen"
}
Response Example
{
"membership_id": "mem-1201",
"contact_id": "contact-8821",
"chapter_id": "chapter-bergen",
"updated_at": "2026-03-26T13:00:00Z"
}
DELETE
/api/v1/contact-chapter-memberships/api/v1/contact-chapter-memberships/:id
Delete a contact-chapter membership record
Public
Response Example
{
"deleted": true,
"membership_id": "mem-1201"
}
GET
/api/v1/contact-chapter-memberships/api/v1/contact-chapter-memberships/contact/:contactId/chapters
Fetch all chapters for a given contact
Public
Response Example
{
"data": [
{
"membership_id": "mem-1101",
"contact_id": "contact-8821",
"chapter_id": "chapter-oslo",
"created_at": "2025-11-14T09:00:00Z"
},
{
"membership_id": "mem-1099",
"contact_id": "contact-8821",
"chapter_id": "chapter-stavanger",
"created_at": "2025-12-01T08:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 2
}
}
GET
/api/v1/contact-chapter-memberships/api/v1/contact-chapter-memberships/chapter/:chapterId/contacts
Fetch all contacts for a given chapter
Public
Response Example
{
"data": [
{
"membership_id": "mem-1101",
"contact_id": "contact-8821",
"chapter_id": "chapter-oslo",
"created_at": "2025-11-14T09:00:00Z"
},
{
"membership_id": "mem-1102",
"contact_id": "contact-9005",
"chapter_id": "chapter-oslo",
"created_at": "2026-01-08T11:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 134
}
}