1 General
Html macro | ||
---|---|---|
| ||
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>code {max-height: 500px !important; overflow: auto;}</style>
</head>
<body>
</body>
</html> |
The JSON Schema API presents the input template for adding new employee master data to and editing the master data of existing employees in HRWorks. Each customer database in HRWorks has a unique set of masters with regard to employee data. Hence, it is imperative that the JSON schema API is conformed to while sending employee data to HRWorks from a third-party system.
1.1 Authentication
Your API calls must contain the API key for the purpose of authentication.
Parameter | Description |
---|---|
key | Please contact the HRWorks administrator in your organization for the API key. |
You can generate the API key for your organization yourself.
...
Please note that the API key must be appended with the URL as a request parameter.
2. Response
...
...
If the JSON Schema API call is successful, the API shall return an input template for the addEmployee and editEmployee API. A typical example of the response is as follows.
Expand | |||||
---|---|---|---|---|---|
| |||||
|
...
In case of error, the API returns the following JSON response:
{ |
Note:
errorMsg is a string value describing the error.
Status codes are described in the Status Codes section.
3 Coding Examples
3.1 CURL
1 | #The following command returns employee JSON schema in response. |
|