Tanda

App · 28 actions

Manage people, teams, locations, rostered shifts and leave requests in Tanda (Workforce.com).

Actions

ActionWhat it does
Create a leave requestRequest time off for a person.
Create a locationCreate a location.
Create a rostered shiftAdd a shift to the roster.
Create a teamCreate a team at a location.
Create a userAdd a person to the organisation.
Deactivate a userMark a person as no longer working there.
Delete a leave requestDelete a leave request.
Delete a locationDelete a location.
Delete a rostered shiftRemove a shift from the roster.
Delete a teamDelete a team.
Get a leave requestGet a leave request.
Get a locationGet a location's details.
Get a rostered shiftGet a rostered shift.
Get a teamGet a team's details.
Get a userGet a person's profile.
Get the current userGet the person whose token the connection uses, with their organisation.
List inactive usersList people who no longer work in the organisation.
List leave requestsList leave requests for time off in a period.
List locationsList the organisation's locations.
List rostered shiftsList rostered shifts in a period of up to 7 days.
List shift detailsList the shift details (labels such as duties or areas) shifts can have.
List teamsList the teams (departments) people are rostered in.
List usersList the people in the organisation, optionally filtered by name, email or location.
Update a leave requestChange a leave request, or approve or reject it.
Update a locationChange a location.
Update a rostered shiftChange a rostered shift.
Update a teamChange a team.
Update a userChange a person's details.

Create a leave request

Request time off for a person. Managers can create it already approved.

Inputs

Personperson_idnumberRequired
The person taking the leave.
Leave typeleave_typetextRequired
The leave type's name exactly as it appears in Tanda, such as Annual Leave.
Start datestartdateRequired
The first day of the leave.
End datefinishdateRequired
The last day of the leave.
StatusstatustextRequired
Whether the request is waiting, approved or rejected.One of: pending, approved, rejected.
Hourshoursnumber
The hours of leave. Leave empty to use the person's usual hours.At least 0.
Reasonreasontext
The reason for the leave.
All dayall_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

NamenametextRequired
The location's name.
Short nameshort_nametext
A short code for the location, used where space is tight.
Addressaddresstext
The location's street address.
Time zonetime_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

Startstartdate and timeRequired
When the shift starts.
Finishfinishdate and time
When the shift finishes.
Personperson_idnumber
The person rostered on. Leave empty for a vacant shift.
Teamdepartment_idnumber
The team the shift is for.
Shift detailshift_detail_idnumber
The shift detail (a label such as a duty or area) to give the shift.
Break minutesautomatic_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

NamenametextRequired
The team's name.
Locationlocation_idnumberRequired
The location the team belongs to.
Export nameexport_nametext
The name used for the team in payroll exports.
Colourcolourtext
The team's colour on the roster, as a hex code such as #2D7FF9.
Team groupteam_grouptext
A group name to sort the team under.
Membersperson_idslist
The people in the team. This replaces the current members.
Managersmanager_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

NamenametextRequired
The name the person goes by.
Legal first namelegal_first_nametext
The person's legal first name.
Legal last namelegal_last_nametext
The person's legal last name.
Emailemailtext
The person's email address.
Phonephonetext
The person's phone number.
Employee IDemployee_idtext
The person's employee ID in other systems, such as payroll.
Date of birthdate_of_birthdate
The person's date of birth.
Employment start dateemployment_start_datedate
The day the person started work.
Teamsdepartment_idslist
The teams the person works in.
Default teamreport_department_idnumber
The person's default team.
Teams they managemanaged_department_idslist
The teams the person manages, which makes them a manager.
Contracted weekly hourscontracted_weekly_hoursnumber
The hours a week the person is contracted to work.At least 0.
Preferred weekly hourspreferred_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

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

Locationlocation_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 IDschedule_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

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

Locationlocation_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 IDschedule_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

Teamdepartment_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

Userperson_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

Pagepagenumber
Which page of results to return, starting at 1.At least 1.
Page sizepage_sizenumber
How many records to return per page, at most 100.From 1 to 100.
Emailemailtext
Only the person with this email address.
Namenametext
Only people with this name.
Changed afterupdated_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

Fromfrom_datedateRequired
The first day of the period.
Toto_datedateRequired
The last day of the period.
Peopleperson_idslist
Only these people's requests.
Include inactive peopleinclude_inactivetrue/false
Whether to include people who no longer work there.
Changed afterupdated_afterdate and time
Only leave requests created or changed after this time.
Pagepagenumber
Which page of results to return, starting at 1.At least 1.
Page sizepage_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 afterupdated_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

Fromfrom_datedateRequired
The first day to look in.
Toto_datedateRequired
The last day to look in, at most 7 days after From.
Peopleperson_idslist
Only these people's shifts.
Locationlocation_idnumber
Only shifts at this location.
Published onlypublished_onlytrue/false
Whether to leave out shifts that haven't been published.
Vacant onlyshow_vacant_onlytrue/false
Whether to return only shifts nobody is assigned to.
Include namesinclude_namestrue/false
Whether to add the names of each shift's team and shift detail.
Pagepagenumber
Which page of results to return, starting at 1.At least 1.
Page sizepage_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

Teamdepartment_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

Pagepagenumber
Which page of results to return, starting at 1.At least 1.
Page sizepage_sizenumber
How many records to return per page, at most 100.From 1 to 100.
Locationlocation_idnumber
Only teams at this location.
Changed afterupdated_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

Pagepagenumber
Which page of results to return, starting at 1.At least 1.
Page sizepage_sizenumber
How many records to return per page, at most 100.From 1 to 100.
Emailemailtext
Only the person with this email address.
Namenametext
Only people with this name. Use either this or Email, not both.
Include inactive peopleshow_inactivetrue/false
Whether to include people who no longer work there.
Locationlocation_idnumber
Only people in teams at this location.
Changed afterupdated_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 IDleave_idnumberRequired
The ID of the leave request to update.
Statusstatustext
Set to approved or rejected to decide the request.One of: pending, approved, rejected.
Leave typeleave_typetext
The leave type's name exactly as it appears in Tanda.
Start datestartdate
The first day of the leave.
End datefinishdate
The last day of the leave.
Hourshoursnumber
The hours of leave.At least 0.
Reasonreasontext
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

Locationlocation_idnumberRequired
The location to update.
Namenametext
The location's name.
Short nameshort_nametext
A short code for the location, used where space is tight.
Addressaddresstext
The location's street address.
Time zonetime_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 IDschedule_idnumberRequired
The ID of the rostered shift to update.
Startstartdate and time
When the shift starts.
Finishfinishdate and time
When the shift finishes.
Personperson_idnumber
The person rostered on.
Teamdepartment_idnumber
The team the shift is for.
Shift detailshift_detail_idnumber
The shift detail (a label such as a duty or area) to give the shift.
Break minutesautomatic_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

Teamdepartment_idnumberRequired
The team to update.
Namenametext
The team's name.
Locationlocation_idnumber
The location the team belongs to.
Export nameexport_nametext
The name used for the team in payroll exports.
Colourcolourtext
The team's colour on the roster, as a hex code such as #2D7FF9.
Team groupteam_grouptext
A group name to sort the team under.
Membersperson_idslist
The people in the team. This replaces the current members.
Managersmanager_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

Userperson_idnumberRequired
The person to update.
Namenametext
The name the person goes by.
Legal first namelegal_first_nametext
The person's legal first name.
Legal last namelegal_last_nametext
The person's legal last name.
Emailemailtext
The person's email address.
Phonephonetext
The person's phone number.
Employee IDemployee_idtext
The person's employee ID in other systems, such as payroll.
Date of birthdate_of_birthdate
The person's date of birth.
Employment start dateemployment_start_datedate
The day the person started work.
Teamsdepartment_idslist
The teams the person works in.
Default teamreport_department_idnumber
The person's default team.
Teams they managemanaged_department_idslist
The teams the person manages, which makes them a manager.
Contracted weekly hourscontracted_weekly_hoursnumber
The hours a week the person is contracted to work.At least 0.
Preferred weekly hourspreferred_hoursnumber
The hours a week the person would like to be rostered.At least 0.
Employment end dateemployment_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
  }
}

On this page