Prompt

How do I cancel or reschedule appointments through an API?

Technology / Scheduling & Booking Software1 observationLast seen Oct 15, 2026

Latest observation

Oct 15, 2026OpenAI APIWeb search: off

To cancel or reschedule appointments through an API, you usually have one of these patterns:

1) Cancel an appointment

Most APIs provide either:

  • a DELETE request to the appointment resource, or
  • a cancel action endpoint.

Examples

DELETE /appointments/{appointment_id}

or

POST /appointments/{appointment_id}/cancel

Typical request body for a cancel action:

{
  "reason": "Customer requested cancellation"
}

2) Reschedule an appointment

Rescheduling is often done by:

  • updating the appointment’s time/date fields with PATCH or PUT, or
  • calling a dedicated reschedule endpoint.

Examples

PATCH /appointments/{appointment_id}
{
  "start_time": "2026-10-20T14:00:00Z",
  "end_time": "2026-10-20T14:30:00Z"
}

or

POST /appointments/{appointment_id}/reschedule
{
  "new_start_time": "2026-10-20T14:00:00Z",
  "new_end_time": "2026-10-20T14:30:00Z"
}

3) Things to check in the API docs

Look for:

  • required authentication
  • whether the appointment must be in a specific status before canceling/rescheduling
  • whether the API uses timezone-aware timestamps
  • whether cancellation/rescheduling is allowed within a cutoff window
  • whether there are side effects like notifications or refunds

4) Common response codes

  • 200 OK / 204 No Content — success
  • 400 Bad Request — invalid time or parameters
  • 401 Unauthorized — missing/invalid auth
  • 403 Forbidden — not allowed
  • 404 Not Found — appointment doesn’t exist
  • 409 Conflict — appointment can’t be changed due to state conflict

5) Example in JavaScript

// Cancel
await fetch(`/appointments/${id}/cancel`, {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${token}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({ reason: "Need to reschedule" })
});

// Reschedule
await fetch(`/appointments/${id}`, {
  method: "PATCH",
  headers: {
    "Authorization": `Bearer ${token}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    start_time: "2026-10-20T14:00:00Z",
    end_time: "2026-10-20T14:30:00Z"
  })
});

If you want, I can show you the exact request format for a specific API (for example REST, GraphQL, or a scheduling platform like Calendly, Acuity, or Google Calendar).

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.