VERSION: 4.0, DEPRECATED: NO
POSTcreate
Params
Nested object(s)[]
curl --location --request POST "{{ROOT}}user/create/" \ -H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \ --data '{"staff_code": "sample","title": "sample","first_name": "sample","middle_name": "sample","last_name": "sample","user_type_id": "100","default_view_type_id": "1","default_view_id": "123456","default_sorting_id": "0","department_id": "123456","approver_id": "123456","notifier_2_id": "123456","notifier_3_id": "123456","email_contact": "sample","password": "sample","email_type_id": "0","allowance_type_id": "0","status_id": "0","work_telephone": "sample","mobile_telephone": "sample","active_directory_username": "sample","allowances": [{"start_date":,"opening":,"remaining":},{"start_date":,"opening":,"remaining":}]}'
[ { "object_name":"user_id", "type":"Int32", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"image_url_small", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"image_url_large", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }]
POSTretrieve
curl --location --request POST "{{ROOT}}user/retrieve/" \ -H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \ --data '{"map_type_id": "0","map_id": "123456","last_name": "sample","status_id": "0"}'
[ { "object_name":"user_id", "type":"Int32", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"status_id", "type":"custom", "is_nullable":false, "nest":null, "custom":[ { "name":"disabled", "value":"0" }, { "name":"active", "value":"1" }] "note": }, { "object_name":"staff_code", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"title", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"first_name", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"last_name", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"email_contact", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"email_type_id", "type":"custom", "is_nullable":false, "nest":null, "custom":[ { "name":"none", "value":"0" }, { "name":"text", "value":"1" }, { "name":"html", "value":"2" }] "note": }, { "object_name":"approver_id", "type":"Int32", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"approver_first_name", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"approver_last_name", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"department_id", "type":"Int32", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"department_name", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"user_type_id", "type":"custom", "is_nullable":false, "nest":null, "custom":[ { "name":"staff", "value":"100" }, { "name":"approver", "value":"200" }, { "name":"approver plus add", "value":"210" }, { "name":"approver plus add edit cancel", "value":"220" }, { "name":"superuser", "value":"300" }, { "name":"poweruser", "value":"310" }] "note": }, { "object_name":"notifier_2_id", "type":"Int32", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"notifier_3_id", "type":"Int32", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"allowance_type_id", "type":"custom", "is_nullable":false, "nest":null, "custom":[ { "name":"days", "value":"0" }, { "name":"hours", "value":"1" }] "note": }, { "object_name":"this_year_remaining", "type":"[Int32]", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"next_year_remaining", "type":"[Int32]", "is_nullable":false, "nest":null, "custom":null "note": }]
GETget by id
Sample call: {root}/v4/user/get-by-id/12345678
curl --location --request GET "{{ROOT}}user/get-by-id/12345678-H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \
[ { "object_name":"user_id", "type":"[Int32]", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"status_id", "type":"custom", "is_nullable":false, "nest":null, "custom":[ { "name":"disabled", "value":"0" }, { "name":"active", "value":"1" }] "note": }, { "object_name":"staff_code", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"title", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"first_name", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"middle_name", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"last_name", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"user_type_id", "type":"custom", "is_nullable":false, "nest":null, "custom":[ { "name":"staff", "value":"100" }, { "name":"approver", "value":"200" }, { "name":"approver plus add", "value":"210" }, { "name":"approver plus add edit cancel", "value":"220" }, { "name":"superuser", "value":"300" }, { "name":"poweruser", "value":"310" }] "note": }, { "object_name":"default_view_type_id", "type":"custom", "is_nullable":false, "nest":null, "custom":[ { "name":"department", "value":"1" }, { "name":"tag", "value":"2" }] "note": }, { "object_name":"default_view_id", "type":"[Int32]", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"default_sorting_id", "type":"[Byte]", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"department_id", "type":"[Int32]", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"approver_id", "type":"[Int32]", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"email_contact", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"notifier_2_id", "type":"[Int32]", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"notifier_3_id", "type":"[Int32]", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"email_type_id", "type":"custom", "is_nullable":false, "nest":null, "custom":[ { "name":"none", "value":"0" }, { "name":"text", "value":"1" }, { "name":"html", "value":"2" }] "note": }, { "object_name":"allowance_type_id", "type":"custom", "is_nullable":false, "nest":null, "custom":[ { "name":"days", "value":"0" }, { "name":"hours", "value":"1" }] "note": }, { "object_name":"active_directory_username", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"employment_started_date", "type":"Date", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"employment_ended_date", "type":"Date", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"work_telephone", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"mobile_telephone", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"last_logins", "type":"NESTED", "is_nullable":false, "nest":[ { "object_name":"login_date", "type":"DateTime", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"device", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }], "custom":null "note": }, { "object_name":"image_url_small", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"image_url_large", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"google_unique_id", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }]
GETget my details
Sample call: {root}/v4/user/get-my-details
curl --location --request GET "{{ROOT}}user/get-my-details/-H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \
PUTupdate
curl --location --request PUT "{{ROOT}}user/update/" \ -H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \ --data '{"user_id": "123456","staff_code": "sample","title": "sample","first_name": "sample","middle_name": "sample","last_name": "sample","user_type_id": "100","default_view_type_id": "1","default_view_id": "123456","default_sorting_id": "0","department_id": "123456","approver_id": "123456","notifier_2_id": "123456","notifier_3_id": "123456","email_contact": "sample","password": "sample","email_type_id": "0","status_id": "0","work_telephone": "sample","mobile_telephone": "sample","active_directory_username": "sample"}'
DELETEdel
Sample call: {root}/v4/user/del/12345678
curl --location --request DELETE "{{ROOT}}user/del/12345678-H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \
Standard response object returned, see API Overview for structure.
[]
GETget approvers
Sample call: {root}/v4/user/get-approvers
curl --location --request GET "{{ROOT}}user/get-approvers/-H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \
[ { "object_name":"user_id", "type":"Int32", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"first_name", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"last_name", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"user_type_id", "type":"custom", "is_nullable":false, "nest":null, "custom":[ { "name":"staff", "value":"100" }, { "name":"approver", "value":"200" }, { "name":"approver plus add", "value":"210" }, { "name":"approver plus add edit cancel", "value":"220" }, { "name":"superuser", "value":"300" }, { "name":"poweruser", "value":"310" }] "note": }, { "object_name":"email_contact", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }]
POSTmy staff
curl --location --request POST "{{ROOT}}user/my-staff/" \ -H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \ --data '{"staff_filter": "0"}'
[ { "object_name":"staff_overview", "type":"NESTED", "is_nullable":false, "nest":[ { "object_name":"user_id", "type":"Int32", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"first_name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"last_name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"pending_request", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"allowance_type_id_this_year", "type":"[Byte]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"opening_this_year", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"remaining_this_year", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"carryover_opening_this_year", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"carryover_remaining_this_year", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"allowance_type_id_next_year", "type":"[Byte]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"opening_next_year", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"remaining_next_year", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"carryover_opening_next_year", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"carryover_remaining_next_year", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }], "custom":null "note": }, { "object_name":"overview", "type":"NESTED", "is_nullable":false, "nest":[ { "object_name":"staff_total", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"staff_with_leave_total", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"absence_record_total", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_popular_leave_type_name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_popular_leave_type_total", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_occurrences_first_name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_occurrences_last_name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_occurrences_total", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_accumulated_days_first_name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_accumulated_days_last_name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_accumulated_days_total", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_accumulated_hours_first_name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_accumulated_hours_last_name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_accumulated_hours_total", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"longest_absence_days_first_name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"longest_absence_days_last_name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"longest_absence_days_total", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"longest_absence_hours_first_name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"longest_absence_hours_last_name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"longest_absence_hours_total", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }], "custom":null "note": }, { "object_name":"leave_type_overview", "type":"NESTED", "is_nullable":false, "nest":[ { "object_name":"code", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"colour", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"occurrences_total", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_occurrences_total", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_occurrences_first_name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_occurrences_last_name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_days_first_name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_days_last_name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_days_duration", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_hours_first_name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_hours_last_name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"most_hours_duration", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }], "custom":null "note": }, { "object_name":"breakdown_by_leave_type", "type":"NESTED", "is_nullable":false, "nest":[ { "object_name":"occurrences", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"name", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"colour", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }], "custom":null "note": }, { "object_name":"occurrences_by_duration", "type":"NESTED", "is_nullable":false, "nest":[ { "object_name":"time_span", "type":"String", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"occurrences", "type":"[Int32]", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"order_by", "type":"[Byte]", "is_nullable":False, "nest":null, "custom":null "note":"", }], "custom":null "note": }]
INSTANTLY REDUCE TIME SPENT ON LEAVE MANAGEMENT
Start Your Free Trial