Create a Time Off
Purpose
To create a time off record.
Request URL
https://fsm.zoho.com/fsm/v1/Time_Off
Request Method
POST
Scope
scope=ZohoFSM.modules.TimeOff.CREATE
Input JSON Parameters
Name | Description | Type |
Service_Resource (mandatory) | The ID of the user for whom you want to create a time off. Use the id in the Service_Resources key present in the List Users API response. | String |
Time_Off_Type | The possible values are:
| String |
Start_Date_Time (mandatory) | If the value for Time_Off_Type is - Date: Provide the start date for the time off in the format YYYY-MM-DD - DateTime: Provide the start date and time for the time off in the ISO format YYYY-MM-DDThh:mm:ssTZD. | String or DateTime |
End_Date_Time (mandatory) | If the value for Time_Off_Type is - Date: Provide the end date for the time off in the format YYYY-MM-DD - DateTime: Provide the end date and time for the time off in the ISO format YYYY-MM-DDThh:mm:ssTZD. | String or DateTime |
Reason (mandatory) | The possible values are:
| String |
Description | This will be added to the Comments field of the time off. | String |
Sample Request
Copied
Sample Input
Copied
Sample Success Response
Copied
Show full
Show less
Sample Error Response
Copied
Show full
Show less