Humanity

App · 29 actions

Manage employees, locations, positions, the shift schedule and leave requests in Humanity.

Actions

ActionWhat it does
Approve a leave requestApprove a leave request.
Create a leave requestRequest leave for an employee, for whole days or some hours.
Create a locationCreate a location or a remote site.
Create a positionCreate a position.
Create a shiftAdd a shift to the schedule.
Create an employeeAdd an employee.
Delete a leave requestDelete a leave request.
Delete a locationDelete a location or remote site.
Delete a positionDelete a position.
Delete a shiftDelete a shift from the schedule.
Delete an employeeDelete an employee's account.
Get a leave requestGet a leave request.
Get a locationGet a location's details.
Get a positionGet a position's details.
Get a shiftGet a shift's details.
Get an employeeGet an employee's details.
Get my accountGet the Humanity account the connection signs in as.
List employeesList employees, optionally only those at a location or in a position.
List leave requestsList leave requests in a date range.
List leave typesList the leave types, such as vacation or sick leave.
List locationsList locations and remote sites.
List positionsList positions, the roles shifts are scheduled in.
List shiftsList shifts in a date range.
List skillsList the skills employees can have.
Reject a leave requestReject a leave request.
Update a locationChange a location's details.
Update a positionChange a position.
Update a shiftChange a shift, or assign or remove employees.
Update an employeeChange an employee's details.

Approve a leave request

Approve a leave request.

Inputs

Leave request IDleave_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

Employeeemployee_idnumberRequired
The employee taking leave.
Leave typeleave_type_idnumberRequired
The type of leave.
Start datestart_datedateRequired
The first day of the leave.
End dateend_datedateRequired
The last day of the leave.
Part of the dayis_hourlytrue/false
Whether the leave is for some hours rather than whole days.
Start timeleave_starttext
For leave of some hours, when it starts, as 24-hour HH:MM.
End timeleave_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

NamenametextRequired
The location's name.
TypetypetextRequired
A location where staff are scheduled, or a remote site where they work.One of: location, remote_site (Remote site).
Addressaddresstext
The location's address.
Countrycountrytext
The location's two-letter country code, such as US or NL.
Copy positions fromcopy_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

NamenametextRequired
The position's name.
Locationlocation_idnumber
The location the position belongs to.
Activeactivetrue/false
Whether the position can be scheduled.
Visible to staffvisibletrue/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

Positionposition_idnumberRequired
The position the shift is in.
Start datestart_datedateRequired
The day the shift starts.
Start timeshift_starttextRequired
When the shift starts, as 24-hour HH:MM such as 09:00.
End dateend_datedateRequired
The day the shift ends.
End timeshift_endtextRequired
When the shift ends, as 24-hour HH:MM such as 17:00.
Titletitletext
A title for the shift.
Notesnotestext
Notes on the shift that staff can see.
Staff neededneedednumber
How many staff the shift needs.At least 0.
Shift typeshift_typetext
A standard shift, or an open shift staff can pick up.One of: standard, open.
Employeesemployee_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 namefirst_nametextRequired
The employee's first name.
Last namelast_nametextRequired
The employee's last name.
Emailemailtext
The employee's email address.
Mobile phonecell_phonetext
The employee's mobile number.
Home phonehome_phonetext
The employee's home phone number.
Employee IDeidtext
Your own ID for the employee, such as their payroll number.
Job titlejob_titletext
The employee's job title.
Permission levelgrouptext
What the employee can do in Humanity, from manager to schedule viewer.One of: manager, supervisor, scheduler, employee, accountant, schedule_viewer (Schedule viewer).
Locationlocation_idnumber
The employee's location.
Addressaddresstext
The employee's street address.
Citycitytext
The employee's city.
Statestatetext
The employee's state or region.
Postcodeziptext
The employee's postcode or ZIP code.
Start datework_start_datedate
The day the employee started work.
Notesnotestext
Notes about the employee.
Positionsposition_idslist
The positions the employee can be scheduled in.
Send activation emailsend_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 IDleave_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

Locationlocation_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

Positionposition_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 IDshift_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

Employeeemployee_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 IDleave_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

Locationlocation_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

Positionposition_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 IDshift_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

Employeeemployee_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

Locationlocation_idnumber
Only employees at this location.
Positionposition_idnumber
Only employees in this position.
Disabled employees onlyinclude_disabledtrue/false
Return disabled employees instead.
Inactive employees onlyinclude_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 datestart_datedate
The first day to look in.
End dateend_datedate
The last day to look in.
Viewmodetext
Which requests to list: those you manage, your own, upcoming ones, or every request.One of: manage, requested, upcoming, all_requested (All requested).
Employeeemployee_idnumber
Only this employee's requests.
Pagepagenumber
Which page of up to 100 requests to return, starting at 1.At least 1.
Limitlimitnumber
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

Typetypetext
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 datestart_datedate
The first day to look in.
End dateend_datedate
The last day to look in.
Viewmodetext
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.
Positionsposition_idslist
Only shifts in these positions, for the location, schedule, employees and confirm views.
Employeesemployee_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 IDleave_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

Locationlocation_idnumberRequired
The location to update.
NamenametextRequired
The location's name.
Addressaddresstext
The location's address.
Countrycountrytext
The location's two-letter country code.
Phone numberphone_numbertext
The location's phone number.
Notesnotestext
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

Positionposition_idnumberRequired
The position to update.
Namenametext
The position's name.
Locationlocation_idnumber
The location the position belongs to.
Activeactivetrue/false
Whether the position can be scheduled.
Visible to staffvisibletrue/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 IDshift_idnumberRequired
The ID of the shift to update.
Positionposition_idnumber
The position the shift is in. Leave empty to keep it.
Start datestart_datedate
The day the shift starts. Leave empty to keep it.
Start timeshift_starttext
When the shift starts, as 24-hour HH:MM such as 09:00. Leave empty to keep it.
End dateend_datedate
The day the shift ends. Leave empty to keep it.
End timeshift_endtext
When the shift ends, as 24-hour HH:MM such as 17:00. Leave empty to keep it.
Titletitletext
A title for the shift.
Notesnotestext
Notes on the shift that staff can see.
Staff neededneedednumber
How many staff the shift needs.At least 0.
Shift typeshift_typetext
A standard shift, or an open shift staff can pick up.One of: standard, open.
Add employeesadd_employee_idslist
Employees to assign to the shift.
Remove employeesremove_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

Employeeemployee_idnumberRequired
The employee to update.
First namefirst_nametext
The employee's first name.
Last namelast_nametext
The employee's last name.
Emailemailtext
The employee's email address.
Mobile phonecell_phonetext
The employee's mobile number.
Home phonehome_phonetext
The employee's home phone number.
Employee IDeidtext
Your own ID for the employee, such as their payroll number.
Job titlejob_titletext
The employee's job title.
Permission levelgrouptext
What the employee can do in Humanity, from manager to schedule viewer.One of: manager, supervisor, scheduler, employee, accountant, schedule_viewer (Schedule viewer).
Locationlocation_idnumber
The employee's location.
Addressaddresstext
The employee's street address.
Citycitytext
The employee's city.
Statestatetext
The employee's state or region.
Postcodeziptext
The employee's postcode or ZIP code.
Start datework_start_datedate
The day the employee started work.
Notesnotestext
Notes about the employee.
Add positionsadd_position_idslist
Positions to assign the employee to.
Remove positionsremove_position_idslist
Positions to take the employee off.
Statusstatustext
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
  }
}

On this page