Approve/Reject a Service Appointment

Purpose

To approve, reject, or pullback a service appointment. 

Request URL

https://fsm/v1/ApprovalTasks/<action>

where action can be Approve/Reject/PullBack

Request Method

PUT

Scope

scope=ZohoFSM.Modules.ServiceAppointments.UPDATE

Input JSON Parameters

NameDescriptionType
id (mandatory)The unique ID of the recordString
commentAny note to be addedString

Sample Request

Copiedcurl --request PUT 'https://fsm/v1/ApprovalTasks/PullBack' \
--header 'Authorization: Zoho-oauthtoken 1000.26xxxxxxxxxx.xxxxxxxxxx0' \
--header 'content-type: application/json' \
--data "{"field1":"value1","field2":"value2"}"

Sample Input

Copied{
    "data" : [
        {
            "id": "1439000002481088",
            "comment": "Pulled Back!"
        }
    ]
}

Sample Response

Copied{
    "status": "success"
}