Prompt

How do I handle rescheduling for booked appointments through an API?

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

Latest observation

Oct 16, 2026OpenAI APIWeb search: off

To handle rescheduling booked appointments through an API, the usual pattern is:

  1. Check the appointment can be moved
  2. Validate the new slot
  3. Update the appointment record
  4. Notify affected parties
  5. Record the change for audit/history

Common API design options

1) Update the existing appointment

Use a PATCH or PUT request to change the appointment time.

Example

PATCH /appointments/{appointmentId}
Content-Type: application/json

{
  "startTime": "2026-02-20T14:00:00Z",
  "endTime": "2026-02-20T14:30:00Z"
}

This works well if rescheduling is just an attribute update.


2) Use a dedicated reschedule endpoint

This is often cleaner when rescheduling has business rules.

Example

POST /appointments/{appointmentId}/reschedule
Content-Type: application/json

{
  "newStartTime": "2026-02-20T14:00:00Z",
  "newEndTime": "2026-02-20T14:30:00Z"
}

This is better if you want to:

  • enforce special permissions
  • trigger notifications
  • preserve reschedule history
  • run conflict checks atomically

Key checks you should perform

Availability check

Ensure the new slot is free:

  • no overlap with another booking
  • staff/resource availability
  • location or room availability

Policy check

Confirm the appointment can be rescheduled:

  • not too close to the start time
  • not already completed/cancelled
  • only certain users can reschedule
  • rescheduling limits or fees

Timezone handling

Always store times in UTC and convert for display. Rescheduling issues often come from timezone mismatches.

Concurrency control

Two users may try to reschedule at once. Use:

  • row/version locking
  • optimistic concurrency via ETag / If-Match
  • transactional update logic

Suggested response codes

  • 200 OK or 204 No Content — reschedule succeeded
  • 400 Bad Request — invalid time format or missing fields
  • 404 Not Found — appointment doesn’t exist
  • 409 Conflict — slot unavailable or appointment already changed
  • 422 Unprocessable Entity — business rule prevents rescheduling
  • 403 Forbidden — user not allowed to reschedule

Example response

{
  "id": "apt_123",
  "status": "confirmed",
  "startTime": "2026-02-20T14:00:00Z",
  "endTime": "2026-02-20T14:30:00Z",
  "previousStartTime": "2026-02-20T12:00:00Z",
  "previousEndTime": "2026-02-20T12:30:00Z",
  "rescheduledAt": "2026-02-18T09:15:00Z"
}

Best practice

If rescheduling affects booking availability, treat it like a transaction:

  • release old slot
  • reserve new slot
  • update appointment
  • send notifications

All in one atomic operation if possible.

If you want, I can also show:

  • a REST API design for rescheduling,
  • database transaction logic,
  • or example code in Node.js, Python, or .NET.

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.

How do I handle rescheduling for booked appointments through an API? — Obsurfable Explorer