---
title: "Patch External Booking"
method: PATCH
path: "/api/v2/resource_management/ext-systems/resourcing/ext-bookings/{extBookingId}"
tags: ["Ext Booking"]
---

# Patch External Booking

`PATCH /api/v2/resource_management/ext-systems/resourcing/ext-bookings/{extBookingId}`

Patches external booking given its id. Note: All required body params in the schema are not enforced in PATCH request, unlike path params.

## Path parameters

- `extBookingId` string, required

## Headers

- `Authorization` string, required

## Request body

- ExtBookingSchema
  - `creatorEmail` string, required — Email of the creator of the booking
  - `createdAt` integer, required — Creation timestamp for the booking
  - `bookingId` integer, nullable — Internal booking ID
  - `startDateIso` string — Start date of the booking in ISO format (YYYY-MM-DD)
  - `endDateIso` string — End date of the booking in ISO format (YYYY-MM-DD)
  - `bookedCapacity` ExtBookingCapacityData
    - `unit` 'hours' | 'percentage' | 'fraction', required — Unit of capacity. Possible values: ['hours', 'percentage', 'fraction']
    - `timeGranularity` 'daily' | 'weekly' | 'monthly', nullable — Time granularity of capacity. Possible values: ['daily', 'weekly', 'monthly']
    - `capacity` number, float, required — Capacity value
  - `lastModifiedAt` integer, nullable — Last modified timestamp for the booking
  - `endDate` integer — [DEPRECATED] End date of the booking in epoch timestamp format. Use endDateIso instead.
  - `lastModifierEmail` string, nullable — Email of the last modifier of the booking
  - `extBookingId` string, required — External booking id
  - `startDate` integer — [DEPRECATED] Start date of the booking in epoch timestamp format. Use startDateIso instead.
  - `extDemandId` string, nullable — External demand id for the demand associated with the booking
  - `employeeId` string, required — Employee id
  - `bookingStatus` 'pending' | 'approved' | 'rejected', required — Status of the booking. Possible values: ['pending', 'approved', 'rejected']
  - `bookingType` 'demand' | 'leave' | 'optional_holiday' | 'blocker', required — Type of the booking. Possible values: ['demand', 'leave', 'optional_holiday', 'blocker']

## Response `200`

OK

- ExtBookingSchema
  - `creatorEmail` string, required — Email of the creator of the booking
  - `createdAt` integer, required — Creation timestamp for the booking
  - `bookingId` integer, nullable — Internal booking ID
  - `startDateIso` string — Start date of the booking in ISO format (YYYY-MM-DD)
  - `endDateIso` string — End date of the booking in ISO format (YYYY-MM-DD)
  - `bookedCapacity` ExtBookingCapacityData
    - `unit` 'hours' | 'percentage' | 'fraction', required — Unit of capacity. Possible values: ['hours', 'percentage', 'fraction']
    - `timeGranularity` 'daily' | 'weekly' | 'monthly', nullable — Time granularity of capacity. Possible values: ['daily', 'weekly', 'monthly']
    - `capacity` number, float, required — Capacity value
  - `lastModifiedAt` integer, nullable — Last modified timestamp for the booking
  - `endDate` integer — [DEPRECATED] End date of the booking in epoch timestamp format. Use endDateIso instead.
  - `lastModifierEmail` string, nullable — Email of the last modifier of the booking
  - `extBookingId` string, required — External booking id
  - `startDate` integer — [DEPRECATED] Start date of the booking in epoch timestamp format. Use startDateIso instead.
  - `extDemandId` string, nullable — External demand id for the demand associated with the booking
  - `employeeId` string, required — Employee id
  - `bookingStatus` 'pending' | 'approved' | 'rejected', required — Status of the booking. Possible values: ['pending', 'approved', 'rejected']
  - `bookingType` 'demand' | 'leave' | 'optional_holiday' | 'blocker', required — Type of the booking. Possible values: ['demand', 'leave', 'optional_holiday', 'blocker']

---

[API](https://skmtc.net/eightfold/apis/api-server-v2-service-service.md) · [All operations](https://skmtc.net/eightfold/apis/api-server-v2-service-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/eightfold/api-server-v2-service-service/versions/0fb26f4e41bf/schema)
