Add Jobs API
This API is used to add jobs,
Request URL:
https://people.zoho.com/people/api/forms/<inputType>/<formLinkName>/insertRecord?inputData=<inputData>
Header:
Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf
Scope:
ZOHOPEOPLE.forms.ALL
OR
ZOHOPEOPLE.forms.CREATE
Possible Operation Types:
ALL - Complete access to data
CREATE - Only to add data
Request parameter:
Parameter | Description |
*formLinkName | Specify the formLinkName as "P_TimesheetJob" |
*inputType | Specify the inputType as either "xml" or "json" |
*inputData | XML 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/insertRecord?inputData={"Job_Name":"Performance Analysis","StartDate":"01-Apr-2019","EndDate":"30Apr2019","Project":"469505000000267333","Assignees":"469505000000133005;469505000000133275","AssigneeHours":"20;20","AssigneeRate":"100;100","departmentIds":"469505000000133001"}
Copiedhttps://people.zoho.com/people/api/forms/xml/P_TimesheetJob/insertRecord?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
Response
Sample Response
Copied{
"response": {
"result": {
"pkId": "469505000000271003",
"message": "Successfully Added"
},
"message": "Data added successfully",
"uri": "/api/forms/json/P_TimesheetJob/insertRecord",
"status": 0
}
}
Copied<?xml version="1.0" encoding="UTF-8"?>
<response uri="/api/forms/xml/P_TimesheetJob/insertRecord">
<status>0</status>
<message>Data added successfully</message>
<result>
<pkId>469505000000271003</code>
<message>Successfully Added</message>
</result>
</response>