Delete a team and everything under it
DELETE/ministries/teams/:teamId
Removes the team's positions with their qualifications and staffing requirements, its schedules and occurrences, every assignment on them (service history included) and its team-leader grants, in one transaction. Deactivate the team instead to keep its history. Returns 409 when this is the ministry's ONLY team - a ministry always has at least one, so the answer is to rename it. For a team linked to a class, classEvents (D28) says what happens to the events this ministry owns whose Linked Group is that class: kept, the class removed from them, or deleted through core's event delete in the same transaction.
Request​
Responses​
- 200
- 400
- 401
- 403
- 404
- 409
Deleted
classEvents is unknown
Not authenticated
Not authorized for this team or for one of the class's events, or V2 is not enabled
No such team
This is the ministry's only team; or classEvents delete while another ministry has volunteers assigned on one of the events (unless the caller holds Add Events), or core refuses to delete one (people checked in, a kiosk) - nothing is deleted
Can't find what you need? Ask in Discord, or open an issue on the ChurchCRM repository.