---
schema_version: "1"
id: 9aa978c555c5b8a751a353e1e717d36f7cb9fd0f8c66eefb493ba7bd6f757108
title: Get Slots (POST)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/connect_appointment_management_get_slots.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/connect_appointment_management_get_slots.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f6f43194de13b67825894efa9ee1cc72a58a4fbb2136ed71b5c3ba2ee1b1d02f
description: Get slots associated with the provider or asset.
---
# Get Slots (POST)

Get slots associated with the provider or asset.

## Resource

/connect/health/appointment-management/slots

## Resource Example

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

https://{yourInstance}.salesforce.com/services/data/v68.0/connect/health/appointment-management/slots

## HTTP Methods

POST

## Request Body for POST

                                {
  "resources": \[
    {
      "resourceId": "c51xx000000B1xxBCI",
      "serviceTerritoryId": "08pxx000000G6xxGHG",
      "serviceResourceId": "08pxx000000I8xxIKM",
      "resourceType": "Provider"
    }
  \],
  "channelId": "a02xx000000A8xxAGH",
  "workTypeId": "1Fwxx0000004C9bCAE",
  "startDate": "2013-12-10T09:00:00Z",
  "endDate": "2013-12-10T11:00:00Z",
  "sourceSystem": "<cerner>",
  "appointmentTypes": \[
    "FOLLOW-UP"
  \],
  "serviceCategories": \[
    "serviceCategoryCode1",
    "serviceCategoryCode2" 

  \],
  "serviceTypes": \[
    "serviceTypeCode1",
    "serviceTypeCode2"
  \]
}
                            

## Request Parameters for POST

<table class="featureTable sort_table" summary="">





          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d607533e99">Parameter Name</th>

              <th class="featureTableHeader vertical-align-top " id="d607533e102">Type</th>

              <th class="featureTableHeader vertical-align-top " id="d607533e105">Description</th>

              <th class="featureTableHeader vertical-align-top " id="d607533e108">Required or Optional</th>

              <th class="featureTableHeader  " id="d607533e111">Available version</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d607533e99" data-title="Parameter Name"><samp class="codeph nolang">appointment​Types</samp></td>

              <td class="entry" headers="d607533e102" data-title="Type">Array</td>

              <td class="entry" headers="d607533e105" data-title="Description">Type of the appointment. An array of strings.
                Required, if none of the following are provided: <a name="ul_kvh_npw_kgc"><!-- --></a>
                <ul class="ul bulletList" id="ul_kvh_npw_kgc">
                  <li class="li"><samp class="codeph nolang">workTypeId</samp></li>

                  <li class="li"><samp class="codeph nolang">serviceTypes</samp></li>

                  <li class="li"><samp class="codeph nolang">serviceCategories</samp></li>

                </ul>

              </td>

              <td class="entry" headers="d607533e108" data-title="Required or Optional">Required</td>

              <td class="entry" headers="d607533e111" data-title="Available version">65.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d607533e99" data-title="Parameter Name"><samp class="codeph nolang">channel​Id</samp></td>

              <td class="entry" headers="d607533e102" data-title="Type">String</td>

              <td class="entry" headers="d607533e105" data-title="Description">Engagement channel associated with the work
                type.</td>

              <td class="entry" headers="d607533e108" data-title="Required or Optional">Required</td>

              <td class="entry" headers="d607533e111" data-title="Available version">65.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d607533e99" data-title="Parameter Name"><samp class="codeph nolang">endDate</samp></td>

              <td class="entry" headers="d607533e102" data-title="Type">String</td>

              <td class="entry" headers="d607533e105" data-title="Description">End date and time for the slots range.</td>

              <td class="entry" headers="d607533e108" data-title="Required or Optional">Required</td>

              <td class="entry" headers="d607533e111" data-title="Available version">65.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d607533e99" data-title="Parameter Name"><samp class="codeph nolang">resources</samp></td>

              <td class="entry" headers="d607533e102" data-title="Type"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/connect_requests_get_slots_resources.htm" title="Input representation for getting appointment slot resources.">Resources Input</a></td>

              <td class="entry" headers="d607533e105" data-title="Description">Array of resources, like provider or device.</td>

              <td class="entry" headers="d607533e108" data-title="Required or Optional">Required</td>

              <td class="entry" headers="d607533e111" data-title="Available version">65.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d607533e99" data-title="Parameter Name"><samp class="codeph nolang">service​Categories</samp></td>

              <td class="entry" headers="d607533e102" data-title="Type">Array</td>

              <td class="entry" headers="d607533e105" data-title="Description">List of broad categorizations of the service. An
                array of strings. Required, if none of the following are
                provided: <a name="ul_szj_lpw_kgc"><!-- --></a>
                <ul class="ul bulletList" id="ul_szj_lpw_kgc">
                  <li class="li"><samp class="codeph nolang">workTypeId</samp></li>

                  <li class="li"><samp class="codeph nolang">serviceTypes</samp></li>

                  <li class="li"><samp class="codeph nolang">appointmentType</samp></li>

                </ul>

              </td>

              <td class="entry" headers="d607533e108" data-title="Required or Optional">Required</td>

              <td class="entry" headers="d607533e111" data-title="Available version">65.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d607533e99" data-title="Parameter Name"><samp class="codeph nolang">service​Types</samp></td>

              <td class="entry" headers="d607533e102" data-title="Type">Array</td>

              <td class="entry" headers="d607533e105" data-title="Description">List of specific services to be performed. An array
                of strings. Required, if none of the following are
                provided: <a name="ul_r2f_jpw_kgc"><!-- --></a>
                <ul class="ul bulletList" id="ul_r2f_jpw_kgc">
                  <li class="li"><samp class="codeph nolang">workTypeId</samp></li>

                  <li class="li"><samp class="codeph nolang">appointmentType</samp></li>

                  <li class="li"><samp class="codeph nolang">serviceCategories</samp></li>

                </ul>

              </td>

              <td class="entry" headers="d607533e108" data-title="Required or Optional">Required</td>

              <td class="entry" headers="d607533e111" data-title="Available version">65.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d607533e99" data-title="Parameter Name"><samp class="codeph nolang">source​System</samp></td>

              <td class="entry" headers="d607533e102" data-title="Type">String</td>

              <td class="entry" headers="d607533e105" data-title="Description">Source system associated with the appointment type,
                service type or service category. Required, if <samp class="codeph nolang">workTypeId</samp> is not
                provided but either <samp class="codeph nolang">appointmentType</samp>, <samp class="codeph nolang">serviceTypes</samp>, or
                <samp class="codeph nolang">serviceCategories</samp> is.
              </td>

              <td class="entry" headers="d607533e108" data-title="Required or Optional">Required</td>

              <td class="entry" headers="d607533e111" data-title="Available version">65.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d607533e99" data-title="Parameter Name"><samp class="codeph nolang">start​Date</samp></td>

              <td class="entry" headers="d607533e102" data-title="Type">String</td>

              <td class="entry" headers="d607533e105" data-title="Description">Start date and time for the slots range.</td>

              <td class="entry" headers="d607533e108" data-title="Required or Optional">Required</td>

              <td class="entry" headers="d607533e111" data-title="Available version">65.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d607533e99" data-title="Parameter Name"><samp class="codeph nolang">workType​Id</samp></td>

              <td class="entry" headers="d607533e102" data-title="Type">String</td>

              <td class="entry" headers="d607533e105" data-title="Description">Work type associated with the resource.</td>

              <td class="entry" headers="d607533e108" data-title="Required or Optional">Required</td>

              <td class="entry" headers="d607533e111" data-title="Available version">65.0</td>

            </tr>

          </tbody>

        </table>

## Response Body for POST

[Get Slots Output](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/connect_responses_get_slots.htm "Output representation for getting appointment slots.")