---
schema_version: "1"
id: f2d9f00176fdd56e5a920fac43a909fd0a1ec6fb6beabead5f04315abd6670c4
title: Book Slot Chain (POST)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/life_sciences_dev_guide/connect_resources_book_slot_chain.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/connect_resources_book_slot_chain.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 94f6ecce43edf6e29f1a16f1dfa5e3d26d972dc1fea53bac0c0a2c60f65d1259
description: Create service appointments for a care program enrollee in advanced therapy management based on the provided appointment slots.
---
# Book Slot Chain (POST)

Create service appointments for a care program enrollee in advanced therapy management based on the provided appointment slots.

This API takes both the published and unpublished slots as inputs. If the provided slots are published, the API calls the Salesforce Scheduler API to book the slots.

## Resource

/connect/health/advanced-therapy-management/book-slot-chain

## Resource Example

Replace {yourInstance} with the My Domain name of your Salesforce org.

https://{yourInstance}.salesforce.com/services/data/v68.0/connect/health/advanced-therapy-management/book-slot-chain

## Available Version

60.0

## HTTP Methods

POST

## JSON example

{
   "careProgramEnrolleeId":"08pxx0000004C92AAE",
   "workProcedureId":"08pxx0000004C92AAE",
   "slots":\[
      {
         "schedStartTime":"2022-03-26T16:30:00.000+0000",
         "schedEndTime":"2022-03-26T16:30:00.000+0000",
         "workTypeId":"08pxx0000004C92AAE",
         "serviceTerritoryId":"08pxx0000004C92AAE",
         "serviceResourceId":"08pxx0000004C92AAE",
         "contactId":"08pxx0000004C92AAE",
         "appointmentType":"08pxx0000004C92AAE",
         "subject":"Apheresis",
         "additionalInformation":"Needs Cab Assistance",
         "street":"1 Market Street",
         "city":"San Francisco",
         "state":"CA",
         "postalCode":"94105",
         "country":"USA",
         "comments":"",
         "status":"Scheduled"
      },
      {
         "schedStartTime":"2022-03-26T16:30:00.000+0000",
         "schedEndTime":"2022-03-26T16:30:00.000+0000",
         "workTypeId":"08pxx0000004C92AAE",
         "serviceTerritoryId":"08pxx0000004C92AAE",
         "serviceResourceId":"08pxx0000004C92AAE",
         "contactId":"08pxx0000004C92AAE",
         "appointmentType":"08pxx0000004C92AAE",
         "subject":"Apheresis",
         "additionalInformation":"Needs Cab Assistance",
         "street":"1 Market Street",
         "city":"San Francisco",
         "state":"CA",
         "postalCode":"94105",
         "country":"USA",
         "comments":"",
         "status":"Scheduled"
      },
      {
         "schedStartTime":"2022-03-26T16:30:00.000+0000",
         "schedEndTime":"2022-03-26T16:30:00.000+0000",
         "workTypeId":"08pxx0000004C92AAE",
         "serviceTerritoryId":"08pxx0000004C92AAE",
         "serviceResourceId":"08pxx0000004C92AAE",
         "contactId":"08pxx0000004C92AAE",
         "appointmentType":"08pxx0000004C92AAE",
         "subject":"Apheresis",
         "additionalInformation":"Needs Cab Assistance",
         "street":"1 Market Street",
         "city":"San Francisco",
         "state":"CA",
         "postalCode":"94105",
         "country":"USA",
         "comments":"",
         "status":"Scheduled"
      }
   \]
}

## Properties

| Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| careProgramEnrolleeId | String | ID of the care program enrollee for whom the service appointments must be created. | Required | 60.0 |
| slots | [Slots](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/connect_requests_slot_input.htm "Input representation of an appointment slot.") \[\] | Appointment slots to be booked. | Required | 60.0 |
| workProcedureId | String | ID of the work procedure for which the service appointments are to be created. | Required | 60.0 |

## Response Body for POST

[Book Slot Chain Output](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/connect_responses_book_slot_chain_output.htm "Output representation of the request to create service appointments.")