Modifying Jobs API

This API is used to modify job

Request URL:

https://people.zoho.com/people/api/forms/<inputType>/<formLinkName>/updateRecord?recordId=<recordId>&inputData=<inputData>

Header:

Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf

Scope:

ZOHOPEOPLE.forms.ALL
OR
ZOHOPEOPLE.forms.UPDATE

Possible Operation Types:

ALL - Complete access to data
UPDATE - Only to modify data

Request parameter:

ParameterDescription
*formLinkNameSpecify the formLinkName as "P_TimesheetJob"
*inputTypeSpecify the inputType as either "xml" or "json"
*recordIdSpecify the job ID
*inputDataXML input: <Request><Record><field name="LabelName1">value1</field><field name="LabelName2">value2</field><field name="LabelName3">value3</field></Record></Request>
JSON input:{LabelName1:'value1',LabelName2:'value2',LabelName3:'value3'}

NOTE:

To assign job to all users mention as 'All' for "Assignees' in the inputData.

Sample Request

Copiedhttps://people.zoho.com/people/api/forms/json/P_TimesheetJob/updateRecord?recordId=469505000000271003&inputData={"Job_Name":"Performance Analysis","StartDate":"01-Apr-2019","EndDate":"30-Apr-2019","Project":"469505000000267333","Assignees":"469505000000133005;469505000000133275",
"AssigneeHours":"20;20","AssigneeRate":"100;100","departmentIds":"469505000000133001"}
Copiedhttps://people.zoho.com/people/api/forms/xml/P_TimesheetJob/updateRecord?recordId=469505000000271003&inputData=<Request><Record><field name="Job_Name">Performance Analysis</field><field name="StartDate">01-Apr-2019</field><field name="EndDate">30-Apr-2019</field><field name="Project">469505000000267333</field><field name="Assignees">469505000000133005;469505000000133275</field><field name="AssigneeHours">20;20</field><field name="AssigneeRate">100;100</field><field name="departmentIds">469505000000133001</field></Record></Request>

Header

CopiedAuthorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf

Sample Response

Copied{
   	   "response": {
      		  "result": {
           			 "pkId": "469505000000271003",
           			 "message": "Successfully Updated"
       		 },
        	  	"message": "Data updated successfully",
       	  	"uri": "/api/forms/json/P_TimesheetJob/updateRecord",
      	   	"status": 0
    	         }
}
Copied<?xml version=""1.0"" encoding=""UTF-8""?>
<response uri=""/api/forms/xml/P_TimesheetJob/updateRecord"">
    		<status>0</status>
		<message>Data updated successfully</message>
		<result>
			<message>Successfully Updated</message>
		</result>
</response>