Sling
App · 14 actions
Look up employees, groups, schedules, tasks and timesheets.
Actions
| Action | What it does |
|---|---|
| Get a group | Get a group. |
| Get a scheduled task | Get a scheduled task. |
| Get a timesheet report | Get a timesheet report. |
| Get an employee | Get an employee. |
| Get schedule totals | Get schedule totals. |
| Get the Sling session | Get the Sling session. |
| List calendar events | List calendar events. |
| List channels | List channels. |
| List employees | List employees. |
| List employees working on a date | List employees working on a date. |
| List groups | List groups. |
| List scheduled tasks | List scheduled tasks. |
| List shift templates | List shift templates. |
| List task templates | List task templates. |
Get a group
Get a group.
Inputs
- Group
group_idnumberRequired - Group id.
Outputs
dataobject- The response from get a group.
has_moretrue/false- Whether another page is available.
next_cursortext- The page or cursor to pass to the next request.
Example output
{
"data": {},
"has_more": false,
"next_cursor": null
}Get a scheduled task
Get a scheduled task.
Inputs
- Task instance ID
task_instance_idnumberRequired - The identifer of the task instance to be read.
Outputs
dataobject- The response from get a scheduled task.
has_moretrue/false- Whether another page is available.
next_cursortext- The page or cursor to pass to the next request.
Example output
{
"data": {},
"has_more": false,
"next_cursor": null
}Get a timesheet report
Get a timesheet report.
Inputs
- Start date
start_datedateRequired - First date of the requested interval.
- End date
end_datedateRequired - Last date of the requested interval.
Outputs
dataobject- The response from get a timesheet report.
has_moretrue/false- Whether another page is available.
next_cursortext- The page or cursor to pass to the next request.
Example output
{
"data": {},
"has_more": false,
"next_cursor": null
}Get an employee
Get an employee.
Inputs
- Employee
employee_idnumberRequired - id of user.
Outputs
dataobject- The response from get an employee.
has_moretrue/false- Whether another page is available.
next_cursortext- The page or cursor to pass to the next request.
Example output
{
"data": {},
"has_more": false,
"next_cursor": null
}Get schedule totals
Get schedule totals.
Inputs
- Location IDS
location_idslist - list of relevant location IDs - default is all.
- Position IDS
position_idslist - list of relevant position IDs - default is all.
- Start date
start_datedateRequired - First date of the requested interval.
- End date
end_datedateRequired - Last date of the requested interval.
Outputs
dataobject- The response from get schedule totals.
has_moretrue/false- Whether another page is available.
next_cursortext- The page or cursor to pass to the next request.
Example output
{
"data": {
"allShifts": 1,
"availableShifts": 1,
"cost": 1,
"costByLocationId": {},
"holidayHours": 1,
"holidayOvertimeCost": 1,
"holidayOvertimeHours": 1,
"hourlyCost": 1,
"hourlyCostByDate": {},
"hourlyCostByLocationId": {},
"hourlyCostByUserId": {},
"hoursByUserId": {},
"laborPercentage": 1,
"laborPercentageByLocationId": {},
"noShows": 1,
"nonHolidayHours": 1,
"overtimeCost": 1,
"overtimeHours": 1,
"paidMinutes": 1,
"publishedShifts": 1,
"salaryCost": 1,
"salaryCostByLocationId": {},
"sickCallouts": 1,
"totalOvertimeCost": 1,
"totalOvertimeHours": 1,
"unassignedShifts": 1,
"unpublishedShifts": 1
},
"has_more": false,
"next_cursor": null
}Get the Sling session
Get the Sling session.
Inputs
None.
Outputs
dataobject- The response from get the Sling session.
has_moretrue/false- Whether another page is available.
next_cursortext- The page or cursor to pass to the next request.
Example output
{
"data": {},
"has_more": false,
"next_cursor": null
}List calendar events
List calendar events.
Inputs
- Org ID
org_idnumber - Organization ID. Leave blank to use the connected organization.
- Employee ID
employee_idnumberRequired - Identifier of User to fetch events for.
- Location IDS
location_idslist - list of relevant location IDs - default is all.
- Position IDS
position_idslist - list of relevant position IDs - default is all.
- Page size
page_sizenumber - number of results to return.At least 0.
- Page
pagenumber - number of results to return * page.At least 0.
- Show planning events
show_planning_eventstrue/false - controls whether to show events with the status of planning.
- Start date
start_datedateRequired - First date of the requested interval.
- End date
end_datedateRequired - Last date of the requested interval.
Outputs
datalist- The response from list calendar events.
has_moretrue/false- Whether another page is available.
next_cursortext- The page or cursor to pass to the next request.
Example output
{
"data": [
{
"id": "123"
}
],
"has_more": false,
"next_cursor": null
}List channels
List channels.
Inputs
None.
Outputs
datalist- The response from list channels.
has_moretrue/false- Whether another page is available.
next_cursortext- The page or cursor to pass to the next request.
Example output
{
"data": [],
"has_more": false,
"next_cursor": null
}List employees
List employees.
Inputs
- Query
querytext - Only return users with matching prefix in name, lastname or email.
- IDS
idstext - Comma separated list of ids, only return users with matching id.
- Include deleted
include_deletedtext - Include deleted users.
Outputs
datalist- The response from list employees.
has_moretrue/false- Whether another page is available.
next_cursortext- The page or cursor to pass to the next request.
Example output
{
"data": [
{
"id": "123"
}
],
"has_more": false,
"next_cursor": null
}List employees working on a date
List employees working on a date.
Inputs
- Date
datedate - ISO date.
Outputs
datalist- The response from list employees working on a date.
has_moretrue/false- Whether another page is available.
next_cursortext- The page or cursor to pass to the next request.
Example output
{
"data": [
{
"id": "123"
}
],
"has_more": false,
"next_cursor": null
}List groups
List groups.
Inputs
- IDS
idstext - Comma separated list of ids, only return groups with matching ids.
- Type
typetext - Return only groups of this type.One of:
location,position,group.
Outputs
datalist- The response from list groups.
has_moretrue/false- Whether another page is available.
next_cursortext- The page or cursor to pass to the next request.
Example output
{
"data": [
{
"id": "123"
}
],
"has_more": false,
"next_cursor": null
}List scheduled tasks
List scheduled tasks.
Inputs
- Start date
start_datedateRequired - First date of the requested interval.
- End date
end_datedateRequired - Last date of the requested interval.
Outputs
datalist- The response from list scheduled tasks.
has_moretrue/false- Whether another page is available.
next_cursortext- The page or cursor to pass to the next request.
Example output
{
"data": [
{
"id": "123"
}
],
"has_more": false,
"next_cursor": null
}List shift templates
List shift templates.
Inputs
None.
Outputs
datalist- The response from list shift templates.
has_moretrue/false- Whether another page is available.
next_cursortext- The page or cursor to pass to the next request.
Example output
{
"data": [],
"has_more": false,
"next_cursor": null
}List task templates
List task templates.
Inputs
None.
Outputs
datalist- The response from list task templates.
has_moretrue/false- Whether another page is available.
next_cursortext- The page or cursor to pass to the next request.
Example output
{
"data": [],
"has_more": false,
"next_cursor": null
}