Workyard
App · 20 actions
Read organizations, employees, projects, tasks, time cards and time off in Workyard.
Actions
| Action | What it does |
|---|---|
| Get organization | Get organization. |
| Get project | Get project. |
| Get smart form | Get smart form. |
| Get time card | Get time card. |
| Get time off request | Get time off request. |
| List cost codes | List cost codes. |
| List customers | List customers. |
| List employees | List employees. |
| List leave policies | List leave policies. |
| List organizations | List organizations. |
| List project cost codes | List project cost codes. |
| List project tasks | List project tasks. |
| List projects | List projects. |
| List smart forms | List smart forms. |
| List task activity | List task activity. |
| List tasks | List tasks. |
| List time approvers | List time approvers. |
| List time card activity | List time card activity. |
| List time cards | List time cards. |
| List time off requests | List time off requests. |
Get organization
Get organization.
Inputs
- Org
org_idnumberRequired - Org id.
Outputs
dataobject- The response from Workyard.
Example output
{
"data": {
"about": "example",
"country_code": "example",
"id": 1,
"is_breaks_paid": true,
"is_split_tc_enabled": true,
"name": "example",
"requires_cost_allocation": true,
"state": "example",
"subscribe_dt_unix": 1,
"subscription_status": "example",
"time_round_minutes": 1,
"timezone": "example",
"trial_end_dt_unix": 1
}
}Get project
Get project.
Inputs
- Org
org_idnumberRequired - Org id.
- Org project
org_project_idnumberRequired - Org project id.
Outputs
dataobject- The response from Workyard.
Example output
{
"data": {
"archived_dt_unix": 1,
"color_id": 1,
"cost_code_ids": [
1
],
"created_at_unix": 1,
"customer": {
"color_id": 1,
"id": 1,
"name": "example",
"org_id": 1,
"projects": [
{}
]
},
"geofence_ids": [
1
],
"id": 1,
"identifier": "example",
"is_archived": true,
"is_auto_create": true,
"latest_cost_code": {
"code": "example",
"cost_code_group": {
"id": 1,
"name": "example"
},
"employees_str": "example",
"id": 1,
"identifier": "example",
"name": "example",
"project_ids": [
1
],
"projects": [
{}
],
"projects_str": "example"
},
"latest_geofence": {
"enabled": true,
"geofence_radius_meters": 1,
"geofence_type": "circle",
"id": 1,
"last_active_dt_unix": 1,
"name": "example",
"org_id": 1,
"place": {
"formatted_place_name": "example",
"latitude": 1,
"longitude": 1,
"place_id": "example"
},
"polygon_geofence": "example",
"type": "company_address"
},
"manager_ids": [
1
],
"name": "example",
"org_customer_id": 1,
"org_id": 1
}
}Get smart form
Get smart form.
Inputs
- Org
org_idnumberRequired - Org id.
- Form
form_idnumberRequired - Form id.
Outputs
dataobject- The response from Workyard.
Example output
{
"data": {
"archived_at": 1,
"created_at": 1,
"description": "example",
"form_version_id": 1,
"id": 1,
"notifications": [
{
"channel": "email",
"employees": [
{}
],
"employees_groups": [
{}
],
"frequency": "each-submission",
"id": 1,
"question": {},
"recipients": [
{}
],
"type": "submission"
}
],
"published_at": 1,
"status": "draft",
"structure": "example",
"submissions_count": 1,
"title": "example",
"triggers": [
{
"employee_groups": [
{}
],
"employees": [
{}
],
"rules": [
{}
],
"type": "example"
}
],
"updated_at": 1,
"updated_by_employee": {
"display_name": "example",
"id": 1,
"identifier": "example",
"photo_url": "example"
}
}
}Get time card
Get time card.
Inputs
- Org
org_idnumberRequired - Org id.
- Time card
time_card_idnumberRequired - Time card id.
- Include
includetext - Include.
Outputs
dataobject- The response from Workyard.
Example output
{
"data": {
"alerts": [
"clock_started_late"
],
"approvers": [
{
"approved_at_unix": 1,
"name": "example",
"profile_id": 1
}
],
"breaks": [
{
"duration_secs": 1,
"end_dt_unix": 1,
"id": 1,
"is_paid": true,
"start_dt_unix": 1
}
],
"clock_in_photo": {
"download_url": "example",
"id": 1,
"no_photo_reason": "example"
},
"clock_out_photo": {
"download_url": "example",
"id": 1,
"no_photo_reason": "example"
},
"cost_allocation_count": 1,
"cost_allocations_source": "manual",
"created_at_unix": 1,
"created_by_device_id": 1,
"details": {
"entry_geofence_data": {
"entry_dt_unix": 1,
"geofence_id": 1
},
"exit_geofence_data": {
"exit_dt_unix": 1,
"geofence_id": 1
},
"is_auto_clock_in_limit": true,
"is_auto_clock_out_limit": true,
"is_auto_clockin": true,
"is_auto_hours_limit": true,
"is_auto_trim_clockout": true,
"is_clock_in_photo_required": true,
"is_clock_out_photo_required": true,
"is_first_break_auto_generated": true,
"is_restricted_clockin": true,
"is_second_break_auto_generated": true,
"is_time_card_waiver_required": true
},
"employee_id": 1,
"end_dt_unix": 1,
"equipment_item_usages": [
{
"cost_code": {},
"cost_code_id": 1,
"created_at": 1,
"duration_secs": 1,
"employee": {},
"employee_id": 1,
"end_dt_unix": 1,
"equipment_item": {},
"equipment_item_id": 1,
"id": 1,
"project": {},
"project_id": 1,
"start_dt_unix": 1,
"status": "working",
"time_card_id": 1,
"timezone": "example",
"updated_at": 1,
"work_site": {},
"work_site_id": 1
}
],
"id": 1,
"is_approvable": true,
"is_sample_data": true,
"is_split_by_day": true,
"logs": [
{
"actions": [
{}
],
"created_at_unix": 1,
"id": 1,
"ip": "example",
"local_machine_timezone": "example",
"reason": "example"
}
],
"mobile_local_id": "example",
"note_count": 1,
"notes": [
{
"created_at_unix": 1,
"created_by": {},
"description": "example",
"ext_address_id": "example",
"file_attachments": [
{}
],
"geofence": {},
"geofence_id": 1,
"id": 1,
"is_recurring": true,
"location_reading": {},
"org_project_id": 1,
"photos": [
"example"
],
"project": {},
"task": {},
"task_id": 1,
"time_card": {},
"time_card_id": 1,
"updated_at_unix": 1,
"updated_by": {},
"work_site": {},
"work_site_id": 1
}
],
"organization_id": 1,
"organization_name": "example",
"project_time": {
"cost_allocations": [
"example"
],
"total_duration_secs": 1,
"total_paid_break_secs": 1,
"total_unallocated_duration_secs": 1,
"total_unpaid_break_secs": 1
},
"start_dt_unix": 1,
"status": "working",
"time_approver": {
"assignment_mode": "manual",
"display_name": "example",
"email": "example",
"employee_groups": [
{}
],
"employee_id": 1,
"equipment_tagging_requirement": "off",
"first_name": "example",
"identifier": "example",
"is_breaks_paid": true,
"is_saas_enabled": true,
"is_time_tracking_enabled": true,
"last_name": "example",
"mobile": "example",
"org_id": 1,
"photo_url": "example",
"require_team_members_to_assign_time_to_cost_codes": true,
"require_team_members_to_assign_time_to_cost_codes_on_clockout": true,
"require_team_members_to_assign_time_to_projects": true,
"requires_cost_allocation": true,
"title": "example"
},
"time_summary": {
"double_time_secs": 1,
"duration_secs": 1,
"equipment_secs": 1,
"over_time_secs": 1,
"paid_break_secs": 1,
"regular_secs": 1,
"unpaid_break_secs": 1
},
"timezone": "example",
"tracking_session_id": "example",
"type": "manual",
"update_warning": "example",
"updated_at_unix": 1,
"work_form_submissions": [
{
"submission_id": 1,
"type": "example",
"unexpected_answers_count": "example"
}
],
"worker": {
"assignment_mode": "manual",
"display_name": "example",
"email": "example",
"employee_groups": [
{}
],
"employee_id": 1,
"equipment_tagging_requirement": "off",
"first_name": "example",
"identifier": "example",
"is_breaks_paid": true,
"is_my_worker": true,
"is_saas_enabled": true,
"is_time_approver_for_worker": true,
"is_time_tracking_enabled": true,
"last_clocked_out_dt_unix": 1,
"last_clocked_out_timezone ": "example",
"last_name": "example",
"mobile": "example",
"org_id": 1,
"photo_url": "example",
"require_team_members_to_assign_time_to_cost_codes": true,
"require_team_members_to_assign_time_to_cost_codes_on_clockout": true,
"require_team_members_to_assign_time_to_projects": true,
"requires_cost_allocation": true,
"title": "example"
},
"worker_rule_group_settings": {
"requires_time_card_sign_off": true
}
}
}Get time off request
Get time off request.
Inputs
- Org
org_idnumberRequired - Org id.
- Time off request
time_off_request_idnumberRequired - Time off request id.
Outputs
dataobject- The response from Workyard.
Example output
{
"data": {
"approved_by": {
"display_name": "example",
"email": "example",
"employee_id": 1,
"first_name": "example",
"identifier": "example",
"last_name": "example",
"org_id": 1,
"photo_url": "example",
"title": "example"
},
"approver": {
"display_name": "example",
"email": "example",
"employee_id": 1,
"first_name": "example",
"identifier": "example",
"last_name": "example",
"org_id": 1,
"photo_url": "example",
"title": "example"
},
"created_at_unix": 1,
"created_by": {
"display_name": "example",
"email": "example",
"employee_id": 1,
"first_name": "example",
"identifier": "example",
"last_name": "example",
"org_id": 1,
"photo_url": "example",
"title": "example"
},
"dates": [
{
"duration": 1,
"id": 1,
"leave_dt_unix": 1,
"leave_policy": {}
}
],
"duration": 1,
"employee": {
"display_name": "example",
"email": "example",
"employee_id": 1,
"first_name": "example",
"identifier": "example",
"last_name": "example",
"org_id": 1,
"photo_url": "example",
"title": "example"
},
"end_dt_unix": 1,
"id": 1,
"note": {
"created_at_unix": 1,
"created_by": {
"display_name": "example",
"email": "example",
"employee_id": 1,
"first_name": "example",
"identifier": "example",
"last_name": "example",
"org_id": 1,
"photo_url": "example",
"title": "example"
},
"id": 1,
"note": "example",
"updated_at_unix": 1
},
"notes": [
{
"created_at_unix": 1,
"created_by": {},
"id": 1,
"note": "example",
"updated_at_unix": 1
}
],
"org_id": 1,
"reason": {
"created_at_unix": 1,
"created_by": {
"display_name": "example",
"email": "example",
"employee_id": 1,
"first_name": "example",
"identifier": "example",
"last_name": "example",
"org_id": 1,
"photo_url": "example",
"title": "example"
},
"id": 1,
"note": "example",
"updated_at_unix": 1
},
"start_dt_unix": 1,
"status": "example",
"updated_at_unix": 1
}
}List cost codes
List cost codes.
Inputs
- Org
org_idnumberRequired - Org id.
- Project worksite IDs
project_worksite_idstext - Project worksite ids.
- Project ID
project_idnumber - Project id.
- Cost code group ID
cost_code_group_idtext - Cost code group id.
- Search
searchtext - Search.
- Limit
limitnumber - Limit.
- Page
pagenumber - Page.
- Sort by
sort_bytext - Sort by.
- Include projects
include_projectstext - Include projects.
- Include employees
include_employeestext - Include employees.
Outputs
dataobject- The response from Workyard.
Example output
{
"data": {
"data": [
{
"code": "example",
"cost_code_group": {},
"employees_str": "example",
"id": 1,
"identifier": "example",
"name": "example",
"project_ids": [
1
],
"projects": [
{}
],
"projects_str": "example"
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 1,
"to": 1,
"total": 1
}
}
}List customers
List customers.
Inputs
- Org
org_idnumberRequired - Org id.
- Limit
limitnumber - Limit.
- Page
pagenumber - Page.
- Id
idtext - Id.
- Name
nametext - Name.
- Sort by
sort_bytext - Sort by.
Outputs
dataobject- The response from Workyard.
Example output
{
"data": {
"data": [
{
"color_id": 1,
"id": 1,
"name": "example",
"org_id": 1,
"projects": [
{}
]
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 1,
"to": 1,
"total": 1
}
}
}List employees
List employees.
Inputs
- Org
org_idnumberRequired - Org id.
- Status
statustext - Status.
- Employee
employee_idtext - Employee id.
- Employee group ID
employee_group_idtext - Employee group id.
- Profile ID
profile_idtext - Profile id.
- Email
emailtext - Email.
- Employee display name
employee_display_nametext - Employee display name.
- Role name
role_nametext - Role name.
- Has time card start dt unix
has_time_card_start_dt_unixtext - Has time card start dt unix.
- Has assigned tasks display dt unix
has_assigned_tasks_display_dt_unixtext - Has assigned tasks display dt unix.
- Has pending profile
has_pending_profiletext - Has pending profile.
- Include
includetext - Include.
- Limit
limitnumber - Limit.
- Page
pagenumber - Page.
- Search
searchtext - Search.
- Sort by
sort_bytext - Sort by.
Outputs
dataobject- The response from Workyard.
Example output
{
"data": {
"data": [
{
"assignment_mode": "manual",
"display_name": "example",
"email": "example",
"employee_groups": [
{}
],
"employee_id": 1,
"equipment_tagging_requirement": "off",
"first_name": "example",
"identifier": "example",
"is_breaks_paid": true,
"is_saas_enabled": true,
"is_time_tracking_enabled": true,
"last_name": "example",
"mobile": "example",
"org_id": 1,
"photo_url": "example",
"require_team_members_to_assign_time_to_cost_codes": true,
"require_team_members_to_assign_time_to_cost_codes_on_clockout": true,
"require_team_members_to_assign_time_to_projects": true,
"requires_cost_allocation": true,
"title": "example"
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 1,
"to": 1,
"total": 1
}
}
}List leave policies
List leave policies.
Inputs
- Org
org_idnumberRequired - Org id.
- Limit
limitnumber - Limit.
- Page
pagenumber - Page.
- Sort by
sort_bytext - Sort by.
- Search
searchtext - Search.
- Is active
is_activetext - Is active.
- Is archived
is_archivedtrue/false - Is archived.
Outputs
dataobject- The response from Workyard.
Example output
{
"data": {
"data": [
{
"applies_to_all_employees": true,
"code": "example",
"created_at_unix": 1,
"employee_groups": [
{}
],
"employees": [
{}
],
"id": 1,
"is_active": true,
"is_archived": true,
"name": "example",
"type": "example",
"updated_at_unix": 1
}
]
}
}List organizations
List organizations.
Inputs
None.
Outputs
datalist- The response from Workyard.
Example output
{
"data": [
{
"about": "example",
"country_code": "example",
"id": 1,
"is_breaks_paid": true,
"is_split_tc_enabled": true,
"name": "example",
"requires_cost_allocation": true,
"state": "example",
"subscribe_dt_unix": 1,
"subscription_status": "example",
"time_round_minutes": 1,
"timezone": "example",
"trial_end_dt_unix": 1
}
]
}List project cost codes
List project cost codes.
Inputs
- Org
org_idnumberRequired - Org id.
- Org project
org_project_idnumberRequired - Org project id.
Outputs
datalist- The response from Workyard.
Example output
{
"data": [
{
"code": "example",
"cost_code_group": {
"id": 1,
"name": "example"
},
"employees_str": "example",
"id": 1,
"identifier": "example",
"name": "example",
"project_ids": [
1
],
"projects": [
{}
],
"projects_str": "example"
}
]
}List project tasks
List project tasks.
Inputs
- Org
org_idnumberRequired - Org id.
- Org project
org_project_idnumberRequired - Org project id.
- Limit
limitnumber - Limit.
- Page
pagenumber - Page.
- Search
searchtext - Search.
- Display dt unix
display_dt_unixtext - Display dt unix.
- Status
statustext - Status.
- Start dt unix
start_dt_unixtext - Start dt unix.
- Due dt unix
due_dt_unixtext - Due dt unix.
- Sort by
sort_bytext - Sort by.
- Include counts
include_countstrue/false - Include counts.
Outputs
dataobject- The response from Workyard.
Example output
{
"data": {
"data": [
{
"assignees": [
{}
],
"checklist_item_status_counts": {},
"checklist_items_count": 1,
"cost_code": {},
"created_at_unix": 1,
"created_by": {},
"due_date": "example",
"due_dt_unix": 1,
"geofence": {},
"has_due_time": true,
"has_start_time": true,
"id": 1,
"is_all_day": true,
"notes_count": 1,
"org_id": 1,
"org_project": {},
"project_worksite_id": 1,
"recurrence": "example",
"start_date": "example",
"start_dt_unix": 1,
"status": "incomplete",
"tags": [
{}
],
"timezone": "example",
"title": "example",
"watchers": [
{}
],
"work_forms": [
{}
]
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 1,
"to": 1,
"total": 1
}
}
}List projects
List projects.
Inputs
- Org
org_idnumberRequired - Org id.
- Limit
limitnumber - Limit.
- Page
pagenumber - Page.
- Id
idtext - Id.
- Name
nametext - Name.
- Sort by
sort_bytext - Sort by.
- Has external projects
has_external_projectstrue/false - Has external projects.
- Is archived
is_archivedtrue/false - Is archived.
- Enforce project permissions
enforce_project_permissionstrue/false - Enforce project permissions.
- Include computed totals
include_computed_totalstrue/false - Include computed totals.
- Include IDentifier source
include_identifier_sourcetrue/false - Include identifier source.
Outputs
dataobject- The response from Workyard.
Example output
{
"data": {
"data": [
{
"archived_dt_unix": 1,
"assigned_employees": [
{}
],
"color_id": 1,
"cost_code_ids": [
1
],
"cost_codes": [
{}
],
"created_at_unix": 1,
"created_by": {},
"customer": {},
"geofence_ids": [
1
],
"geofences": [
{}
],
"id": 1,
"identifier": "example",
"identifier_source": "ACUMATICA",
"is_archived": true,
"is_auto_create": true,
"latest_activity_dt_unix": 1,
"manager_ids": [
1
],
"managers": [
{}
],
"name": "example",
"notes_count": 1,
"org_customer_id": 1,
"org_id": 1,
"project_groups": [
{}
],
"tasks_count": 1,
"total_mileage_assigned": 1,
"total_mileage_assigned_meters": 1,
"total_pay_allocated": 1,
"total_time_allocated_secs": 1,
"total_travel_duration_secs": 1
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 1,
"summary": {
"total_pay_allocated": 1,
"total_time_allocated_secs": 1
},
"to": 1,
"total": 1
}
}
}List smart forms
List smart forms.
Inputs
- Org
org_idnumberRequired - Org id.
- Status
statustext - Status.
- Search
searchtext - Search.
- Has submissions
has_submissionstrue/false - Has submissions.
- Submission from unix
submission_from_unixnumber - Submission from unix.
- Submission to unix
submission_to_unixnumber - Submission to unix.
- Limit
limitnumber - Limit.
- Page
pagenumber - Page.
- Sort by
sort_bytext - Sort by.
Outputs
dataobject- The response from Workyard.
Example output
{
"data": {
"count_by_status": [
{
"count": 1,
"status": "example"
}
],
"data": [
{
"archived_at": 1,
"created_at": 1,
"description": "example",
"form_version_id": 1,
"id": 1,
"latest_submission_date": 1,
"latest_submission_employee_name": "example",
"published_at": 1,
"status": "draft",
"structure": "example",
"submissions_count": 1,
"title": "example",
"triggers": [
{}
],
"updated_at": 1,
"updated_by_employee": {}
}
],
"links": {
"first": "example",
"last": "example",
"next": "example",
"prev": "example"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 1,
"to": 1,
"total": 1
}
}
}List task activity
List task activity.
Inputs
- Org
org_idnumberRequired - Org id.
- Task
task_idnumberRequired - Task id.
- Task activity type
task_activity_typetextRequired - Task activity type.
- Limit
limitnumber - Limit.
- Page
pagenumber - Page.
- Sort by
sort_bytext - Sort by.
- Fa upload state
fa_upload_statetext - Fa upload state.
- Fa include urls
fa_include_urlstrue/falseRequired - Fa include urls.
- Fa url custom expiry secs
fa_url_custom_expiry_secsnumber - Fa url custom expiry secs.
Outputs
dataobject- The response from Workyard.
Example output
{
"data": {
"data": [
{
"created_at_unix": 1,
"created_by": {},
"description": "example",
"ext_address_id": "example",
"file_attachments": [
{}
],
"geofence": {},
"geofence_id": 1,
"id": 1,
"is_recurring": true,
"location_reading": {},
"org_project_id": 1,
"photos": [
"example"
],
"project": {},
"task": {},
"task_activity_type": "log",
"task_id": 1,
"time_card": {},
"time_card_id": 1,
"updated_at_unix": 1,
"updated_by": {},
"work_site": {},
"work_site_id": 1
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 1,
"to": 1,
"total": 1
}
}
}List tasks
List tasks.
Inputs
- Org
org_idnumberRequired - Org id.
- Limit
limitnumber - Limit.
- Page
pagenumber - Page.
- Search
searchtext - Search.
- Search include tags
search_include_tagstrue/false - Search include tags.
- Display dt unix
display_dt_unixtext - Display dt unix.
- Id
idtext - Id.
- Status
statustext - Status.
- Start dt unix
start_dt_unixtext - Start dt unix.
- Due dt unix
due_dt_unixtext - Due dt unix.
- Employee group IDs
employee_group_idstext - Employee group ids.
- Employee IDs
employee_idstext - Employee ids.
- Tag IDs
tag_idstext - Tag ids.
- Project work site IDs
project_work_site_idstext - Project work site ids.
- Customer IDs
customer_idstext - Customer ids.
- Project group IDs
project_group_idstext - Project group ids.
- Sort by
sort_bytext - Sort by.
- Include counts
include_countstrue/false - Include counts.
- Unassigned only
unassigned_onlytrue/false - Unassigned only.
- Assigned only
assigned_onlytrue/false - Assigned only.
Outputs
dataobject- The response from Workyard.
Example output
{
"data": {
"data": [
{
"assignees": [
{}
],
"checklist_item_status_counts": {},
"checklist_items_count": 1,
"cost_code": {},
"created_at_unix": 1,
"created_by": {},
"due_date": "example",
"due_dt_unix": 1,
"geofence": {},
"has_due_time": true,
"has_start_time": true,
"id": 1,
"is_all_day": true,
"notes_count": 1,
"org_id": 1,
"org_project": {},
"project_worksite_id": 1,
"recurrence": "example",
"start_date": "example",
"start_dt_unix": 1,
"status": "incomplete",
"tags": [
{}
],
"timezone": "example",
"title": "example",
"watchers": [
{}
],
"work_forms": [
{}
]
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 1,
"to": 1,
"total": 1
}
}
}List time approvers
List time approvers.
Inputs
- Org
org_idnumberRequired - Org id.
- Sort by
sort_bytext - Sort by.
- With time off edit
with_time_off_edittext - With time off edit.
Outputs
dataobject- The response from Workyard.
Example output
{
"data": {
"data": [
{
"assignment_mode": "manual",
"display_name": "example",
"email": "example",
"employee_groups": [
{}
],
"employee_id": 1,
"equipment_tagging_requirement": "off",
"first_name": "example",
"identifier": "example",
"is_breaks_paid": true,
"is_saas_enabled": true,
"is_time_tracking_enabled": true,
"last_name": "example",
"mobile": "example",
"org_id": 1,
"photo_url": "example",
"require_team_members_to_assign_time_to_cost_codes": true,
"require_team_members_to_assign_time_to_cost_codes_on_clockout": true,
"require_team_members_to_assign_time_to_projects": true,
"requires_cost_allocation": true,
"title": "example"
}
]
}
}List time card activity
List time card activity.
Inputs
- Org
org_idnumberRequired - Org id.
- Time card
time_card_idnumberRequired - Time card id.
- Include archived projects
include_archived_projectstext - Include archived projects.One of:
true,false,1,0.
Outputs
dataobject- The response from Workyard.
Example output
{
"data": {
"current_signal_status": "example",
"first_location_reading": {
"formatted_place_name": "example",
"geofence_id": 1,
"geofence_radius_meters": 1,
"id": 1,
"lat": 1,
"location_provider_id": "example",
"long": 1,
"org_projects": [
{}
],
"polygon_geofence": "example",
"work_site_id": 1
},
"is_working": true,
"last_battery_percentage": 1,
"last_signal_seconds_ago": 1,
"segments": [
{
"activity_type": "no_signal",
"distance_meters": 1,
"end_dt_unix": 1,
"id": 1,
"location_reading": {},
"merged_no_signal_segments": [
{}
],
"polyline": "example",
"start_dt_unix": 1,
"time_card_id": 1
}
],
"session_start_dt_unix": 1,
"timezone": "example",
"total_no_signal_secs": 1
}
}List time cards
List time cards.
Inputs
- Org
org_idnumberRequired - Org id.
- Limit
limitnumber - Limit.
- Page
pagenumber - Page.
- Id
idtext - Id.
- Employee
employee_idtext - Employee id.
- Time approver ID
time_approver_idtext - Time approver id.
- Start time
start_timedate and time - Include time cards starting at or after this time.
- End time
end_timedate and time - Include time cards starting before this time.
- Status
statustext - Status.
- Alerts
alertstext - Alerts.
- Sort by
sort_bytext - Sort by.
- Type
typetext - Type.
- Include last location
include_last_locationtrue/false - Include last location.
- Include
includetext - Include.
Outputs
dataobject- The response from Workyard.
Example output
{
"data": {
"data": [
{
"alerts": [
"clock_started_late"
],
"breaks": [
{}
],
"clock_in_photo": {},
"clock_out_photo": {},
"cost_allocations": [
{}
],
"cost_allocations_source": "manual",
"created_at_unix": 1,
"created_by_device_id": "example",
"details": {},
"employee_id": 1,
"end_dt_unix": 1,
"equipment_item_usages": [
{}
],
"id": 1,
"is_map_hidden": true,
"is_sample_data": true,
"last_location": {},
"logs": [
{}
],
"mobile_local_id": "example",
"notes": [
{}
],
"organization_id": 1,
"organization_name": "example",
"session_start_dt_unix": 1,
"start_dt_unix": 1,
"status": "working",
"time_approver": {},
"time_approver_id": 1,
"time_summary": {},
"time_summary_v2": {},
"timezone": "example",
"tracking_session_id": "example",
"type": "manual",
"update_warning": "example",
"updated_at_unix": 1,
"work_form_submissions": [
{}
],
"worker": {}
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 1,
"to": 1,
"total": 1
},
"should_show_payroll_warning": true,
"time_summary": {
"double_time": 1,
"duration": 1,
"over_time": 1,
"paid_break_time": 1,
"regular": 1
}
}
}List time off requests
List time off requests.
Inputs
- Org
org_idnumberRequired - Org id.
- Status
statustext - Status.One of:
pending,approved,rejected,cancelled. - Limit
limitnumber - Limit.
- Page
pagenumber - Page.
- Sort by
sort_bytext - Sort by.
- Search
searchtext - Search.
- Employee
employee_idtext - Employee id.
- Employee group ID
employee_group_idtext - Employee group id.
- Id
idtext - Id.
- Range start dt unix
range_start_dt_unixdate and time - Range start dt unix.
- Range end dt unix
range_end_dt_unixdate and time - Range end dt unix.
- Manager or approver ID
manager_or_approver_idtext - Manager or approver id.
Outputs
dataobject- The response from Workyard.
Example output
{
"data": {
"data": [
{
"approved_by": {},
"approver": {},
"created_at_unix": 1,
"created_by": {},
"dates": [
{}
],
"duration": 1,
"employee": {},
"end_dt_unix": 1,
"id": 1,
"note": {},
"notes": [
{}
],
"org_id": 1,
"reason": {},
"start_dt_unix": 1,
"status": "example",
"updated_at_unix": 1
}
]
}
}