Fetch Available Time Slots
Purpose
To fetch available time slots for service resources (agents or crews) based on various filters such as date/time, resource type, skills, territory, etc.
The service resources will be considered available if they meet the following conditions:
- The service resource is present in the specified territory during the given time.
- The service resource has no appointments scheduled during that time.
- The service resource is not on time off during that time.
Request URL
https://fsm.zoho.com/fsm/v1/Service_Resources/Available_TimeSlots
Request Method
POST
Scope
scope=ZohoFSM.modules.custom.READ
Input JSON Keys
Name | Data Type | Description |
date_time_range | JSON Object | The date range within which you want to find the time slots |
start (mandatory) | String | The start date/time from which you want to check the time slots. It can either be in the ISO8601 format YYYY-MM-DDThh:mm:ssTZD or YYYY-MM-DD |
end | String | The end date/time till which you want to check the time slots. It can either be in the ISO8601 format YYYY-MM-DDThh:mm:ssTZD or YYYY-MM-DD The end date/time should be within 48 hours of the start date/time |
service_resource_filter | JSON Object | The criteria you want to specify for fetching the service resources |
type | String | Whether the service resource is a Crew or Agent |
sr_ids | Array | The IDs of the service resources. Use the id in the Service_Resources key present in the List Users API response |
skill_ids | Array | The IDs of the skills of the service resource. You can get these IDs from the List Skills API |
sr_name | String | The name of the service resource. All the service resources whose name or substring of their name matches this search string will be fetched |
count | Number | The number of service resources you want to fetch. You can give a value between 20 and 100. |
territory | JSON Object | |
id (mandatory) | String | The ID of the territory in which you want to check the availability. You can get this ID from the List Service Territories API |
time_slot | JSON Object | |
duration | Number | The duration of the time slot in minutes. If not specified, then 60 minutes will be considered. The duration should be greater than 0. |
Sample Request
Copied
Sample Input
Copied
Show full
Show less
Sample Success Response
Copied
Show full
Show less
Sample Error Response
Copied
Sample Error Response
Copied