curl --request PATCH \
--url https://api.example.com/api/church/exitchurch/:id \
--header 'Content-Type: application/json' \
--data '
{
"userId": "<string>"
}
'{
"success": true,
"message": "<string>",
"data": {
"data._id": "<string>",
"data.name": "<string>",
"data.address": "<string>",
"data.supportcontact": {},
"data.pastor": {}
}
}Remove an authenticated user from a church’s membership
curl --request PATCH \
--url https://api.example.com/api/church/exitchurch/:id \
--header 'Content-Type: application/json' \
--data '
{
"userId": "<string>"
}
'{
"success": true,
"message": "<string>",
"data": {
"data._id": "<string>",
"data.name": "<string>",
"data.address": "<string>",
"data.supportcontact": {},
"data.pastor": {}
}
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SidneyEmeka/church_management_system/llms.txt
Use this file to discover all available pages before exploring further.
PATCH /api/church/exitchurch/:id
curl -X PATCH https://api.example.com/api/church/exitchurch/507f191e810c19729de860ea \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json" \
-d '{
"userId": "507f1f77bcf86cd799439011"
}'
{
"success": true,
"message": "You have successfully exited Grace Community Church",
"data": {
"_id": "507f191e810c19729de860ea",
"name": "Grace Community Church",
"address": "123 Main Street, Springfield, IL 62701",
"supportcontact": {
"phone": "+1-555-123-4567",
"email": "[email protected]",
"website": "https://gracechurch.org"
},
"pastor": {
"name": "John Smith"
}
}
}
{
"success": false,
"message": "Unable to exit church",
"data": "You are not a member of this church"
}
{
"success": false,
"message": "Unable to exit church",
"data": "Church with this Id does not exist"
}
{
"success": false,
"message": "Unable to exit church",
"data": "Error message details"
}
success: false with a 400 status code