v1
latestOpenAPI 3.0.02026-07-14800227.2 KBReturn a list of employee works.
This endpoint returns a list with the work sections of the existing employees. Additionally, custom fields from this section will also be included.
Query parameters
The company id of the Kenjo employee.
The office id of the Kenjo employee.
The department id of the Kenjo employee.
The starting date of the Kenjo employee in format YYYY-MM-DDThh:mm:ss.
The job title of the employee.
The work phone of the employee.
The work mobile of the employee.
Allow to indicate if the employee has or not the assistant role.
The probation period of the employee. Format YYYY-MM-DDThh:mm:ss.000Z.
The contract end date of the employee. Format YYYY-MM-DDThh:00:00.000Z.
The Kenjo employee id of the user to whom the employee reports. The employee id to assign can be an active or inactive user. Trying to assign the own employee id or the id of someone who is already reporting will arise an error.
Headers
A valid bearer token.
Response
OK
Example response
{
"data": [
{
"_id": "10a2db290da29e126a18789a",
"companyId": "80a2db290da29e126a18789a",
"officeId": "80a2db290da29e126a18789b",
"departmentId": "80a2db290da29e126a18789c",
"areaIds": [
"68370faa00aab31dedd4c35f",
"68370f9400aab31dedd4c358"
],
"teamIds": [
"68370faa00aab31dedd4c35f",
"68370f9400aab31dedd4c358"
],
"startDate": "2020-07-01T00:00:00.000Z",
"jobTitle": "Actor",
"workPhone": "+34 657 89 76 52",
"workMobile": "+34 656 89 76 52",
"isAssistant": false,
"probationPeriodEnd": "2022-06-01T00:00:00.000Z",
"timeOffApproverId": "50a2db290da29e126a1878523",
"contractEnd": "2030-06-01T00:00:00.000Z",
"reportsToId": "50a2db290da29e126a1878523"
},
{
"_id": "20a2db290da29e126a18789a",
"companyId": "80a2db290da29e126a18789a",
"officeId": "80a2db290da29e126a18789b",
"departmentId": "80a2db290da29e126a18789c",
"areaIds": [
"68370faa00aab31dedd4c35f",
"68370f9400aab31dedd4c358"
],
"teamIds": [
"68370faa00aab31dedd4c35f"
],
"startDate": "2021-01-01T00:00:00.000Z",
"jobTitle": "Director",
"workPhone": "+34 657 89 76 52",
"workMobile": "+34 656 89 76 52",
"isAssistant": true,
"probationPeriodEnd": "2022-06-01T00:00:00.000Z",
"timeOffApproverId": "50a2db290da29e126a1878523",
"reportsToId": "50a2db290da29e126a1878523"
},
{
"_id": "30a2db290da29e126a18789a",
"companyId": "80a2db290da29e126a18789a",
"officeId": "80a2db290da29e126a18789b",
"departmentId": "80a2db290da29e126a18789c",
"areaIds": [
"68370f9400aab31dedd4c358"
],
"teamIds": [
"68370f9400aab31dedd4c358"
],
"startDate": "2021-07-01T00:00:00.000Z",
"jobTitle": "Musician",
"workPhone": "+34 658 89 76 52",
"workMobile": "+34 659 89 76 52",
"isAssistant": false,
"probationPeriodEnd": "2022-06-01T00:00:00.000Z",
"reportsToId": "50a2db290da29e126a1878527"
}
]
}