Sling

App · 14 actions

Look up employees, groups, schedules, tasks and timesheets.

Actions

ActionWhat it does
Get a groupGet a group.
Get a scheduled taskGet a scheduled task.
Get a timesheet reportGet a timesheet report.
Get an employeeGet an employee.
Get schedule totalsGet schedule totals.
Get the Sling sessionGet the Sling session.
List calendar eventsList calendar events.
List channelsList channels.
List employeesList employees.
List employees working on a dateList employees working on a date.
List groupsList groups.
List scheduled tasksList scheduled tasks.
List shift templatesList shift templates.
List task templatesList task templates.

Get a group

Get a group.

Inputs

Groupgroup_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 IDtask_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 datestart_datedateRequired
First date of the requested interval.
End dateend_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

Employeeemployee_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 IDSlocation_idslist
list of relevant location IDs - default is all.
Position IDSposition_idslist
list of relevant position IDs - default is all.
Start datestart_datedateRequired
First date of the requested interval.
End dateend_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 IDorg_idnumber
Organization ID. Leave blank to use the connected organization.
Employee IDemployee_idnumberRequired
Identifier of User to fetch events for.
Location IDSlocation_idslist
list of relevant location IDs - default is all.
Position IDSposition_idslist
list of relevant position IDs - default is all.
Page sizepage_sizenumber
number of results to return.At least 0.
Pagepagenumber
number of results to return * page.At least 0.
Show planning eventsshow_planning_eventstrue/false
controls whether to show events with the status of planning.
Start datestart_datedateRequired
First date of the requested interval.
End dateend_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

Queryquerytext
Only return users with matching prefix in name, lastname or email.
IDSidstext
Comma separated list of ids, only return users with matching id.
Include deletedinclude_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

Datedatedate
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

IDSidstext
Comma separated list of ids, only return groups with matching ids.
Typetypetext
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 datestart_datedateRequired
First date of the requested interval.
End dateend_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
}

On this page