Humanity
App · 29 actions
Manage employees, locations, positions, the shift schedule and leave requests in Humanity.
Actions
| Action | What it does |
|---|---|
| Approve a leave request | Approve a leave request. |
| Create a leave request | Request leave for an employee, for whole days or some hours. |
| Create a location | Create a location or a remote site. |
| Create a position | Create a position. |
| Create a shift | Add a shift to the schedule. |
| Create an employee | Add an employee. |
| Delete a leave request | Delete a leave request. |
| Delete a location | Delete a location or remote site. |
| Delete a position | Delete a position. |
| Delete a shift | Delete a shift from the schedule. |
| Delete an employee | Delete an employee's account. |
| Get a leave request | Get a leave request. |
| Get a location | Get a location's details. |
| Get a position | Get a position's details. |
| Get a shift | Get a shift's details. |
| Get an employee | Get an employee's details. |
| Get my account | Get the Humanity account the connection signs in as. |
| List employees | List employees, optionally only those at a location or in a position. |
| List leave requests | List leave requests in a date range. |
| List leave types | List the leave types, such as vacation or sick leave. |
| List locations | List locations and remote sites. |
| List positions | List positions, the roles shifts are scheduled in. |
| List shifts | List shifts in a date range. |
| List skills | List the skills employees can have. |
| Reject a leave request | Reject a leave request. |
| Update a location | Change a location's details. |
| Update a position | Change a position. |
| Update a shift | Change a shift, or assign or remove employees. |
| Update an employee | Change an employee's details. |
Approve a leave request
Approve a leave request.
Inputs
- Leave request ID
leave_idnumberRequired - The ID of the leave request to approve.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": {
"admin": "example",
"approved_on": "example",
"comments": "example",
"date": "example",
"employee": {
"id": "example",
"name": "example"
},
"end_day": {
"date": "example",
"formatted": "example",
"iso8601": "example",
"time": "example",
"timestamp": 1
},
"id": "example",
"leave_type": "example",
"notes": "example",
"requested_on": {
"date": "example",
"formatted": "example",
"iso8601": "example",
"time": "example",
"timestamp": 1
},
"start_day": {
"date": "example",
"formatted": "example",
"iso8601": "example",
"time": "example",
"timestamp": 1
},
"status": "example",
"user": "example"
},
"status": 1
}
}Create a leave request
Request leave for an employee, for whole days or some hours.
Inputs
- Employee
employee_idnumberRequired - The employee taking leave.
- Leave type
leave_type_idnumberRequired - The type of leave.
- Start date
start_datedateRequired - The first day of the leave.
- End date
end_datedateRequired - The last day of the leave.
- Part of the day
is_hourlytrue/false - Whether the leave is for some hours rather than whole days.
- Start time
leave_starttext - For leave of some hours, when it starts, as 24-hour HH:MM.
- End time
leave_endtext - For leave of some hours, when it ends, as 24-hour HH:MM.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": {
"admin": "example",
"approved_on": "example",
"comments": "example",
"date": "example",
"employee": {
"id": "example",
"name": "example"
},
"end_day": {
"date": "example",
"formatted": "example",
"iso8601": "example",
"time": "example",
"timestamp": 1
},
"id": "example",
"leave_type": "example",
"notes": "example",
"requested_on": {
"date": "example",
"formatted": "example",
"iso8601": "example",
"time": "example",
"timestamp": 1
},
"start_day": {
"date": "example",
"formatted": "example",
"iso8601": "example",
"time": "example",
"timestamp": 1
},
"status": "example",
"user": "example"
},
"status": 1
}
}Create a location
Create a location or a remote site.
Inputs
- Name
nametextRequired - The location's name.
- Type
typetextRequired - A location where staff are scheduled, or a remote site where they work.One of:
location,remote_site(Remote site). - Address
addresstext - The location's address.
- Country
countrytext - The location's two-letter country code, such as US or NL.
- Copy positions from
copy_location_idnumber - Another location whose positions the new one gets.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": {
"address": "example",
"country": "example",
"id": "example",
"lat": 1.0,
"lon": 1.0,
"map": "example",
"name": "example",
"notes": "example",
"timezone_id": "example",
"type": "example"
},
"status": 1
}
}Create a position
Create a position.
Inputs
- Name
nametextRequired - The position's name.
- Location
location_idnumber - The location the position belongs to.
- Active
activetrue/false - Whether the position can be scheduled.
- Visible to staff
visibletrue/false - Whether staff can see the position's schedule.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": {
"color": "example",
"end_time": {
"id": "example",
"time": "example"
},
"id": "example",
"job_code": "example",
"location": {
"id": "example",
"name": "example"
},
"name": "example",
"start_time": {
"id": "example",
"time": "example"
},
"visible": "example"
},
"status": 1
}
}Create a shift
Add a shift to the schedule.
Inputs
- Position
position_idnumberRequired - The position the shift is in.
- Start date
start_datedateRequired - The day the shift starts.
- Start time
shift_starttextRequired - When the shift starts, as 24-hour HH:MM such as 09:00.
- End date
end_datedateRequired - The day the shift ends.
- End time
shift_endtextRequired - When the shift ends, as 24-hour HH:MM such as 17:00.
- Title
titletext - A title for the shift.
- Notes
notestext - Notes on the shift that staff can see.
- Staff needed
needednumber - How many staff the shift needs.At least 0.
- Shift type
shift_typetext - A standard shift, or an open shift staff can pick up.One of:
standard,open. - Employees
employee_idslist - The employees to assign.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": {
"confirmed": "example",
"created": "example",
"edited": "example",
"employees": [],
"end_date": {
"date": "example",
"formatted": "example",
"iso8601": "example",
"time": "example",
"timestamp": 1
},
"end_timestamp": "example",
"id": "example",
"length": 1.0,
"location": "example",
"needed": "example",
"notes": "example",
"published": "example",
"schedule": "example",
"schedule_name": "example",
"start_date": {
"date": "example",
"formatted": "example",
"iso8601": "example",
"time": "example",
"timestamp": 1
},
"start_timestamp": "example",
"title": "example",
"type": "example",
"working": "example"
},
"status": 1
}
}Create an employee
Add an employee.
Inputs
- First name
first_nametextRequired - The employee's first name.
- Last name
last_nametextRequired - The employee's last name.
- Email
emailtext - The employee's email address.
- Mobile phone
cell_phonetext - The employee's mobile number.
- Home phone
home_phonetext - The employee's home phone number.
- Employee ID
eidtext - Your own ID for the employee, such as their payroll number.
- Job title
job_titletext - The employee's job title.
- Permission level
grouptext - What the employee can do in Humanity, from manager to schedule viewer.One of:
manager,supervisor,scheduler,employee,accountant,schedule_viewer(Schedule viewer). - Location
location_idnumber - The employee's location.
- Address
addresstext - The employee's street address.
- City
citytext - The employee's city.
- State
statetext - The employee's state or region.
- Postcode
ziptext - The employee's postcode or ZIP code.
- Start date
work_start_datedate - The day the employee started work.
- Notes
notestext - Notes about the employee.
- Positions
position_idslist - The positions the employee can be scheduled in.
- Send activation email
send_activationtrue/false - Whether to email the employee an invitation to activate their account.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": {
"address": "example",
"cell_phone": "example",
"city": "example",
"eid": "example",
"email": "example",
"firstname": "example",
"group": "example",
"group_name": "example",
"home_phone": "example",
"id": "example",
"last_active": "example",
"lastname": "example",
"location": "example",
"name": "example",
"nick_name": "example",
"notes": "example",
"registered": "example",
"schedules": {},
"skills": {},
"state": "example",
"status": "example",
"status_name": "example",
"timezone_name": "example",
"username": "example",
"work_start_date": "example",
"zip": "example"
},
"status": 1
}
}Delete a leave request
Delete a leave request.
Inputs
- Leave request ID
leave_idnumberRequired - The ID of the leave request to delete.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": "example",
"status": 1
}
}Delete a location
Delete a location or remote site.
Inputs
- Location
location_idnumberRequired - The location to delete.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": "example",
"status": 1
}
}Delete a position
Delete a position.
Inputs
- Position
position_idnumberRequired - The position to delete.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": "example",
"status": 1
}
}Delete a shift
Delete a shift from the schedule.
Inputs
- Shift ID
shift_idnumberRequired - The ID of the shift to delete.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": "example",
"status": 1
}
}Delete an employee
Delete an employee's account.
Inputs
- Employee
employee_idnumberRequired - The employee to delete.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": "example",
"status": 1
}
}Get a leave request
Get a leave request.
Inputs
- Leave request ID
leave_idnumberRequired - The ID of the leave request.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": {
"admin": "example",
"approved_on": "example",
"comments": "example",
"date": "example",
"employee": {
"id": "example",
"name": "example"
},
"end_day": {
"date": "example",
"formatted": "example",
"iso8601": "example",
"time": "example",
"timestamp": 1
},
"id": "example",
"leave_type": "example",
"notes": "example",
"requested_on": {
"date": "example",
"formatted": "example",
"iso8601": "example",
"time": "example",
"timestamp": 1
},
"start_day": {
"date": "example",
"formatted": "example",
"iso8601": "example",
"time": "example",
"timestamp": 1
},
"status": "example",
"user": "example"
},
"status": 1
}
}Get a location
Get a location's details.
Inputs
- Location
location_idnumberRequired - The location to get.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": {
"address": "example",
"country": "example",
"id": "example",
"lat": 1.0,
"lon": 1.0,
"map": "example",
"name": "example",
"notes": "example",
"timezone_id": "example",
"type": "example"
},
"status": 1
}
}Get a position
Get a position's details.
Inputs
- Position
position_idnumberRequired - The position to get.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": {
"color": "example",
"end_time": {
"id": "example",
"time": "example"
},
"id": "example",
"job_code": "example",
"location": {
"id": "example",
"name": "example"
},
"name": "example",
"start_time": {
"id": "example",
"time": "example"
},
"visible": "example"
},
"status": 1
}
}Get a shift
Get a shift's details.
Inputs
- Shift ID
shift_idnumberRequired - The ID of the shift.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": {
"confirmed": "example",
"created": "example",
"edited": "example",
"employees": [],
"end_date": {
"date": "example",
"formatted": "example",
"iso8601": "example",
"time": "example",
"timestamp": 1
},
"end_timestamp": "example",
"id": "example",
"length": 1.0,
"location": "example",
"needed": "example",
"notes": "example",
"published": "example",
"schedule": "example",
"schedule_name": "example",
"start_date": {
"date": "example",
"formatted": "example",
"iso8601": "example",
"time": "example",
"timestamp": 1
},
"start_timestamp": "example",
"title": "example",
"type": "example",
"working": "example"
},
"status": 1
}
}Get an employee
Get an employee's details.
Inputs
- Employee
employee_idnumberRequired - The employee to get.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": {
"address": "example",
"cell_phone": "example",
"city": "example",
"eid": "example",
"email": "example",
"firstname": "example",
"group": "example",
"group_name": "example",
"home_phone": "example",
"id": "example",
"last_active": "example",
"lastname": "example",
"location": "example",
"name": "example",
"nick_name": "example",
"notes": "example",
"registered": "example",
"schedules": {},
"skills": {},
"state": "example",
"status": "example",
"status_name": "example",
"timezone_name": "example",
"username": "example",
"work_start_date": "example",
"zip": "example"
},
"status": 1
}
}Get my account
Get the Humanity account the connection signs in as.
Inputs
None.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": {
"address": "example",
"cell_phone": "example",
"city": "example",
"eid": "example",
"email": "example",
"firstname": "example",
"group": "example",
"group_name": "example",
"home_phone": "example",
"id": "example",
"last_active": "example",
"lastname": "example",
"location": "example",
"name": "example",
"nick_name": "example",
"notes": "example",
"registered": "example",
"schedules": {},
"skills": {},
"state": "example",
"status": "example",
"status_name": "example",
"timezone_name": "example",
"username": "example",
"work_start_date": "example",
"zip": "example"
},
"status": 1
}
}List employees
List employees, optionally only those at a location or in a position.
Inputs
- Location
location_idnumber - Only employees at this location.
- Position
position_idnumber - Only employees in this position.
- Disabled employees only
include_disabledtrue/false - Return disabled employees instead.
- Inactive employees only
include_inactivetrue/false - Return employees who haven't activated their account instead.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": [],
"status": 1
}
}List leave requests
List leave requests in a date range.
Inputs
- Start date
start_datedate - The first day to look in.
- End date
end_datedate - The last day to look in.
- View
modetext - Which requests to list: those you manage, your own, upcoming ones, or every request.One of:
manage,requested,upcoming,all_requested(All requested). - Employee
employee_idnumber - Only this employee's requests.
- Page
pagenumber - Which page of up to 100 requests to return, starting at 1.At least 1.
- Limit
limitnumber - How many requests to return per page, at most 100.From 1 to 100.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": [],
"status": 1
}
}List leave types
List the leave types, such as vacation or sick leave.
Inputs
None.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": [],
"status": 1
}
}List locations
List locations and remote sites.
Inputs
- Type
typetext - Only locations or only remote sites.One of:
location,remote_site(Remote site).
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": [],
"status": 1
}
}List positions
List positions, the roles shifts are scheduled in.
Inputs
None.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": [],
"status": 1
}
}List shifts
List shifts in a date range.
Inputs
- Start date
start_datedate - The first day to look in.
- End date
end_datedate - The last day to look in.
- View
modetext - Which shifts to list: overview is every shift; employee is only yours; open is unfilled shifts; upcoming and recent are an employee's next or last shifts.One of:
overview,location,schedule,employees,employee,open,openapproval,confirm,onnow,late,upcoming,recent. Default:overview. - Positions
position_idslist - Only shifts in these positions, for the location, schedule, employees and confirm views.
- Employees
employee_idslist - Only these employees' shifts, for the employees and confirm views.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": [],
"status": 1
}
}List skills
List the skills employees can have.
Inputs
None.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": [],
"status": 1
}
}Reject a leave request
Reject a leave request.
Inputs
- Leave request ID
leave_idnumberRequired - The ID of the leave request to reject.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": {
"admin": "example",
"approved_on": "example",
"comments": "example",
"date": "example",
"employee": {
"id": "example",
"name": "example"
},
"end_day": {
"date": "example",
"formatted": "example",
"iso8601": "example",
"time": "example",
"timestamp": 1
},
"id": "example",
"leave_type": "example",
"notes": "example",
"requested_on": {
"date": "example",
"formatted": "example",
"iso8601": "example",
"time": "example",
"timestamp": 1
},
"start_day": {
"date": "example",
"formatted": "example",
"iso8601": "example",
"time": "example",
"timestamp": 1
},
"status": "example",
"user": "example"
},
"status": 1
}
}Update a location
Change a location's details.
Inputs
- Location
location_idnumberRequired - The location to update.
- Name
nametextRequired - The location's name.
- Address
addresstext - The location's address.
- Country
countrytext - The location's two-letter country code.
- Phone number
phone_numbertext - The location's phone number.
- Notes
notestext - Notes about the location.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": {
"address": "example",
"country": "example",
"id": "example",
"lat": 1.0,
"lon": 1.0,
"map": "example",
"name": "example",
"notes": "example",
"timezone_id": "example",
"type": "example"
},
"status": 1
}
}Update a position
Change a position. Only the fields you fill in are changed.
Inputs
- Position
position_idnumberRequired - The position to update.
- Name
nametext - The position's name.
- Location
location_idnumber - The location the position belongs to.
- Active
activetrue/false - Whether the position can be scheduled.
- Visible to staff
visibletrue/false - Whether staff can see the position's schedule.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": {
"color": "example",
"end_time": {
"id": "example",
"time": "example"
},
"id": "example",
"job_code": "example",
"location": {
"id": "example",
"name": "example"
},
"name": "example",
"start_time": {
"id": "example",
"time": "example"
},
"visible": "example"
},
"status": 1
}
}Update a shift
Change a shift, or assign or remove employees.
Inputs
- Shift ID
shift_idnumberRequired - The ID of the shift to update.
- Position
position_idnumber - The position the shift is in. Leave empty to keep it.
- Start date
start_datedate - The day the shift starts. Leave empty to keep it.
- Start time
shift_starttext - When the shift starts, as 24-hour HH:MM such as 09:00. Leave empty to keep it.
- End date
end_datedate - The day the shift ends. Leave empty to keep it.
- End time
shift_endtext - When the shift ends, as 24-hour HH:MM such as 17:00. Leave empty to keep it.
- Title
titletext - A title for the shift.
- Notes
notestext - Notes on the shift that staff can see.
- Staff needed
needednumber - How many staff the shift needs.At least 0.
- Shift type
shift_typetext - A standard shift, or an open shift staff can pick up.One of:
standard,open. - Add employees
add_employee_idslist - Employees to assign to the shift.
- Remove employees
remove_employee_idslist - Employees to take off the shift.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": {
"confirmed": "example",
"created": "example",
"edited": "example",
"employees": [],
"end_date": {
"date": "example",
"formatted": "example",
"iso8601": "example",
"time": "example",
"timestamp": 1
},
"end_timestamp": "example",
"id": "example",
"length": 1.0,
"location": "example",
"needed": "example",
"notes": "example",
"published": "example",
"schedule": "example",
"schedule_name": "example",
"start_date": {
"date": "example",
"formatted": "example",
"iso8601": "example",
"time": "example",
"timestamp": 1
},
"start_timestamp": "example",
"title": "example",
"type": "example",
"working": "example"
},
"status": 1
}
}Update an employee
Change an employee's details. Only the fields you fill in are changed.
Inputs
- Employee
employee_idnumberRequired - The employee to update.
- First name
first_nametext - The employee's first name.
- Last name
last_nametext - The employee's last name.
- Email
emailtext - The employee's email address.
- Mobile phone
cell_phonetext - The employee's mobile number.
- Home phone
home_phonetext - The employee's home phone number.
- Employee ID
eidtext - Your own ID for the employee, such as their payroll number.
- Job title
job_titletext - The employee's job title.
- Permission level
grouptext - What the employee can do in Humanity, from manager to schedule viewer.One of:
manager,supervisor,scheduler,employee,accountant,schedule_viewer(Schedule viewer). - Location
location_idnumber - The employee's location.
- Address
addresstext - The employee's street address.
- City
citytext - The employee's city.
- State
statetext - The employee's state or region.
- Postcode
ziptext - The employee's postcode or ZIP code.
- Start date
work_start_datedate - The day the employee started work.
- Notes
notestext - Notes about the employee.
- Add positions
add_position_idslist - Positions to assign the employee to.
- Remove positions
remove_position_idslist - Positions to take the employee off.
- Status
statustext - Whether the employee's account is active.One of:
activated,deactivated,disabled.
Outputs
dataobject- The response from Humanity.
Example output
{
"data": {
"data": {
"address": "example",
"cell_phone": "example",
"city": "example",
"eid": "example",
"email": "example",
"firstname": "example",
"group": "example",
"group_name": "example",
"home_phone": "example",
"id": "example",
"last_active": "example",
"lastname": "example",
"location": "example",
"name": "example",
"nick_name": "example",
"notes": "example",
"registered": "example",
"schedules": {},
"skills": {},
"state": "example",
"status": "example",
"status_name": "example",
"timezone_name": "example",
"username": "example",
"work_start_date": "example",
"zip": "example"
},
"status": 1
}
}