Tanda
App · 28 actions
Manage people, teams, locations, rostered shifts and leave requests in Tanda (Workforce.com).
Actions
| Action | What it does |
|---|---|
| Create a leave request | Request time off for a person. |
| Create a location | Create a location. |
| Create a rostered shift | Add a shift to the roster. |
| Create a team | Create a team at a location. |
| Create a user | Add a person to the organisation. |
| Deactivate a user | Mark a person as no longer working there. |
| Delete a leave request | Delete a leave request. |
| Delete a location | Delete a location. |
| Delete a rostered shift | Remove a shift from the roster. |
| Delete a team | Delete a team. |
| Get a leave request | Get a leave request. |
| Get a location | Get a location's details. |
| Get a rostered shift | Get a rostered shift. |
| Get a team | Get a team's details. |
| Get a user | Get a person's profile. |
| Get the current user | Get the person whose token the connection uses, with their organisation. |
| List inactive users | List people who no longer work in the organisation. |
| List leave requests | List leave requests for time off in a period. |
| List locations | List the organisation's locations. |
| List rostered shifts | List rostered shifts in a period of up to 7 days. |
| List shift details | List the shift details (labels such as duties or areas) shifts can have. |
| List teams | List the teams (departments) people are rostered in. |
| List users | List the people in the organisation, optionally filtered by name, email or location. |
| Update a leave request | Change a leave request, or approve or reject it. |
| Update a location | Change a location. |
| Update a rostered shift | Change a rostered shift. |
| Update a team | Change a team. |
| Update a user | Change a person's details. |
Create a leave request
Request time off for a person. Managers can create it already approved.
Inputs
- Person
person_idnumberRequired - The person taking the leave.
- Leave type
leave_typetextRequired - The leave type's name exactly as it appears in Tanda, such as Annual Leave.
- Start date
startdateRequired - The first day of the leave.
- End date
finishdateRequired - The last day of the leave.
- Status
statustextRequired - Whether the request is waiting, approved or rejected.One of:
pending,approved,rejected. - Hours
hoursnumber - The hours of leave. Leave empty to use the person's usual hours.At least 0.
- Reason
reasontext - The reason for the leave.
- All day
all_daytrue/false - Whether the leave covers whole days.
Outputs
dataobject- Leave model
Example output
{
"data": {
"all_day": false,
"created_at": 1,
"daily_breakdown": [],
"fallback_leave_type": "example",
"finish": "example",
"finish_time": "example",
"hours": 1.0,
"id": 1,
"leave_type": "example",
"multitagging": false,
"reason": "example",
"start": "example",
"start_time": "example",
"status": "example",
"updated_at": 1,
"user_id": 1,
"verification": "example"
}
}Create a location
Create a location.
Inputs
- Name
nametextRequired - The location's name.
- Short name
short_nametext - A short code for the location, used where space is tight.
- Address
addresstext - The location's street address.
- Time zone
time_zonetext - The location's time zone, such as Australia/Brisbane or America/Chicago.
Outputs
dataobject- Location model
Example output
{
"data": {
"address": "example",
"business_day_cutoff": 1,
"business_hours": [],
"id": 1,
"latitude": 1.0,
"longitude": 1.0,
"name": "example",
"organisation_id": 1,
"platform": {
"attributes": [],
"id": 1,
"model_id": 1,
"native_id": 1,
"updated_at": 1,
"uuid": "example"
},
"public_holiday_regions": [],
"record_id": 1,
"short_name": "example",
"specific_holiday_dates": [],
"time_zone": "example",
"updated_at": 1,
"utc_offset": 1
}
}Create a rostered shift
Add a shift to the roster. It isn't published until you publish the roster.
Inputs
- Start
startdate and timeRequired - When the shift starts.
- Finish
finishdate and time - When the shift finishes.
- Person
person_idnumber - The person rostered on. Leave empty for a vacant shift.
- Team
department_idnumber - The team the shift is for.
- Shift detail
shift_detail_idnumber - The shift detail (a label such as a duty or area) to give the shift.
- Break minutes
automatic_break_lengthnumber - The length of the shift's break in minutes.At least 0.
Outputs
dataobject- Schedule model
Example output
{
"data": {
"acceptance_status": "example",
"activities": [],
"activity_code": "example",
"activity_code_id": 1,
"activity_code_name": "example",
"automatic_break_length": 1,
"award_interpretation": [],
"breaks": [],
"cost": 1.0,
"cost_with_oncosts": 1.0,
"creation_method": "example",
"creation_platform": "example",
"department_id": 1,
"department_name": "example",
"finish": 1,
"id": 1,
"last_acknowledged_at": 1,
"last_costed_at": 1,
"last_published_at": 1,
"location_name": "example",
"needs_acceptance": false,
"oncosts_breakdown": [],
"platform": {
"attributes": [],
"id": 1,
"model_id": 1,
"native_id": 1,
"updated_at": 1,
"uuid": "example"
},
"record_id": 1,
"roster_id": 1,
"shift_detail_id": 1,
"shift_detail_name": "example",
"start": 1,
"time_zone": "example",
"updated_at": 1,
"user_id": 1,
"user_name": "example",
"utc_offset": 1
}
}Create a team
Create a team at a location.
Inputs
- Name
nametextRequired - The team's name.
- Location
location_idnumberRequired - The location the team belongs to.
- Export name
export_nametext - The name used for the team in payroll exports.
- Colour
colourtext - The team's colour on the roster, as a hex code such as #2D7FF9.
- Team group
team_grouptext - A group name to sort the team under.
- Members
person_idslist - The people in the team. This replaces the current members.
- Managers
manager_idslist - The people who manage the team. This replaces the current managers.
Outputs
dataobject- Department model
Example output
{
"data": {
"activity_codes": [],
"assisting_teams": [],
"associated_tags": [],
"colour": "example",
"export_name": "example",
"id": 1,
"location_id": 1,
"managers": [],
"name": "example",
"platform": {
"attributes": [],
"id": 1,
"model_id": 1,
"native_id": 1,
"updated_at": 1,
"uuid": "example"
},
"qualifications": [],
"record_id": 1,
"staff": [],
"team_group": "example",
"tracking_categories": [],
"updated_at": 1
}
}Create a user
Add a person to the organisation.
Inputs
- Name
nametextRequired - The name the person goes by.
- Legal first name
legal_first_nametext - The person's legal first name.
- Legal last name
legal_last_nametext - The person's legal last name.
- Email
emailtext - The person's email address.
- Phone
phonetext - The person's phone number.
- Employee ID
employee_idtext - The person's employee ID in other systems, such as payroll.
- Date of birth
date_of_birthdate - The person's date of birth.
- Employment start date
employment_start_datedate - The day the person started work.
- Teams
department_idslist - The teams the person works in.
- Default team
report_department_idnumber - The person's default team.
- Teams they manage
managed_department_idslist - The teams the person manages, which makes them a manager.
- Contracted weekly hours
contracted_weekly_hoursnumber - The hours a week the person is contracted to work.At least 0.
- Preferred weekly hours
preferred_hoursnumber - The hours a week the person would like to be rostered.At least 0.
Outputs
dataobject- User model
Example output
{
"data": {
"active": false,
"award_tag_ids": [],
"award_template_id": 1,
"contracted_weekly_hours": 1.0,
"created_at": 1,
"department_ids": [],
"email": "example",
"employee_id": "example",
"employment_end_date": "example",
"employment_start_date": "example",
"enable_login": false,
"id": 1,
"legal_first_name": "example",
"legal_last_name": "example",
"legal_middle_names": "example",
"managed_department_ids": [],
"name": "example",
"normalised_phone": "example",
"onboarding_status": "example",
"phone": "example",
"platform_role_ids": [],
"position_title": "example",
"preferred_hours": 1.0,
"report_department_id": 1,
"time_zone": "example",
"updated_at": 1,
"user_levels": [],
"utc_offset": 1
}
}Deactivate a user
Mark a person as no longer working there. Their records are kept.
Inputs
- User
person_idnumberRequired - The person to deactivate.
Outputs
dataobject- User model
Example output
{
"data": {
"active": false,
"award_tag_ids": [],
"award_template_id": 1,
"contracted_weekly_hours": 1.0,
"created_at": 1,
"department_ids": [],
"email": "example",
"employee_id": "example",
"employment_end_date": "example",
"employment_start_date": "example",
"enable_login": false,
"id": 1,
"legal_first_name": "example",
"legal_last_name": "example",
"legal_middle_names": "example",
"managed_department_ids": [],
"name": "example",
"normalised_phone": "example",
"onboarding_status": "example",
"phone": "example",
"platform_role_ids": [],
"position_title": "example",
"preferred_hours": 1.0,
"report_department_id": 1,
"time_zone": "example",
"updated_at": 1,
"user_levels": [],
"utc_offset": 1
}
}Delete a leave request
Delete a leave request. This can't be undone.
Inputs
- Leave request ID
leave_idnumberRequired - The ID of the leave request to delete.
Outputs
dataobject- The response from Tanda.
Example output
{
"data": {}
}Delete a location
Delete a location. A location that still has teams can't be deleted.
Inputs
- Location
location_idnumberRequired - The location to delete.
Outputs
dataobject- The response from Tanda.
Example output
{
"data": {}
}Delete a rostered shift
Remove a shift from the roster. This can't be undone.
Inputs
- Shift ID
schedule_idnumberRequired - The ID of the rostered shift to delete.
Outputs
dataobject- The response from Tanda.
Example output
{
"data": {}
}Delete a team
Delete a team. This can't be undone.
Inputs
- Team
department_idnumberRequired - The team to delete.
Outputs
dataobject- The response from Tanda.
Example output
{
"data": {}
}Get a leave request
Get a leave request.
Inputs
- Leave request ID
leave_idnumberRequired - The ID of the leave request.
Outputs
dataobject- Leave model
Example output
{
"data": {
"all_day": false,
"created_at": 1,
"daily_breakdown": [],
"fallback_leave_type": "example",
"finish": "example",
"finish_time": "example",
"hours": 1.0,
"id": 1,
"leave_type": "example",
"multitagging": false,
"reason": "example",
"start": "example",
"start_time": "example",
"status": "example",
"updated_at": 1,
"user_id": 1,
"verification": "example"
}
}Get a location
Get a location's details.
Inputs
- Location
location_idnumberRequired - The location to get.
Outputs
dataobject- Location model
Example output
{
"data": {
"address": "example",
"business_day_cutoff": 1,
"business_hours": [],
"id": 1,
"latitude": 1.0,
"longitude": 1.0,
"name": "example",
"organisation_id": 1,
"platform": {
"attributes": [],
"id": 1,
"model_id": 1,
"native_id": 1,
"updated_at": 1,
"uuid": "example"
},
"public_holiday_regions": [],
"record_id": 1,
"short_name": "example",
"specific_holiday_dates": [],
"time_zone": "example",
"updated_at": 1,
"utc_offset": 1
}
}Get a rostered shift
Get a rostered shift.
Inputs
- Shift ID
schedule_idnumberRequired - The ID of the rostered shift.
Outputs
dataobject- Schedule model
Example output
{
"data": {
"acceptance_status": "example",
"activities": [],
"activity_code": "example",
"activity_code_id": 1,
"activity_code_name": "example",
"automatic_break_length": 1,
"award_interpretation": [],
"breaks": [],
"cost": 1.0,
"cost_with_oncosts": 1.0,
"creation_method": "example",
"creation_platform": "example",
"department_id": 1,
"department_name": "example",
"finish": 1,
"id": 1,
"last_acknowledged_at": 1,
"last_costed_at": 1,
"last_published_at": 1,
"location_name": "example",
"needs_acceptance": false,
"oncosts_breakdown": [],
"platform": {
"attributes": [],
"id": 1,
"model_id": 1,
"native_id": 1,
"updated_at": 1,
"uuid": "example"
},
"record_id": 1,
"roster_id": 1,
"shift_detail_id": 1,
"shift_detail_name": "example",
"start": 1,
"time_zone": "example",
"updated_at": 1,
"user_id": 1,
"user_name": "example",
"utc_offset": 1
}
}Get a team
Get a team's details.
Inputs
- Team
department_idnumberRequired - The team to get.
Outputs
dataobject- Department model
Example output
{
"data": {
"activity_codes": [],
"assisting_teams": [],
"associated_tags": [],
"colour": "example",
"export_name": "example",
"id": 1,
"location_id": 1,
"managers": [],
"name": "example",
"platform": {
"attributes": [],
"id": 1,
"model_id": 1,
"native_id": 1,
"updated_at": 1,
"uuid": "example"
},
"qualifications": [],
"record_id": 1,
"staff": [],
"team_group": "example",
"tracking_categories": [],
"updated_at": 1
}
}Get a user
Get a person's profile.
Inputs
- User
person_idnumberRequired - The person to get.
Outputs
dataobject- User model
Example output
{
"data": {
"active": false,
"award_tag_ids": [],
"award_template_id": 1,
"contracted_weekly_hours": 1.0,
"created_at": 1,
"department_ids": [],
"email": "example",
"employee_id": "example",
"employment_end_date": "example",
"employment_start_date": "example",
"enable_login": false,
"id": 1,
"legal_first_name": "example",
"legal_last_name": "example",
"legal_middle_names": "example",
"managed_department_ids": [],
"name": "example",
"normalised_phone": "example",
"onboarding_status": "example",
"phone": "example",
"platform_role_ids": [],
"position_title": "example",
"preferred_hours": 1.0,
"report_department_id": 1,
"time_zone": "example",
"updated_at": 1,
"user_levels": [],
"utc_offset": 1
}
}Get the current user
Get the person whose token the connection uses, with their organisation.
Inputs
None.
Outputs
dataobject- CurrentUser model
Example output
{
"data": {
"address": "example",
"country": "example",
"date_of_birth": "example",
"email": "example",
"emergency_contact_name": "example",
"emergency_contact_phone": "example",
"emergency_contact_relationship": "example",
"id": 1,
"legal_first_name": "example",
"legal_last_name": "example",
"legal_middle_names": "example",
"locale": "example",
"name": "example",
"organisation": "example",
"organisation_id": 1,
"organisations": [],
"permissions": [],
"phone": "example",
"photo": "example",
"platform_role_ids": [],
"time_zone": "example",
"updated_at": 1,
"user_ids": [],
"utc_offset": 1,
"valid_subscription": false
}
}List inactive users
List people who no longer work in the organisation.
Inputs
- Page
pagenumber - Which page of results to return, starting at 1.At least 1.
- Page size
page_sizenumber - How many records to return per page, at most 100.From 1 to 100.
- Email
emailtext - Only the person with this email address.
- Name
nametext - Only people with this name.
- Changed after
updated_afterdate and time - Only people created or changed after this time.
Outputs
datalist- The response from Tanda.
Example output
{
"data": []
}List leave requests
List leave requests for time off in a period.
Inputs
- From
from_datedateRequired - The first day of the period.
- To
to_datedateRequired - The last day of the period.
- People
person_idslist - Only these people's requests.
- Include inactive people
include_inactivetrue/false - Whether to include people who no longer work there.
- Changed after
updated_afterdate and time - Only leave requests created or changed after this time.
- Page
pagenumber - Which page of results to return, starting at 1.At least 1.
- Page size
page_sizenumber - How many records to return per page, at most 100.From 1 to 100.
Outputs
datalist- The response from Tanda.
Example output
{
"data": []
}List locations
List the organisation's locations.
Inputs
- Changed after
updated_afterdate and time - Only locations created or changed after this time.
Outputs
datalist- The response from Tanda.
Example output
{
"data": []
}List rostered shifts
List rostered shifts in a period of up to 7 days.
Inputs
- From
from_datedateRequired - The first day to look in.
- To
to_datedateRequired - The last day to look in, at most 7 days after From.
- People
person_idslist - Only these people's shifts.
- Location
location_idnumber - Only shifts at this location.
- Published only
published_onlytrue/false - Whether to leave out shifts that haven't been published.
- Vacant only
show_vacant_onlytrue/false - Whether to return only shifts nobody is assigned to.
- Include names
include_namestrue/false - Whether to add the names of each shift's team and shift detail.
- Page
pagenumber - Which page of results to return, starting at 1.At least 1.
- Page size
page_sizenumber - How many records to return per page, at most 100.From 1 to 100.
Outputs
datalist- The response from Tanda.
Example output
{
"data": []
}List shift details
List the shift details (labels such as duties or areas) shifts can have.
Inputs
- Team
department_idnumber - Only shift details for this team.
Outputs
datalist- The response from Tanda.
Example output
{
"data": []
}List teams
List the teams (departments) people are rostered in.
Inputs
- Page
pagenumber - Which page of results to return, starting at 1.At least 1.
- Page size
page_sizenumber - How many records to return per page, at most 100.From 1 to 100.
- Location
location_idnumber - Only teams at this location.
- Changed after
updated_afterdate and time - Only teams created or changed after this time.
Outputs
datalist- The response from Tanda.
Example output
{
"data": []
}List users
List the people in the organisation, optionally filtered by name, email or location.
Inputs
- Page
pagenumber - Which page of results to return, starting at 1.At least 1.
- Page size
page_sizenumber - How many records to return per page, at most 100.From 1 to 100.
- Email
emailtext - Only the person with this email address.
- Name
nametext - Only people with this name. Use either this or Email, not both.
- Include inactive people
show_inactivetrue/false - Whether to include people who no longer work there.
- Location
location_idnumber - Only people in teams at this location.
- Changed after
updated_afterdate and time - Only people created or changed after this time.
Outputs
datalist- The response from Tanda.
Example output
{
"data": []
}Update a leave request
Change a leave request, or approve or reject it.
Inputs
- Leave request ID
leave_idnumberRequired - The ID of the leave request to update.
- Status
statustext - Set to approved or rejected to decide the request.One of:
pending,approved,rejected. - Leave type
leave_typetext - The leave type's name exactly as it appears in Tanda.
- Start date
startdate - The first day of the leave.
- End date
finishdate - The last day of the leave.
- Hours
hoursnumber - The hours of leave.At least 0.
- Reason
reasontext - The reason for the leave.
Outputs
dataobject- Leave model
Example output
{
"data": {
"all_day": false,
"created_at": 1,
"daily_breakdown": [],
"fallback_leave_type": "example",
"finish": "example",
"finish_time": "example",
"hours": 1.0,
"id": 1,
"leave_type": "example",
"multitagging": false,
"reason": "example",
"start": "example",
"start_time": "example",
"status": "example",
"updated_at": 1,
"user_id": 1,
"verification": "example"
}
}Update a location
Change a location. Only the fields you fill in are changed.
Inputs
- Location
location_idnumberRequired - The location to update.
- Name
nametext - The location's name.
- Short name
short_nametext - A short code for the location, used where space is tight.
- Address
addresstext - The location's street address.
- Time zone
time_zonetext - The location's time zone, such as Australia/Brisbane or America/Chicago.
Outputs
dataobject- Location model
Example output
{
"data": {
"address": "example",
"business_day_cutoff": 1,
"business_hours": [],
"id": 1,
"latitude": 1.0,
"longitude": 1.0,
"name": "example",
"organisation_id": 1,
"platform": {
"attributes": [],
"id": 1,
"model_id": 1,
"native_id": 1,
"updated_at": 1,
"uuid": "example"
},
"public_holiday_regions": [],
"record_id": 1,
"short_name": "example",
"specific_holiday_dates": [],
"time_zone": "example",
"updated_at": 1,
"utc_offset": 1
}
}Update a rostered shift
Change a rostered shift. Only the fields you fill in are changed.
Inputs
- Shift ID
schedule_idnumberRequired - The ID of the rostered shift to update.
- Start
startdate and time - When the shift starts.
- Finish
finishdate and time - When the shift finishes.
- Person
person_idnumber - The person rostered on.
- Team
department_idnumber - The team the shift is for.
- Shift detail
shift_detail_idnumber - The shift detail (a label such as a duty or area) to give the shift.
- Break minutes
automatic_break_lengthnumber - The length of the shift's break in minutes.At least 0.
Outputs
dataobject- Schedule model
Example output
{
"data": {
"acceptance_status": "example",
"activities": [],
"activity_code": "example",
"activity_code_id": 1,
"activity_code_name": "example",
"automatic_break_length": 1,
"award_interpretation": [],
"breaks": [],
"cost": 1.0,
"cost_with_oncosts": 1.0,
"creation_method": "example",
"creation_platform": "example",
"department_id": 1,
"department_name": "example",
"finish": 1,
"id": 1,
"last_acknowledged_at": 1,
"last_costed_at": 1,
"last_published_at": 1,
"location_name": "example",
"needs_acceptance": false,
"oncosts_breakdown": [],
"platform": {
"attributes": [],
"id": 1,
"model_id": 1,
"native_id": 1,
"updated_at": 1,
"uuid": "example"
},
"record_id": 1,
"roster_id": 1,
"shift_detail_id": 1,
"shift_detail_name": "example",
"start": 1,
"time_zone": "example",
"updated_at": 1,
"user_id": 1,
"user_name": "example",
"utc_offset": 1
}
}Update a team
Change a team. Only the fields you fill in are changed.
Inputs
- Team
department_idnumberRequired - The team to update.
- Name
nametext - The team's name.
- Location
location_idnumber - The location the team belongs to.
- Export name
export_nametext - The name used for the team in payroll exports.
- Colour
colourtext - The team's colour on the roster, as a hex code such as #2D7FF9.
- Team group
team_grouptext - A group name to sort the team under.
- Members
person_idslist - The people in the team. This replaces the current members.
- Managers
manager_idslist - The people who manage the team. This replaces the current managers.
Outputs
dataobject- Department model
Example output
{
"data": {
"activity_codes": [],
"assisting_teams": [],
"associated_tags": [],
"colour": "example",
"export_name": "example",
"id": 1,
"location_id": 1,
"managers": [],
"name": "example",
"platform": {
"attributes": [],
"id": 1,
"model_id": 1,
"native_id": 1,
"updated_at": 1,
"uuid": "example"
},
"qualifications": [],
"record_id": 1,
"staff": [],
"team_group": "example",
"tracking_categories": [],
"updated_at": 1
}
}Update a user
Change a person's details. Only the fields you fill in are changed.
Inputs
- User
person_idnumberRequired - The person to update.
- Name
nametext - The name the person goes by.
- Legal first name
legal_first_nametext - The person's legal first name.
- Legal last name
legal_last_nametext - The person's legal last name.
- Email
emailtext - The person's email address.
- Phone
phonetext - The person's phone number.
- Employee ID
employee_idtext - The person's employee ID in other systems, such as payroll.
- Date of birth
date_of_birthdate - The person's date of birth.
- Employment start date
employment_start_datedate - The day the person started work.
- Teams
department_idslist - The teams the person works in.
- Default team
report_department_idnumber - The person's default team.
- Teams they manage
managed_department_idslist - The teams the person manages, which makes them a manager.
- Contracted weekly hours
contracted_weekly_hoursnumber - The hours a week the person is contracted to work.At least 0.
- Preferred weekly hours
preferred_hoursnumber - The hours a week the person would like to be rostered.At least 0.
- Employment end date
employment_end_datedate - The person's last day of work.
Outputs
dataobject- User model
Example output
{
"data": {
"active": false,
"award_tag_ids": [],
"award_template_id": 1,
"contracted_weekly_hours": 1.0,
"created_at": 1,
"department_ids": [],
"email": "example",
"employee_id": "example",
"employment_end_date": "example",
"employment_start_date": "example",
"enable_login": false,
"id": 1,
"legal_first_name": "example",
"legal_last_name": "example",
"legal_middle_names": "example",
"managed_department_ids": [],
"name": "example",
"normalised_phone": "example",
"onboarding_status": "example",
"phone": "example",
"platform_role_ids": [],
"position_title": "example",
"preferred_hours": 1.0,
"report_department_id": 1,
"time_zone": "example",
"updated_at": 1,
"user_levels": [],
"utc_offset": 1
}
}