---
schema_version: "1"
id: e51a1c38e5cf7a36cb88822c7dc4d71defe9d28a19c921f9cff52b2aece42b91
title: Quotas and Allocations
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/connect_resources_quotas_and_allocations.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/connect_resources_quotas_and_allocations.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 449ca0bd7428487f07a2635b003fd69b633d42d43328fb8b13a8d6b2ff1183a1
description: Find available slots and manage quotas for therapies (Work Procedures) at various stages (Work Types) across multiple treatment centers.
---
# Quotas and Allocations

Find available slots and manage quotas for therapies (Work Procedures) at various stages (Work Types) across multiple treatment centers.

See [Advanced Therapy Management](https://help.salesforce.com/s/articleView?id=ind.admin_advanced_therapy_management_overview.htm&type=5&language=en_US) in

_Salesforce Help_

for details on quotas, allocations and slot management.

## Resource

/connect/health/advanced-therapy-management/quotas-and-allocations

## 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/quotas-and-allocations

## Available Version

60.0

## HTTP Method

POST

## Root XML tag

<quotasAndAllocations>

## JSON example

{
          "contextId": "0Wwxx000000003FCAQ",
          "endDate": "2023-12-01T02:29:59.000Z",
          "leadTimeMap": {
            "08qxx0000004CSRAA2": 2,
            "08qxx0000004CSQAA2": 30,
            "08qxx0000004CSOAA2": 3,
            "08qxx0000004CSPAA2": 2
          },
          "siteId": "0Hhxx0000004CQmCAM",
          "startDate": "2023-11-15T02:30:00.000Z",
          "workProcedureId": "0uVxx00000000G9EAI",
          "workTypeId": "08qxx0000004CSPAA2"
   }

## Properties

| Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| contextId | String | ID of the program enrollee, a case or an opportunity used for slot searching. | Optional | 60.0 |
| endDate | String | End date and time of slot searching. | Optional | 60.0 |
| leadTimeMap | String | Lead time map of work type to lead time. | Optional | 60.0 |
| siteId | String | Work procedure organization used for slot searching. | Optional | 60.0 |
| startDate | String | Start date and time of slot searching. | Optional | 60.0 |
| workProcedureId | String | ID of the work procedure used for searching. | Optional | 60.0 |
| workTypeId | Map<String, Integer> | ID of the work type used for slot searching. | Optional | 60.0 |

## Response Body for POST

[Quotas and Allocations](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/connect_responses_quota_availability.htm "Output representation of a list of available quotas, and their start and end dates for a work type.")