On this Employee Work Experience page you can use the method :
1. POST
2. GET
1. POST
- Add new Work Experience of Employee
Objective : To add work experience that employees have
Method : POST
API Endpoint : [[baseurl]]/api/integration/v1/employee/work-experiences
HEADER
X-TenantID: [[tenantid]]
Authorization: Bearer [[accesstoken]]
📝Notes To find out [[baseurl]], And [[tenantid]], You can learn about it on the page Integration Credential. And for [[accesstoken]] can be studied on the page Authorization Token.
BODY PAYLOAD (JSON)
{
"employeeNo": "0821060",
"employerName": "Agung Sedayu Group",
"position": "Talent Acquisition Staff",
"typeOfBusiness": "Property Developee",
"startDate": "2020-10-01",
"endDate": "2021-08-03",
"active": true
}
CONSUME VIA CURL
curl --location --request POST '[[baseurl]]/api/integration/v1/employee/work-experiences'
--header 'X-TenantID: [[tenantid]]'
--header 'Authorization: Bearer [[accesstoken]]'
--header 'Content-Type: application/json'
--data-raw '{
"employeeNo": "0821060",
"employerName": "Agung Sedayu Group",
"position": "Talent Acquisition Staff",
"typeOfBusiness": "Property Developee",
"startDate": "2020-10-01",
"endDate": "2021-08-03",
"active": true
}'
API Response :
{
"message": "Create Data Successfully",
"error": false
}
2. GET
- Get detail Employee Work Experiences with employeeNo parameter
Objective : To get detailed work experience owned by employees with employee parameters
Method : GET
API Endpoint : [[baseurl]]/api/integration/v1/employee/work-experiences?active=[[value]]&employeeNo=[[employeenumber]]
📝Notes Parameter [[value]] filled with “true” If the employee's data is active or “false” If the employee's data is not active. And parameters [[employeenumber]] Filled with the desired employee number.
HEADER
X-TenantID: [[tenantid]]
Authorization: Bearer [[accesstoken]]
CONSUME VIA CURL
curl --location --request GET '[[baseurl]]/api/integration/v1/employee/work-experiences?active=[[value]]&employeeNo=[[employeenumber]]'
--header 'X-TenantID: [[tenantid]]'
--header 'Authorization: Bearer [[accesstoken]]'
📝Notes To find out [[baseurl]], And [[tenantid]], You can learn about it on the page Integration Credential. And for [[accesstoken]] can be studied on the page Authorization Token.
API Response :
[
{
"employeeId": "eba2b46b-929c-11eb-97ce-0adbcc9eaaa8",
"employeeNo": "1219003",
"details": [
{
"id": "bb774d45-99e9-4f43-bc8d-9c6967ce88eb",
"employerName": "TEst",
"position": "TRACE Global Anti-Bribery Compliance Course for Intermediaries",
"typeOfBusiness": null,
"startDate": "2021-04-09",
"endDate": null,
"active": false
}
]
}
]