Create a Service Appointment
Purpose
To create a time sheet for a service appointment.
Request URL
https://fsm.zoho.com/fsm/v1/Time_Sheets
Request Method
POST
Scope
scope=ZohoFSM.modules.TimeSheets.CREATE
Input JSON Parameters
Name | Description | Type | Mandatory |
Service_Appointment | The ID of the service appointment for which you are creating the time sheet | String | Yes |
Service_Resource | The ID of the user for whom you want to create the time sheet. Use the id in the Service_Resources key present in the List Users API response. | String | Yes |
Description | Any description you want to add to the time sheet | String | |
Start_Date_Time | The date and time at which you want to start the time sheet. The value must be in the ISO format: YYYY-MM-DDThh:mm:ssTZD | DateTime | Yes |
End_Date_Time | The date and time at which you want to end the time sheet. The value must be in the ISO format: YYYY-MM-DDThh:mm:ssTZD | DateTime | |
Service_Line_Items | The IDs of the service line items in the appointment for which you want to create the time sheet. You can obtain this from the API response of Get a Service Appointment. The value that you need to use is the id in the Service_Line_Item key. Use the Service Line Item Name in the appointment to identify the service line item in the API response of Get a Service Appointment. | Array | Yes, when there are no service task line items for the service |
Service_Tasks_Line_Items | The IDs of the service task line items in the appointment for which you want to create the time sheet. You can obtain this from the API response of Get a Service Appointment. The value that you need to use is the id in the Service_Task_Line_Item key. Use the Service Task Line Item Name in the appointment to identify the service task line item in the API response of Get a Service Appointment. | Array | Yes, if service tasks are present for the service. |
Sample Request
Copied
Sample Input
Copied
Show full
Show less
Sample Success Response
Copied
Show full
Show less
Sample Error Response
Copied
Show full
Show less
Sample Error Response
Copied
Sample Error Response
Copied
Sample Error Response
Copied