Fetch Available Service Resources
Purpose
Retrieve available service resources based on the specified criteria.
Request URL
https://fsm.zoho.com/fsm/v1/serviceResource/getAvailableServiceResources
Request Method
GET
Scope
scope=ZohoFSM.modules.custom.READ
Parameters
Name | Data Type | Description | Mandatory |
start_date_time | Date/DateTime | The start time from which you want to check the availability of the resources. The value must be in the ISO format: YYYY-MM-DD or YYYY-MM-DDThh:mm:ssTZD If only the date is provided, the start time will be considered as 00:00:00. Encode as required. | Yes |
end_date_time | Date/DateTime | The end time of the period for which you want to check the availability of the resources. The value must be in the ISO format: YYYY-MM-DD or YYYY-MM-DDThh:mm:ssTZD. If this value is not provided, the end of the day of the start_date_time value will be considered. Encode as required. | |
territory_ids | String | Comma-separated IDs of the territories in which you want to check the availability of the resources. Use "ALL" to include all territories. | Yes, if there are multiple territories in the organization |
skills | String | Check the availability of the resources based on their skills. Pass the IDs as comma-separated values. | |
service_resource_type | String | Check the availability of the resources based on the type of the resource. The acceptable values are: - Agent - Crew - Equipment | |
service_resource_name | String | Check the availability of the resource using their name | |
service_resource_ids | String | Check the availability of the resources using their IDs (the id in the Service_Resources key present in the List Users API response). Pass the IDs as comma-separated values. | |
ignore_conflicting_appointments | Boolean | Whether to consider service resources with appointments as available or not. true: service resources with appointments will be considered as available. false: service resources with appointments will not be considered as available. Unless specified, this will be considered true. | |
ignore_timeoff_conflict | Boolean | Whether to consider service resources on time off as available or not. true: service resources on time off will be considered as available. false: service resources on time off will not be considered as available. Unless specified, this will be considered true. | |
get_unavailable_resources | Boolean | Whether to include unavailable resources in the response. true: resources with assigned appointments, who are on time off, or are unavailable for some reason will be included. The property is_available will be set to false for them. false: resources with assigned appointments, who are on time off, or are unavailable for some reason will be excluded. Unless specified, this will be considered false. | |
page | Integer | The page from which you want to fetch the records. The default value is 1. Only positive integer values are allowed. | |
per_page | Integer | The number of records you want to fetch in a page. The default value is 20 and the maximum value allowed is 100. Only positive integer values are allowed. |
Sample Request
Copied
Sample Success Response
Copied
Sample Failure Response
Copied