---
schema_version: "1"
id: dc4edbf75a8b14530230fa6831b8fafc6c5c72dae918b836a662d5e492a162fb
title: Available Territory Slots (POST)
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/salesforce-scheduler-dev-guide/guides/salesforce-scheduler/scheduler-error-codes/availableterritoryslots.md
canonical_url: https://developer.salesforce.com/docs/service/salesforce-scheduler-dev-guide/guide/availableterritoryslots.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8e453f952d914c703fc3539c9699ffe54bd24861973a21182684ed3d3b66cd6f
products:
  - Salesforce Scheduler Developer Guide
  - Service Cloud Developer Content
---

# Available Territory Slots (POST)

Contains the error codes and error code messages related with Salesforce Scheduler API for the `available-territory-slots` (POST) resource.

This table lists HTTP response code descriptions that are unique to this resource.

|HTTP Response Code|Error Code|Description|
|------------------|----------|-----------|
|400|`MISSING_ARGUMENT`|Specify a `serviceTerritoryId` with either a `workTypeGroupId` or `WorkTypeId`.|
|400|`INTERNAL_ERROR`|You can't specify both `requiredResourceIds` and `filterByResources` in the request body. Specify one or the other and try again.|
|400|`INVALID_INPUT`|Specify either a `workTypeGroupId` or a `WorkTypeId`.|
|400|`INVALID_INPUT`|This isn't a valid `workTypeGroupId` value. Specify a valid ID for the `workTypeGroupId` parameter.|
|400|`INVALID_INPUT`|This isn't a valid `workTypeId` value. Specify a valid ID for the `workTypeId` parameter.|
|400|`INVALID_INPUT`|Specify either a workTypeId or a value for the durationInMinutes parameter.|
|400|`INVALID_INPUT`|This isn't a valid `serviceTerritoryId` value. Specify a valid ID for the `serviceTerritoryId` parameter.|
|400|`INVALID_INPUT`|This isn't a valid account ID. Specify a valid ID for the `accountId` parameter.|
|400|`INTERNAL_ERROR`|`AppointmentSchedulingPolicy` provided: {id} does not belong to AppointmentSchedulingPolicy.|
|400|`INTERNAL_ERROR`|Provide an end date that's after the start date, and try again.|
|400|`INVALID_INPUT`|This isn't a valid service resource Id in the `filterByResources` parameter. Specify a valid service resource ID in the `filterByResources` parameter.|
|400|`INTERNAL_ERROR`|Something went wrong. Ask your admin for help.|
|400|`INSUFFICIENT_ACCESS`|Looks like you don’t have access to the `maxAppointments` or `workTypeGroup` field in the TimeSlot object. Your Salesforce admin can help with that.|
|400|`INSUFFICIENT_ACCESS`|Looks like you don’t have access to the `{Service Resource}` object. Your Salesforce admin can help with that.|
|400|`INTERNAL_ERROR`|Specify a `workTypeGroup` with a custom_workType associated with an appointment category with a Scheduled type, and try again.|
|400|`INTERNAL_ERROR`|{id} `(AppointmentTopicTimeSlot)`, is not accessible for the current user.|
|403|`API_DISABLED_FOR_ORG`|The Chatter Connect API is not enabled for this organization or user type.|

