Add Department API

You can add various departments one by one in Zoho People using the API below

Request URL:

https://people.zoho.com/people/api/department/records?xmlData=<xmlData>

Header:

Authorization:Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf

Scope:

scope = ZOHOPEOPLE.forms.CREATE 
or
ZOHOPEOPLE.forms.ALL

Parameters

xmlDatasample input: <Request><Record><field name="Labelname">value</field><field name="LabelName1">value1</field><field name="Labelname2">value2</field></Record></Request>

 Threshold Limit:  20 requests | Lock period: 5 minutes

Threshold Limit - Number of API calls allowed within a minute.
Lock Period - Wait time before consecutive API requests.

Sample Request

Copiedhttps://people.zoho.com/people/api/department/records?xmlData=<Request><Record><field name='Department'>support</field><field name='MailAlias'>sohail@domain.com</field><field name='Department_Lead'>17</field><field name='testing'>17</field></Record></Request>

Header

CopiedAuthorization:Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf

Response

Copied<Response Status="1">
<message>Successfully Added</message>
</Response>