churchtools-api

ChurchTools API Patterns

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "churchtools-api" with this command: npx skills add bwl21/bwl-flyer-generator/bwl21-bwl-flyer-generator-churchtools-api

ChurchTools API Patterns

Client HTTP Methods

Use the correct method names - delete is NOT available:

churchtoolsClient.get() // GET requests churchtoolsClient.post() // POST requests
churchtoolsClient.put() // PUT requests churchtoolsClient.deleteApi() // DELETE requests - NOT .delete()! churchtoolsClient.patch() // PATCH requests

Parameter Structure

Pass parameters directly as the second argument, NOT nested in a "params" object:

// Correct churchtoolsClient.get('/api/endpoint', { param1: 'value1', param2: 'value2' })

// Wrong - will fail churchtoolsClient.get('/api/endpoint', { params: { param1: 'value1' } })

Tags API

The Tags API returns data directly as an array, not nested in a "data" property:

// Correct const response = await churchtoolsClient.get<Tag[]>('/tags/person') const tags = Array.isArray(response) ? response : []

// Wrong - response.data is undefined const tags = response.data

Supported tag domains: 'person' | 'song' | 'group' (NOT 'appointment' )

Tag updates require ALL fields:

const tagData = { name: tag.name, description: tag.description || '', // Required, use empty string color: tag.color || 'basic' // Required, use default color } await churchtoolsClient.put(/tags/${tagId}, tagData)

API Documentation

Check your ChurchTools instance OpenAPI spec at /system/runtime/swagger/openapi.json for correct endpoints, methods, and schemas.

Standard API Pattern

try { loading.value = true const response = await churchtoolsClient.get('/api/endpoint', { param1: 'value1', param2: 'value2' }) // Handle response } catch (err) { error.value = 'Error message' console.error('API Error:', err) } finally { loading.value = false }

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

vue-components

No summary provided by upstream source.

Repository SourceNeeds Review
General

git-conventions

No summary provided by upstream source.

Repository SourceNeeds Review
General

common-pitfalls

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

development-workflow

No summary provided by upstream source.

Repository SourceNeeds Review