Employees
List employees
Changed onHandle HTTP requests regarding Customers.
get/employees
Request
- Base URLhttps://hurma.work/api/v1
- Authnone declared. Required headers: token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
statusinteger
7 - employees on a probationary period, 8 - current and fired employees, 9 - current employees (including employees on probation)
emailstring
started_work_fromstring
Format Y-m-d
started_work_tostring
Format Y-m-d
finished_work_fromstring
Format Y-m-d
finished_work_tostring
Format Y-m-d
pageinteger
per_pageinteger
Headers
tokenstring required
Api token
Response
ОК
Example response
{
"result": {
"current_page": 1,
"data": [
{
"id": "Yu",
"name": "John Smith",
"email": "Employee@email.com",
"position": "HR"
}
],
"first_page_url": "https://hurma.work/api/path?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://hurma.work/api/path?page=1",
"next_page_url": "https://hurma.work/api/path?page=1",
"path": "https://hurma.work/api/path",
"per_page": 12,
"to": 4,
"total": 4
},
"code": 200
}Changes
- info
api operation id
1dce49c8aac6c9a42fcfcc681935049dwas added - info
added the new optional
queryrequest parameteremail - info
added the new optional
queryrequest parameterfinished_work_from - info
added the new optional
queryrequest parameterfinished_work_to - info
added the new optional
queryrequest parameterstarted_work_from - info
added the new optional
queryrequest parameterstarted_work_to - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status
- info