---
agentTools:
  projectIndex: https://sched.readme.io/llms.txt
---

# Confirm Booking

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "sched.dev",
    "description": "Scheduling API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.sched.dev",
      "description": "API Server"
    },
    {
      "url": "https://sandbox-api.sched.dev",
      "description": "Sandbox API Server"
    }
  ],
  "paths": {
    "/v1/bookings/{booking_id}/confirm": {
      "post": {
        "tags": [
          "Bookings"
        ],
        "summary": "Confirm Booking",
        "operationId": "confirm_booking_v1_bookings__booking_id__confirm_post",
        "parameters": [
          {
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Booking Id"
            },
            "name": "booking_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Confirm a booking",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IBookingRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2ClientCredentialsBearer": [
              "bookings:write"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "IBookingRead": {
        "properties": {
          "resource_id": {
            "type": "string",
            "format": "uuid",
            "title": "Resource Id",
            "description": "The ID of the resource"
          },
          "email": {
            "type": "string",
            "title": "Email",
            "description": "The email of the person making the booking"
          },
          "start": {
            "type": "string",
            "format": "date-time",
            "title": "Start",
            "description": "The start date and time of the booking"
          },
          "end": {
            "type": "string",
            "format": "date-time",
            "title": "End",
            "description": "The end date and time of the booking"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "description": "The status of the booking"
          },
          "cancel_reason": {
            "type": "string",
            "title": "Cancel Reason",
            "description": "The reason for cancelling the booking"
          },
          "reschedule_reason": {
            "type": "string",
            "title": "Reschedule Reason",
            "description": "The reason for rescheduling the booking"
          },
          "booking_metadata": {
            "type": "object",
            "title": "Booking Metadata",
            "description": "Additional metadata for the booking"
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "resource": {
            "$ref": "#/components/schemas/IResourceReadNoRelatives"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "relative_created_at": {
            "type": "string",
            "title": "Relative Created At"
          },
          "formatted_start": {
            "type": "string",
            "title": "Formatted Start"
          }
        },
        "type": "object",
        "required": [
          "resource_id",
          "start",
          "end",
          "status",
          "id",
          "created_at",
          "relative_created_at",
          "formatted_start"
        ],
        "title": "IBookingRead"
      },
      "IResourceReadNoRelatives": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name",
            "description": "The name of the resource"
          },
          "email": {
            "type": "string",
            "title": "Email",
            "description": "The email of the resource"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "The description of the resource"
          },
          "cover_image_url": {
            "type": "string",
            "title": "Cover Image Url",
            "description": "The cover image URL of the resource"
          },
          "google_calendar_id": {
            "type": "string",
            "title": "Google Calendar Id",
            "description": "The Google Calendar ID of the resource"
          },
          "google_calendar_name": {
            "type": "string",
            "title": "Google Calendar Name",
            "description": "The Google Calendar name of the resource"
          },
          "booking_url": {
            "type": "string",
            "title": "Booking Url",
            "description": "The booking profile URL of the resource"
          },
          "timezone": {
            "type": "string",
            "title": "Timezone",
            "description": "The timezone of the resource"
          },
          "profile_pic_url": {
            "type": "string",
            "title": "Profile Pic Url",
            "description": "The profile picture URL of the resource"
          },
          "default_location_id": {
            "type": "string",
            "format": "uuid",
            "title": "Default Location Id",
            "description": "The ID of the default location"
          },
          "default_timezone": {
            "type": "string",
            "title": "Default Timezone",
            "description": "The timezone of the schedule"
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "pic": {
            "type": "string",
            "title": "Pic"
          }
        },
        "type": "object",
        "required": [
          "name",
          "email",
          "description",
          "id"
        ],
        "title": "IResourceReadNoRelatives"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "OAuth2ClientCredentialsBearer": {
        "type": "oauth2",
        "flows": {
          "password": {
            "scopes": {},
            "tokenUrl": "/v1/auth/token"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 103,
      "1": 14,
      "2": 106,
      "3": 94,
      "4": 33,
      "5": 109,
      "6": 146,
      "7": 0,
      "8": 49,
      "9": 64,
      "10": 212,
      "11": 226
    }
  }
}
```