Respond to schedule request
Accept or decline your own pending request for a plan, as you.
POST https://cotlet.dev/api/v1/planning-center/plans/{plan_id}/schedule-request/replies
write Confirm
Answers all your pending positions on the plan, like Accept pending or Decline all on the plan card in My Schedule. A decline notifies your team leaders. Positions split into several times are not answered here; answer them in Planning Center. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| plan_id string required | string | Plan id from list_my_schedule. |
| response enum required | enum | accept or decline. |
Request
curl -X POST https://cotlet.dev/api/v1/planning-center/plans/plan_8c41d2/schedule-request/replies \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"response":"accept"}' result = client.call("planning-center", "respond_to_schedule_request", {"plan_id":"plan_8c41d2","response":"accept"}) const result = await cotlet.call('planning-center', 'respond_to_schedule_request', {"plan_id":"plan_8c41d2","response":"accept"}); cotlet call planning-center respond_to_schedule_request --data '{"plan_id":"plan_8c41d2","response":"accept"}' Example response
{
"plan_id": "71234",
"response": "accept",
"positions": [
{
"team": "Band",
"position": "Keys",
"status": "confirmed"
}
]
}