Camelo GraphQL API Reference

Welcome to the Camelo GraphQL API reference! This reference includes the complete set of GraphQL types, queries, mutations, and their parameters for interacting with our API. For more tutorial-oriented API documentation, please check out our API Guide.

API Endpoints
# Production:
https://api.camelohq.com/graphql
Headers
# User JWT Token
Authorization: Bearer <YOUR_TOKEN_HERE>

Queries

abilities

Response

Returns an Abilities!

Example

Query
query abilities {
  abilities {
    currentSubscriptions {
      features
      id
      state
      subscriptionItems {
        ...SubscriptionItemFragment
      }
      subscriptionPlans {
        ...SubscriptionPlanFragment
      }
      trialEndAt
    }
    policyMatrix {
      evaluator
      id
      policy
    }
    roles {
      code
      description
      id
      name
      rolesUsers {
        ...RolesUserFragment
      }
    }
    rolesUsers {
      id
      metaData {
        ...RoleMetaDataFragment
      }
      role {
        ...RoleFragment
      }
      user {
        ...UserFragment
      }
    }
    scheduleIds
  }
}
Response
{
  "data": {
    "abilities": {
      "currentSubscriptions": [SubscriptionModel],
      "policyMatrix": [PolicyMatrixItem],
      "roles": [Role],
      "rolesUsers": [RolesUser],
      "scheduleIds": ["xyz789"]
    }
  }
}

allow

Description

Check policy permission for the current authorization context

Response

Returns a Boolean!

Arguments
Name Description
policyAction - String! PolicyClass/action
recordGid - String Record GlobalID

Example

Query
query allow(
  $policyAction: String!,
  $recordGid: String
) {
  allow(
    policyAction: $policyAction,
    recordGid: $recordGid
  )
}
Variables
{
  "policyAction": "abc123",
  "recordGid": "abc123"
}
Response
{"data": {"allow": false}}

appNotifications

Description

Lists all notifications of the current user

Response

Returns an AppNotificationConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.
type - AppNotificationTypeEnum

Example

Query
query appNotifications(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int,
  $type: AppNotificationTypeEnum
) {
  appNotifications(
    after: $after,
    before: $before,
    first: $first,
    last: $last,
    type: $type
  ) {
    edges {
      cursor
      node {
        ...AppNotificationFragment
      }
    }
    nodes {
      blocks
      createdAt
      id
      read
      text
      type
      updatedAt
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "abc123",
  "before": "xyz789",
  "first": 987,
  "last": 987,
  "type": "CAMELO_UPDATES"
}
Response
{
  "data": {
    "appNotifications": {
      "edges": [AppNotificationEdge],
      "nodes": [AppNotification],
      "pageInfo": PageInfo,
      "totalCount": 987
    }
  }
}

apps

Description

Lists all apps from a workspace

Response

Returns an AppConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query apps(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int
) {
  apps(
    after: $after,
    before: $before,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...AppFragment
      }
    }
    nodes {
      appModule
      backgroundColor
      description
      emojiIcon
      id
      name
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "xyz789",
  "before": "xyz789",
  "first": 987,
  "last": 987
}
Response
{
  "data": {
    "apps": {
      "edges": [AppEdge],
      "nodes": [App],
      "pageInfo": PageInfo,
      "totalCount": 987
    }
  }
}

attendanceNoticesReport

Description

Get attendance notices

Response

Returns [AttendanceNotice!]!

Arguments
Name Description
filter - AttendanceNoticesReportFilter!

Example

Query
query attendanceNoticesReport($filter: AttendanceNoticesReportFilter!) {
  attendanceNoticesReport(filter: $filter) {
    punch {
      atTime
      attachment {
        ...TimeCardPunchAttachmentFragment
      }
      createdAt
      id
      note
      punchType
      timeCardId
      updatedAt
      warnings {
        ...TimeCardPunchWarningFragment
      }
    }
    user {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
  }
}
Variables
{"filter": AttendanceNoticesReportFilter}
Response
{
  "data": {
    "attendanceNoticesReport": [
      {
        "punch": TimeCardPunch,
        "user": User
      }
    ]
  }
}

availabilities

Description

Lists all availabilities of a workspace

Response

Returns an AvailabilityConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - AvailabilityFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query availabilities(
  $after: String,
  $before: String,
  $filter: AvailabilityFilter,
  $first: Int,
  $last: Int
) {
  availabilities(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...AvailabilityFragment
      }
    }
    nodes {
      allDay
      createdAt
      from
      id
      note
      recurrence {
        ...RecurrenceFragment
      }
      timezone
      to
      type
      updatedAt
      user {
        ...UserFragment
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "xyz789",
  "before": "abc123",
  "filter": AvailabilityFilter,
  "first": 123,
  "last": 987
}
Response
{
  "data": {
    "availabilities": {
      "edges": [AvailabilityEdge],
      "nodes": [Availability],
      "pageInfo": PageInfo,
      "totalCount": 123
    }
  }
}

availability

Description

Get an availability detail

Response

Returns an Availability

Arguments
Name Description
id - ID!

Example

Query
query availability($id: ID!) {
  availability(id: $id) {
    allDay
    createdAt
    from
    id
    note
    recurrence {
      id
      rrule
      timezone
    }
    timezone
    to
    type
    updatedAt
    user {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "availability": {
      "allDay": false,
      "createdAt": ISO8601DateTime,
      "from": ISO8601DateTime,
      "id": 4,
      "note": "xyz789",
      "recurrence": Recurrence,
      "timezone": "abc123",
      "to": ISO8601DateTime,
      "type": "PREFERRED_WORKING_TIME",
      "updatedAt": ISO8601DateTime,
      "user": User
    }
  }
}

calendarEvents

Description

Lists all calendar events of a workspace

Response

Returns a CalendarEventConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - CalendarEventFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query calendarEvents(
  $after: String,
  $before: String,
  $filter: CalendarEventFilter,
  $first: Int,
  $last: Int
) {
  calendarEvents(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...CalendarEventFragment
      }
    }
    nodes {
      allDay
      createdAt
      creator {
        ...UserFragment
      }
      eventType
      from
      id
      note
      recurrence {
        ...RecurrenceFragment
      }
      schedules {
        ...ScheduleFragment
      }
      state
      timezone
      to
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "abc123",
  "before": "xyz789",
  "filter": CalendarEventFilter,
  "first": 987,
  "last": 987
}
Response
{
  "data": {
    "calendarEvents": {
      "edges": [CalendarEventEdge],
      "nodes": [CalendarEvent],
      "pageInfo": PageInfo,
      "totalCount": 123
    }
  }
}

channel

Description

Get a channel detail

Response

Returns a ChatChannel

Arguments
Name Description
id - ID!

Example

Query
query channel($id: ID!) {
  channel(id: $id) {
    archivedAt
    channelType
    chatMessagesCount
    color
    creator {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    currentMember {
      chatChannel {
        ...ChatChannelFragment
      }
      id
      lastViewedAt
      lastViewedMessagesCount
      mentionCount
      notifyProps {
        ...ChannelMemberNotifyPropsFragment
      }
      role
      user {
        ...UserFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
    displayName
    emojiIcon
    id
    lastAddedMessageContent
    lastMessageAt
    members {
      chatChannel {
        ...ChatChannelFragment
      }
      id
      lastViewedAt
      lastViewedMessagesCount
      mentionCount
      notifyProps {
        ...ChannelMemberNotifyPropsFragment
      }
      role
      user {
        ...UserFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
    purpose
    readOnly
    suggested
    users {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    workspace {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "channel": {
      "archivedAt": ISO8601DateTime,
      "channelType": "DIRECT",
      "chatMessagesCount": 987,
      "color": "abc123",
      "creator": User,
      "currentMember": ChannelMember,
      "displayName": "xyz789",
      "emojiIcon": "abc123",
      "id": 4,
      "lastAddedMessageContent": "abc123",
      "lastMessageAt": ISO8601DateTime,
      "members": [ChannelMember],
      "purpose": "xyz789",
      "readOnly": false,
      "suggested": true,
      "users": [User],
      "workspace": Workspace
    }
  }
}

channelMember

Description

Get a channel member detail of the current user

Response

Returns a ChannelMember

Arguments
Name Description
id - ID!

Example

Query
query channelMember($id: ID!) {
  channelMember(id: $id) {
    chatChannel {
      archivedAt
      channelType
      chatMessagesCount
      color
      creator {
        ...UserFragment
      }
      currentMember {
        ...ChannelMemberFragment
      }
      displayName
      emojiIcon
      id
      lastAddedMessageContent
      lastMessageAt
      members {
        ...ChannelMemberFragment
      }
      purpose
      readOnly
      suggested
      users {
        ...UserFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
    id
    lastViewedAt
    lastViewedMessagesCount
    mentionCount
    notifyProps {
      muted
      notification
    }
    role
    user {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    workspace {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "channelMember": {
      "chatChannel": ChatChannel,
      "id": 4,
      "lastViewedAt": ISO8601DateTime,
      "lastViewedMessagesCount": 123,
      "mentionCount": 987,
      "notifyProps": ChannelMemberNotifyProps,
      "role": "ADMIN",
      "user": User,
      "workspace": Workspace
    }
  }
}

channels

Description

Lists all channels based on the given filter

Response

Returns a ChatChannelConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - ChannelFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query channels(
  $after: String,
  $before: String,
  $filter: ChannelFilter,
  $first: Int,
  $last: Int
) {
  channels(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...ChatChannelFragment
      }
    }
    nodes {
      archivedAt
      channelType
      chatMessagesCount
      color
      creator {
        ...UserFragment
      }
      currentMember {
        ...ChannelMemberFragment
      }
      displayName
      emojiIcon
      id
      lastAddedMessageContent
      lastMessageAt
      members {
        ...ChannelMemberFragment
      }
      purpose
      readOnly
      suggested
      users {
        ...UserFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "abc123",
  "before": "xyz789",
  "filter": ChannelFilter,
  "first": 123,
  "last": 987
}
Response
{
  "data": {
    "channels": {
      "edges": [ChatChannelEdge],
      "nodes": [ChatChannel],
      "pageInfo": PageInfo,
      "totalCount": 987
    }
  }
}

channelsInvitableUsers

Description

Lists all relevant users for inviting to a channel

Response

Returns a UserConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
channelId - ID!
first - Int Returns the first n elements from the list.
keyword - String
last - Int Returns the last n elements from the list.

Example

Query
query channelsInvitableUsers(
  $after: String,
  $before: String,
  $channelId: ID!,
  $first: Int,
  $keyword: String,
  $last: Int
) {
  channelsInvitableUsers(
    after: $after,
    before: $before,
    channelId: $channelId,
    first: $first,
    keyword: $keyword,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...UserFragment
      }
    }
    nodes {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "xyz789",
  "before": "abc123",
  "channelId": 4,
  "first": 987,
  "keyword": "abc123",
  "last": 987
}
Response
{
  "data": {
    "channelsInvitableUsers": {
      "edges": [UserEdge],
      "nodes": [User],
      "pageInfo": PageInfo,
      "totalCount": 987
    }
  }
}

channelsMembers

Description

Lists all joined channels of the current user

Response

Returns [ChannelMember!]!

Example

Query
query channelsMembers {
  channelsMembers {
    chatChannel {
      archivedAt
      channelType
      chatMessagesCount
      color
      creator {
        ...UserFragment
      }
      currentMember {
        ...ChannelMemberFragment
      }
      displayName
      emojiIcon
      id
      lastAddedMessageContent
      lastMessageAt
      members {
        ...ChannelMemberFragment
      }
      purpose
      readOnly
      suggested
      users {
        ...UserFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
    id
    lastViewedAt
    lastViewedMessagesCount
    mentionCount
    notifyProps {
      muted
      notification
    }
    role
    user {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    workspace {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Response
{
  "data": {
    "channelsMembers": [
      {
        "chatChannel": ChatChannel,
        "id": "4",
        "lastViewedAt": ISO8601DateTime,
        "lastViewedMessagesCount": 123,
        "mentionCount": 987,
        "notifyProps": ChannelMemberNotifyProps,
        "role": "ADMIN",
        "user": User,
        "workspace": Workspace
      }
    ]
  }
}

checklist

Description

Get checklist detail

Response

Returns a Checklist

Arguments
Name Description
id - ID!

Example

Query
query checklist($id: ID!) {
  checklist(id: $id) {
    creator {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    id
    name
    tasks {
      assignee {
        ...UserFragment
      }
      checklist {
        ...ChecklistFragment
      }
      code
      comments {
        ...CommentFragment
      }
      completedLog {
        ...CompletedLogFragment
      }
      completionCountTarget
      description
      doneAt
      dueDate
      id
      inProgressAt
      lastCompletedAt
      name
      notStartedAt
      parent {
        ...TaskFragment
      }
      requester {
        ...UserFragment
      }
      state
      subTasks {
        ...TaskFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
    template
    workspace {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "checklist": {
      "creator": User,
      "id": 4,
      "name": "xyz789",
      "tasks": [Task],
      "template": false,
      "workspace": Workspace
    }
  }
}

checklistAssignments

Description

Lists all checklist assignments the current user can view

Response

Returns [ChecklistAssignment!]!

Arguments
Name Description
filter - ChecklistAssignmentFilter

Example

Query
query checklistAssignments($filter: ChecklistAssignmentFilter) {
  checklistAssignments(filter: $filter) {
    assignable {
      ... on Group {
        ...GroupFragment
      }
      ... on JobSite {
        ...JobSiteFragment
      }
      ... on Schedule {
        ...ScheduleFragment
      }
      ... on Shift {
        ...ShiftFragment
      }
    }
    checklist {
      creator {
        ...UserFragment
      }
      id
      name
      tasks {
        ...TaskFragment
      }
      template
      workspace {
        ...WorkspaceFragment
      }
    }
    collaborationMode
    completionPercentage
    date
    id
    recurrence {
      id
      rrule
      timezone
    }
  }
}
Variables
{"filter": ChecklistAssignmentFilter}
Response
{
  "data": {
    "checklistAssignments": [
      {
        "assignable": Group,
        "checklist": Checklist,
        "collaborationMode": "COLLABORATIVE",
        "completionPercentage": 987,
        "date": ISO8601DateTime,
        "id": "4",
        "recurrence": Recurrence
      }
    ]
  }
}

checklists

Description

Lists all checklists the current user can view

Response

Returns [Checklist!]!

Arguments
Name Description
filter - ChecklistFilter

Example

Query
query checklists($filter: ChecklistFilter) {
  checklists(filter: $filter) {
    creator {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    id
    name
    tasks {
      assignee {
        ...UserFragment
      }
      checklist {
        ...ChecklistFragment
      }
      code
      comments {
        ...CommentFragment
      }
      completedLog {
        ...CompletedLogFragment
      }
      completionCountTarget
      description
      doneAt
      dueDate
      id
      inProgressAt
      lastCompletedAt
      name
      notStartedAt
      parent {
        ...TaskFragment
      }
      requester {
        ...UserFragment
      }
      state
      subTasks {
        ...TaskFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
    template
    workspace {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{"filter": ChecklistFilter}
Response
{
  "data": {
    "checklists": [
      {
        "creator": User,
        "id": "4",
        "name": "abc123",
        "tasks": [Task],
        "template": true,
        "workspace": Workspace
      }
    ]
  }
}

comments

Description

Lists all comments of a commentable

Response

Returns a CommentConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
commentableId - ID!
commentableType - CommentableTypeEnum!
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query comments(
  $after: String,
  $before: String,
  $commentableId: ID!,
  $commentableType: CommentableTypeEnum!,
  $first: Int,
  $last: Int
) {
  comments(
    after: $after,
    before: $before,
    commentableId: $commentableId,
    commentableType: $commentableType,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...CommentFragment
      }
    }
    nodes {
      author {
        ...UserFragment
      }
      commentableId
      commentableType
      content
      createdAt
      data {
        ...CommentDataEntryFragment
      }
      id
      pinnedAt
      reactions {
        ...ReactionFragment
      }
      systemGenerated
      visibility
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "abc123",
  "before": "xyz789",
  "commentableId": "4",
  "commentableType": "CLIENT",
  "first": 123,
  "last": 123
}
Response
{
  "data": {
    "comments": {
      "edges": [CommentEdge],
      "nodes": [Comment],
      "pageInfo": PageInfo,
      "totalCount": 987
    }
  }
}

dashboardOverview

Description

Get data report for owner

Response

Returns a Dashboard!

Arguments
Name Description
filter - DashboardOverviewFilter

Example

Query
query dashboardOverview($filter: DashboardOverviewFilter) {
  dashboardOverview(filter: $filter) {
    mostAbsent {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    mostLate {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    mostLeaveDays {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    mostReliable {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
  }
}
Variables
{"filter": DashboardOverviewFilter}
Response
{
  "data": {
    "dashboardOverview": {
      "mostAbsent": User,
      "mostLate": User,
      "mostLeaveDays": User,
      "mostReliable": User
    }
  }
}

directChannel

Description

Get the direct channel with a recipient

Response

Returns a ChannelMember

Arguments
Name Description
recipientId - ID!

Example

Query
query directChannel($recipientId: ID!) {
  directChannel(recipientId: $recipientId) {
    chatChannel {
      archivedAt
      channelType
      chatMessagesCount
      color
      creator {
        ...UserFragment
      }
      currentMember {
        ...ChannelMemberFragment
      }
      displayName
      emojiIcon
      id
      lastAddedMessageContent
      lastMessageAt
      members {
        ...ChannelMemberFragment
      }
      purpose
      readOnly
      suggested
      users {
        ...UserFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
    id
    lastViewedAt
    lastViewedMessagesCount
    mentionCount
    notifyProps {
      muted
      notification
    }
    role
    user {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    workspace {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{"recipientId": "4"}
Response
{
  "data": {
    "directChannel": {
      "chatChannel": ChatChannel,
      "id": 4,
      "lastViewedAt": ISO8601DateTime,
      "lastViewedMessagesCount": 987,
      "mentionCount": 123,
      "notifyProps": ChannelMemberNotifyProps,
      "role": "ADMIN",
      "user": User,
      "workspace": Workspace
    }
  }
}

document

Description

Get document detail

Response

Returns a Document

Arguments
Name Description
id - ID!

Example

Query
query document($id: ID!) {
  document(id: $id) {
    acknowledgementRequired
    acknowledgements {
      acknowledgeable {
        ... on Document {
          ...DocumentFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
      }
      acknowledgedAt
      createdAt
      deletedAt
      id
      updatedAt
      user {
        ...UserFragment
      }
    }
    allUsersAssigned
    archived
    assignedGroups {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
      users {
        ...UserFragment
      }
      usersCount
    }
    assignees {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    assignmentType
    color
    createdAt
    creator {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    deletedAt
    documentAttachments {
      attachment
      createdAt
      documentId
      id
      updatedAt
    }
    expiredAt
    folder {
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      description
      documents {
        ...DocumentFragment
      }
      id
      level
      name
      parent {
        ...FolderFragment
      }
      private
      subFolders {
        ...FolderFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
    id
    name
    notes
    pinnedAt
    shareWithNewHires
    state
    tags {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
    }
    updatedAt
    workspace {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "document": {
      "acknowledgementRequired": false,
      "acknowledgements": [Acknowledgement],
      "allUsersAssigned": true,
      "archived": false,
      "assignedGroups": [Group],
      "assignees": [User],
      "assignmentType": "PERSONAL",
      "color": "xyz789",
      "createdAt": ISO8601DateTime,
      "creator": User,
      "deletedAt": ISO8601DateTime,
      "documentAttachments": [DocumentAttachment],
      "expiredAt": ISO8601DateTime,
      "folder": Folder,
      "id": 4,
      "name": "abc123",
      "notes": "abc123",
      "pinnedAt": ISO8601DateTime,
      "shareWithNewHires": true,
      "state": "DRAFT",
      "tags": [Tag],
      "updatedAt": ISO8601DateTime,
      "workspace": Workspace
    }
  }
}

documents

Description

Lists all documents from a workspace

Response

Returns a DocumentConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - DocumentFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query documents(
  $after: String,
  $before: String,
  $filter: DocumentFilter,
  $first: Int,
  $last: Int
) {
  documents(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...DocumentFragment
      }
    }
    nodes {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      allUsersAssigned
      archived
      assignedGroups {
        ...GroupFragment
      }
      assignees {
        ...UserFragment
      }
      assignmentType
      color
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      documentAttachments {
        ...DocumentAttachmentFragment
      }
      expiredAt
      folder {
        ...FolderFragment
      }
      id
      name
      notes
      pinnedAt
      shareWithNewHires
      state
      tags {
        ...TagFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "xyz789",
  "before": "xyz789",
  "filter": DocumentFilter,
  "first": 987,
  "last": 987
}
Response
{
  "data": {
    "documents": {
      "edges": [DocumentEdge],
      "nodes": [Document],
      "pageInfo": PageInfo,
      "totalCount": 123
    }
  }
}

employeeGetStartedSteps

Description

Lists all get started steps of the current user, if role is employee

Response

Returns [EmployeeGetStartedStep!]!

Example

Query
query employeeGetStartedSteps {
  employeeGetStartedSteps {
    id
    name
    order
    state
  }
}
Response
{
  "data": {
    "employeeGetStartedSteps": [
      {"id": 4, "name": "CLOCK_IN", "order": 987, "state": "FINISHED"}
    ]
  }
}

employeeImportRequest

Description

Get employee import request details

Response

Returns an EmployeeImportRequest

Arguments
Name Description
id - ID!

Example

Query
query employeeImportRequest($id: ID!) {
  employeeImportRequest(id: $id) {
    createdAt
    csvFile
    data
    id
    requester {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    state
    updatedAt
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "employeeImportRequest": {
      "createdAt": ISO8601DateTime,
      "csvFile": "abc123",
      "data": {},
      "id": 4,
      "requester": User,
      "state": "DONE",
      "updatedAt": ISO8601DateTime
    }
  }
}

folder

Description

Get folder detail

Response

Returns a Folder

Arguments
Name Description
id - ID!

Example

Query
query folder($id: ID!) {
  folder(id: $id) {
    createdAt
    creator {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    deletedAt
    description
    documents {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      allUsersAssigned
      archived
      assignedGroups {
        ...GroupFragment
      }
      assignees {
        ...UserFragment
      }
      assignmentType
      color
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      documentAttachments {
        ...DocumentAttachmentFragment
      }
      expiredAt
      folder {
        ...FolderFragment
      }
      id
      name
      notes
      pinnedAt
      shareWithNewHires
      state
      tags {
        ...TagFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
    id
    level
    name
    parent {
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      description
      documents {
        ...DocumentFragment
      }
      id
      level
      name
      parent {
        ...FolderFragment
      }
      private
      subFolders {
        ...FolderFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
    private
    subFolders {
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      description
      documents {
        ...DocumentFragment
      }
      id
      level
      name
      parent {
        ...FolderFragment
      }
      private
      subFolders {
        ...FolderFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
    updatedAt
    workspace {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "folder": {
      "createdAt": ISO8601DateTime,
      "creator": User,
      "deletedAt": ISO8601DateTime,
      "description": "abc123",
      "documents": [Document],
      "id": "4",
      "level": 123,
      "name": "xyz789",
      "parent": Folder,
      "private": false,
      "subFolders": [Folder],
      "updatedAt": ISO8601DateTime,
      "workspace": Workspace
    }
  }
}

folders

Description

Lists all folders from a workspace

Response

Returns [Folder!]!

Arguments
Name Description
filter - FolderFilter

Example

Query
query folders($filter: FolderFilter) {
  folders(filter: $filter) {
    createdAt
    creator {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    deletedAt
    description
    documents {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      allUsersAssigned
      archived
      assignedGroups {
        ...GroupFragment
      }
      assignees {
        ...UserFragment
      }
      assignmentType
      color
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      documentAttachments {
        ...DocumentAttachmentFragment
      }
      expiredAt
      folder {
        ...FolderFragment
      }
      id
      name
      notes
      pinnedAt
      shareWithNewHires
      state
      tags {
        ...TagFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
    id
    level
    name
    parent {
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      description
      documents {
        ...DocumentFragment
      }
      id
      level
      name
      parent {
        ...FolderFragment
      }
      private
      subFolders {
        ...FolderFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
    private
    subFolders {
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      description
      documents {
        ...DocumentFragment
      }
      id
      level
      name
      parent {
        ...FolderFragment
      }
      private
      subFolders {
        ...FolderFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
    updatedAt
    workspace {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{"filter": FolderFilter}
Response
{
  "data": {
    "folders": [
      {
        "createdAt": ISO8601DateTime,
        "creator": User,
        "deletedAt": ISO8601DateTime,
        "description": "xyz789",
        "documents": [Document],
        "id": "4",
        "level": 123,
        "name": "xyz789",
        "parent": Folder,
        "private": false,
        "subFolders": [Folder],
        "updatedAt": ISO8601DateTime,
        "workspace": Workspace
      }
    ]
  }
}

group

Description

Get a group detail

Response

Returns a Group!

Arguments
Name Description
id - ID!

Example

Query
query group($id: ID!) {
  group(id: $id) {
    color
    colorName
    createdAt
    default
    deletedAt
    id
    name
    updatedAt
    users {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    usersCount
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "group": {
      "color": "abc123",
      "colorName": "xyz789",
      "createdAt": ISO8601DateTime,
      "default": false,
      "deletedAt": ISO8601DateTime,
      "id": "4",
      "name": "xyz789",
      "updatedAt": ISO8601DateTime,
      "users": [User],
      "usersCount": 123
    }
  }
}

groups

Description

Lists all groups from a specific filter

Response

Returns a GroupSearchPayload!

Arguments
Name Description
filter - GroupFilter

Example

Query
query groups($filter: GroupFilter) {
  groups(filter: $filter) {
    seedGroups {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
      users {
        ...UserFragment
      }
      usersCount
    }
    userGroups {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
      users {
        ...UserFragment
      }
      usersCount
    }
    workspaceGroups {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
      users {
        ...UserFragment
      }
      usersCount
    }
  }
}
Variables
{"filter": GroupFilter}
Response
{
  "data": {
    "groups": {
      "seedGroups": [Group],
      "userGroups": [Group],
      "workspaceGroups": [Group]
    }
  }
}

jobSites

Description

Lists all job sites of the current workspace

Response

Returns a JobSiteConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - JobSiteFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query jobSites(
  $after: String,
  $before: String,
  $filter: JobSiteFilter,
  $first: Int,
  $last: Int
) {
  jobSites(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...JobSiteFragment
      }
    }
    nodes {
      address
      attachments {
        ...JobSiteAttachmentFragment
      }
      color
      createdAt
      geoLat
      geoLong
      id
      name
      note
      payRate {
        ...JobSitePayRateFragment
      }
      schedules {
        ...ScheduleFragment
      }
      updatedAt
      wifiBssid
      wifiSsid
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "abc123",
  "before": "xyz789",
  "filter": JobSiteFilter,
  "first": 987,
  "last": 987
}
Response
{
  "data": {
    "jobSites": {
      "edges": [JobSiteEdge],
      "nodes": [JobSite],
      "pageInfo": PageInfo,
      "totalCount": 987
    }
  }
}

joinCode

Description

Returns the workspace effective join_code

Response

Returns a JoinCode

Example

Query
query joinCode {
  joinCode {
    code
    effectiveUntil
    id
    requireApproval
  }
}
Response
{
  "data": {
    "joinCode": {
      "code": "abc123",
      "effectiveUntil": ISO8601DateTime,
      "id": 4,
      "requireApproval": false
    }
  }
}

joinRequests

Description

Lists all join request from a workspace

Response

Returns a JoinRequestConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - JoinRequestFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query joinRequests(
  $after: String,
  $before: String,
  $filter: JoinRequestFilter,
  $first: Int,
  $last: Int
) {
  joinRequests(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...JoinRequestFragment
      }
    }
    nodes {
      id
      state
      user {
        ...UserFragment
      }
      userInfo
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "xyz789",
  "before": "abc123",
  "filter": JoinRequestFilter,
  "first": 987,
  "last": 987
}
Response
{
  "data": {
    "joinRequests": {
      "edges": [JoinRequestEdge],
      "nodes": [JoinRequest],
      "pageInfo": PageInfo,
      "totalCount": 123
    }
  }
}

kioskUsers

Description

Lists all users from a workspace if the requester is kiosk app

Response

Returns a UserConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query kioskUsers(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int
) {
  kioskUsers(
    after: $after,
    before: $before,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...UserFragment
      }
    }
    nodes {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "xyz789",
  "before": "xyz789",
  "first": 987,
  "last": 987
}
Response
{
  "data": {
    "kioskUsers": {
      "edges": [UserEdge],
      "nodes": [User],
      "pageInfo": PageInfo,
      "totalCount": 123
    }
  }
}

leaveCategories

Description

All leave categories of current workspace

Response

Returns a LeaveCategoryConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - LeaveCategoryFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query leaveCategories(
  $after: String,
  $before: String,
  $filter: LeaveCategoryFilter,
  $first: Int,
  $last: Int
) {
  leaveCategories(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...LeaveCategoryFragment
      }
    }
    nodes {
      enabled
      id
      name
      paidLeave
      unpaidLeave
      workspace {
        ...WorkspaceFragment
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "abc123",
  "before": "abc123",
  "filter": LeaveCategoryFilter,
  "first": 987,
  "last": 123
}
Response
{
  "data": {
    "leaveCategories": {
      "edges": [LeaveCategoryEdge],
      "nodes": [LeaveCategory],
      "pageInfo": PageInfo,
      "totalCount": 123
    }
  }
}

leaveRequest

Description

Get leave detail

Response

Returns a LeaveRequest

Arguments
Name Description
id - ID!

Example

Query
query leaveRequest($id: ID!) {
  leaveRequest(id: $id) {
    allDay
    approvedAt
    approver {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    approverId
    canceledAt
    days {
      date
      minutes
    }
    draftAt
    employee {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    from
    id
    leaveCategory {
      enabled
      id
      name
      paidLeave
      unpaidLeave
      workspace {
        ...WorkspaceFragment
      }
    }
    paid
    processedAt
    reason
    rejectedAt
    requester {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    state
    submittedAt
    timezone
    to
    totalDuration
    updatedAt
    workspace {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "leaveRequest": {
      "allDay": true,
      "approvedAt": ISO8601DateTime,
      "approver": User,
      "approverId": 4,
      "canceledAt": ISO8601DateTime,
      "days": [LeaveRequestDay],
      "draftAt": ISO8601DateTime,
      "employee": User,
      "from": ISO8601DateTime,
      "id": 4,
      "leaveCategory": LeaveCategory,
      "paid": true,
      "processedAt": ISO8601DateTime,
      "reason": "abc123",
      "rejectedAt": ISO8601DateTime,
      "requester": User,
      "state": "APPROVED",
      "submittedAt": ISO8601DateTime,
      "timezone": "abc123",
      "to": ISO8601DateTime,
      "totalDuration": Minute,
      "updatedAt": ISO8601DateTime,
      "workspace": Workspace
    }
  }
}

leaveRequestApprovers

Description

List all users eligible to approve LR of current workspace

Response

Returns a UserConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query leaveRequestApprovers(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int
) {
  leaveRequestApprovers(
    after: $after,
    before: $before,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...UserFragment
      }
    }
    nodes {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "abc123",
  "before": "abc123",
  "first": 987,
  "last": 987
}
Response
{
  "data": {
    "leaveRequestApprovers": {
      "edges": [UserEdge],
      "nodes": [User],
      "pageInfo": PageInfo,
      "totalCount": 987
    }
  }
}

leaveRequests

Description

Lists all leaves from a workspace

Response

Returns a LeaveRequestConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - LeaveFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.
order - LeaveOrder Default = {column: FROM, direction: DESC}

Example

Query
query leaveRequests(
  $after: String,
  $before: String,
  $filter: LeaveFilter,
  $first: Int,
  $last: Int,
  $order: LeaveOrder
) {
  leaveRequests(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last,
    order: $order
  ) {
    edges {
      cursor
      node {
        ...LeaveRequestFragment
      }
    }
    nodes {
      allDay
      approvedAt
      approver {
        ...UserFragment
      }
      approverId
      canceledAt
      days {
        ...LeaveRequestDayFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      id
      leaveCategory {
        ...LeaveCategoryFragment
      }
      paid
      processedAt
      reason
      rejectedAt
      requester {
        ...UserFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "abc123",
  "before": "abc123",
  "filter": LeaveFilter,
  "first": 123,
  "last": 123,
  "order": {"column": "FROM", "direction": "DESC"}
}
Response
{
  "data": {
    "leaveRequests": {
      "edges": [LeaveRequestEdge],
      "nodes": [LeaveRequest],
      "pageInfo": PageInfo,
      "totalCount": 123
    }
  }
}

leaveRequestsReport

Description

Leaves report

Response

Returns a LeaveReportResult!

Arguments
Name Description
filter - LeaveReportFilter

Example

Query
query leaveRequestsReport($filter: LeaveReportFilter) {
  leaveRequestsReport(filter: $filter) {
    paidLeaves
    unpaidLeaves
  }
}
Variables
{"filter": LeaveReportFilter}
Response
{"data": {"leaveRequestsReport": {"paidLeaves": 123, "unpaidLeaves": 123}}}

messageBoard

Description

Get message board detail

Response

Returns a MessageBoard

Arguments
Name Description
id - ID!

Example

Query
query messageBoard($id: ID!) {
  messageBoard(id: $id) {
    categories {
      createdAt
      deletedAt
      id
      messageBoard {
        ...MessageBoardFragment
      }
      name
      updatedAt
    }
    createdAt
    deletedAt
    description
    id
    messageBoardsMembers {
      createdAt
      deletedAt
      id
      messageBoard {
        ...MessageBoardFragment
      }
      role
      updatedAt
      user {
        ...UserFragment
      }
    }
    name
    pinnedAt
    shareWithNewHires
    unreadMessagesCount
    updatedAt
    workspace {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "messageBoard": {
      "categories": [MessageBoardCategory],
      "createdAt": ISO8601DateTime,
      "deletedAt": ISO8601DateTime,
      "description": "xyz789",
      "id": 4,
      "messageBoardsMembers": [MessageBoardsMember],
      "name": "abc123",
      "pinnedAt": ISO8601DateTime,
      "shareWithNewHires": false,
      "unreadMessagesCount": 987,
      "updatedAt": ISO8601DateTime,
      "workspace": Workspace
    }
  }
}

messageBoardPost

Description

Get message board post detail

Response

Returns a MessageBoardPost

Arguments
Name Description
id - ID!

Example

Query
query messageBoardPost($id: ID!) {
  messageBoardPost(id: $id) {
    acknowledgementRequired
    acknowledgements {
      acknowledgeable {
        ... on Document {
          ...DocumentFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
      }
      acknowledgedAt
      createdAt
      deletedAt
      id
      updatedAt
      user {
        ...UserFragment
      }
    }
    archivedAt
    author {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    blocks
    board {
      categories {
        ...MessageBoardCategoryFragment
      }
      createdAt
      deletedAt
      description
      id
      messageBoardsMembers {
        ...MessageBoardsMemberFragment
      }
      name
      pinnedAt
      shareWithNewHires
      unreadMessagesCount
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
    category {
      createdAt
      deletedAt
      id
      messageBoard {
        ...MessageBoardFragment
      }
      name
      updatedAt
    }
    commentEnabled
    commentsCount
    confirmationRequiredUsers {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    createdAt
    deletedAt
    draftAt
    id
    images {
      createdAt
      id
      image
      messageBoardPostId
      updatedAt
    }
    messageBoardId
    notifyUsers {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    pinnedAt
    publishedAt
    reactions {
      createdAt
      creator {
        ...UserFragment
      }
      emoji
      id
      reactable {
        ... on Comment {
          ...CommentFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
      }
      updatedAt
    }
    readAt
    scheduledPostAt
    state
    title
    updatedAt
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "messageBoardPost": {
      "acknowledgementRequired": true,
      "acknowledgements": [Acknowledgement],
      "archivedAt": ISO8601DateTime,
      "author": User,
      "blocks": {},
      "board": MessageBoard,
      "category": MessageBoardCategory,
      "commentEnabled": true,
      "commentsCount": 987,
      "confirmationRequiredUsers": [User],
      "createdAt": ISO8601DateTime,
      "deletedAt": ISO8601DateTime,
      "draftAt": ISO8601DateTime,
      "id": "4",
      "images": [MessageBoardPostImage],
      "messageBoardId": "4",
      "notifyUsers": [User],
      "pinnedAt": ISO8601DateTime,
      "publishedAt": ISO8601DateTime,
      "reactions": [Reaction],
      "readAt": ISO8601DateTime,
      "scheduledPostAt": ISO8601DateTime,
      "state": "ARCHIVED",
      "title": "xyz789",
      "updatedAt": ISO8601DateTime
    }
  }
}

messageBoardPosts

Description

Lists all message board posts from a workspace

Response

Returns a MessageBoardPostConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - MessageBoardPostFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query messageBoardPosts(
  $after: String,
  $before: String,
  $filter: MessageBoardPostFilter,
  $first: Int,
  $last: Int
) {
  messageBoardPosts(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...MessageBoardPostFragment
      }
    }
    nodes {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      archivedAt
      author {
        ...UserFragment
      }
      blocks
      board {
        ...MessageBoardFragment
      }
      category {
        ...MessageBoardCategoryFragment
      }
      commentEnabled
      commentsCount
      confirmationRequiredUsers {
        ...UserFragment
      }
      createdAt
      deletedAt
      draftAt
      id
      images {
        ...MessageBoardPostImageFragment
      }
      messageBoardId
      notifyUsers {
        ...UserFragment
      }
      pinnedAt
      publishedAt
      reactions {
        ...ReactionFragment
      }
      readAt
      scheduledPostAt
      state
      title
      updatedAt
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "abc123",
  "before": "xyz789",
  "filter": MessageBoardPostFilter,
  "first": 987,
  "last": 987
}
Response
{
  "data": {
    "messageBoardPosts": {
      "edges": [MessageBoardPostEdge],
      "nodes": [MessageBoardPost],
      "pageInfo": PageInfo,
      "totalCount": 987
    }
  }
}

messageBoards

Description

Lists all message boards from a workspace

Response

Returns [MessageBoard!]!

Arguments
Name Description
filter - MessageBoardFilter

Example

Query
query messageBoards($filter: MessageBoardFilter) {
  messageBoards(filter: $filter) {
    categories {
      createdAt
      deletedAt
      id
      messageBoard {
        ...MessageBoardFragment
      }
      name
      updatedAt
    }
    createdAt
    deletedAt
    description
    id
    messageBoardsMembers {
      createdAt
      deletedAt
      id
      messageBoard {
        ...MessageBoardFragment
      }
      role
      updatedAt
      user {
        ...UserFragment
      }
    }
    name
    pinnedAt
    shareWithNewHires
    unreadMessagesCount
    updatedAt
    workspace {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{"filter": MessageBoardFilter}
Response
{
  "data": {
    "messageBoards": [
      {
        "categories": [MessageBoardCategory],
        "createdAt": ISO8601DateTime,
        "deletedAt": ISO8601DateTime,
        "description": "xyz789",
        "id": 4,
        "messageBoardsMembers": [MessageBoardsMember],
        "name": "xyz789",
        "pinnedAt": ISO8601DateTime,
        "shareWithNewHires": true,
        "unreadMessagesCount": 987,
        "updatedAt": ISO8601DateTime,
        "workspace": Workspace
      }
    ]
  }
}

messageReadReceipts

Description

Lists all users who read a message

Response

Returns [User!]!

Arguments
Name Description
id - ID!

Example

Query
query messageReadReceipts($id: ID!) {
  messageReadReceipts(id: $id) {
    address
    avatarUrl
    birthday
    dataState
    email
    firstName
    groups {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
      users {
        ...UserFragment
      }
      usersCount
    }
    id
    kioskPinCode
    lastName
    membershipSettings {
      emailLeaveRequest
      emailManageAvailabilityRequest
      emailManageDocument
      emailManageLeaveRequest
      emailManageMessageBoard
      emailManageShiftOfferRequest
      emailManageShiftSwapRequest
      emailManageTimesheet
      emailSchedulePosted
      emailShiftOfferRequest
      emailShiftReminder
      emailShiftSwapRequest
      emailSummary
      emailTimesheet
      id
      maxDurationPerWeek
      notificationShiftLate
      typicalWorkDuration
    }
    name
    phoneNumber
    roles
    sampleUser
    schedules {
      color
      createdAt
      default
      defaultJobSite {
        ...JobSiteFragment
      }
      id
      name
      schedulesUsers {
        ...ScheduleUserFragment
      }
      timezone
      updatedAt
      users {
        ...UserFragment
      }
    }
    state
    updatedAt
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "messageReadReceipts": [
      {
        "address": "xyz789",
        "avatarUrl": "xyz789",
        "birthday": ISO8601DateTime,
        "dataState": "COMPLETE",
        "email": "xyz789",
        "firstName": "abc123",
        "groups": [Group],
        "id": "4",
        "kioskPinCode": "abc123",
        "lastName": "abc123",
        "membershipSettings": MembershipSetting,
        "name": "abc123",
        "phoneNumber": "xyz789",
        "roles": ["CONTRACTOR"],
        "sampleUser": false,
        "schedules": [Schedule],
        "state": "ACTIVE",
        "updatedAt": ISO8601DateTime
      }
    ]
  }
}

messages

Description

Lists all messages from a channel

Response

Returns a ChatMessageConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
channelId - ID!
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query messages(
  $after: String,
  $before: String,
  $channelId: ID!,
  $first: Int,
  $last: Int
) {
  messages(
    after: $after,
    before: $before,
    channelId: $channelId,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...ChatMessageFragment
      }
    }
    nodes {
      blocks
      chatAttachments {
        ...ChatAttachmentFragment
      }
      chatReactions {
        ...ChatReactionFragment
      }
      createdAt
      deletedAt
      id
      message
      pinned
      read
      updatedAt
      user {
        ...UserFragment
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "abc123",
  "before": "xyz789",
  "channelId": 4,
  "first": 123,
  "last": 987
}
Response
{
  "data": {
    "messages": {
      "edges": [ChatMessageEdge],
      "nodes": [ChatMessage],
      "pageInfo": PageInfo,
      "totalCount": 123
    }
  }
}

notifications

Description

Lists all notifications of a current user of the workspace

Response

Returns a NotificationConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - NotificationFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query notifications(
  $after: String,
  $before: String,
  $filter: NotificationFilter,
  $first: Int,
  $last: Int
) {
  notifications(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...NotificationFragment
      }
    }
    nodes {
      actedUponAt
      createdAt
      id
      message
      notificationType
      readAt
      recipient {
        ...UserFragment
      }
      recipientId
      referenceObject {
        ... on Document {
          ...DocumentFragment
        }
        ... on LeaveRequest {
          ...LeaveRequestFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
        ... on Shift {
          ...ShiftFragment
        }
        ... on ShiftClaimRequest {
          ...ShiftClaimRequestFragment
        }
        ... on TimeCard {
          ...TimeCardFragment
        }
      }
      sender {
        ...UserFragment
      }
      senderId
      title
      updatedAt
      workspaceId
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "abc123",
  "before": "abc123",
  "filter": NotificationFilter,
  "first": 987,
  "last": 123
}
Response
{
  "data": {
    "notifications": {
      "edges": [NotificationEdge],
      "nodes": [Notification],
      "pageInfo": PageInfo,
      "totalCount": 987
    }
  }
}

payRun

Description

Get Pay Run detail

Response

Returns a PayRun

Arguments
Name Description
id - ID!

Example

Query
query payRun($id: ID!) {
  payRun(id: $id) {
    id
  }
}
Variables
{"id": 4}
Response
{"data": {"payRun": {"id": 4}}}

payRuns

Description

Lists all payruns from a workspace

Response

Returns a PayRunConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - PayRunFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query payRuns(
  $after: String,
  $before: String,
  $filter: PayRunFilter,
  $first: Int,
  $last: Int
) {
  payRuns(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...PayRunFragment
      }
    }
    nodes {
      id
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "xyz789",
  "before": "abc123",
  "filter": PayRunFilter,
  "first": 123,
  "last": 987
}
Response
{
  "data": {
    "payRuns": {
      "edges": [PayRunEdge],
      "nodes": [PayRun],
      "pageInfo": PageInfo,
      "totalCount": 987
    }
  }
}

payslip

Description

Get payslip detail

Response

Returns a Payslip

Arguments
Name Description
id - ID!

Example

Query
query payslip($id: ID!) {
  payslip(id: $id) {
    id
  }
}
Variables
{"id": "4"}
Response
{"data": {"payslip": {"id": "4"}}}

payslips

Description

Lists all payslips from workspace payruns

Response

Returns a PayslipConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - PayslipFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.
order - PayslipOrder Default = {column: EMPLOYEE_NAME, direction: ASC}

Example

Query
query payslips(
  $after: String,
  $before: String,
  $filter: PayslipFilter,
  $first: Int,
  $last: Int,
  $order: PayslipOrder
) {
  payslips(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last,
    order: $order
  ) {
    edges {
      cursor
      node {
        ...PayslipFragment
      }
    }
    nodes {
      id
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "xyz789",
  "before": "abc123",
  "filter": PayslipFilter,
  "first": 123,
  "last": 987,
  "order": {"column": "EMPLOYEE_NAME", "direction": "ASC"}
}
Response
{
  "data": {
    "payslips": {
      "edges": [PayslipEdge],
      "nodes": [Payslip],
      "pageInfo": PageInfo,
      "totalCount": 123
    }
  }
}

policyMatrix

Description

Returns the policy matrix for authorization

Response

Returns [PolicyMatrixItem!]!

Example

Query
query policyMatrix {
  policyMatrix {
    evaluator
    id
    policy
  }
}
Response
{
  "data": {
    "policyMatrix": [
      {
        "evaluator": "abc123",
        "id": "xyz789",
        "policy": "abc123"
      }
    ]
  }
}

roles

Description

Lists all roles from a workspace

Response

Returns a RoleConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query roles(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int
) {
  roles(
    after: $after,
    before: $before,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...RoleFragment
      }
    }
    nodes {
      code
      description
      id
      name
      rolesUsers {
        ...RolesUserFragment
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "xyz789",
  "before": "xyz789",
  "first": 123,
  "last": 987
}
Response
{
  "data": {
    "roles": {
      "edges": [RoleEdge],
      "nodes": [Role],
      "pageInfo": PageInfo,
      "totalCount": 987
    }
  }
}

schedule

Description

Get schedule detail

Response

Returns a Schedule

Arguments
Name Description
id - ID!

Example

Query
query schedule($id: ID!) {
  schedule(id: $id) {
    color
    createdAt
    default
    defaultJobSite {
      address
      attachments {
        ...JobSiteAttachmentFragment
      }
      color
      createdAt
      geoLat
      geoLong
      id
      name
      note
      payRate {
        ...JobSitePayRateFragment
      }
      schedules {
        ...ScheduleFragment
      }
      updatedAt
      wifiBssid
      wifiSsid
    }
    id
    name
    schedulesUsers {
      id
      rank
      user {
        ...UserFragment
      }
    }
    timezone
    updatedAt
    users {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "schedule": {
      "color": "abc123",
      "createdAt": ISO8601DateTime,
      "default": false,
      "defaultJobSite": JobSite,
      "id": "4",
      "name": "abc123",
      "schedulesUsers": [ScheduleUser],
      "timezone": "xyz789",
      "updatedAt": ISO8601DateTime,
      "users": [User]
    }
  }
}

scheduleData

Description

Get shifts, leaves, and availabilities of schedules within a period

Response

Returns a ScheduleData!

Arguments
Name Description
filter - ScheduleDataFilter!

Example

Query
query scheduleData($filter: ScheduleDataFilter!) {
  scheduleData(filter: $filter) {
    availabilities {
      allDay
      createdAt
      from
      id
      note
      recurrence {
        ...RecurrenceFragment
      }
      timezone
      to
      type
      updatedAt
      user {
        ...UserFragment
      }
    }
    groups {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
      users {
        ...UserFragment
      }
      usersCount
    }
    jobSites {
      address
      attachments {
        ...JobSiteAttachmentFragment
      }
      color
      createdAt
      geoLat
      geoLong
      id
      name
      note
      payRate {
        ...JobSitePayRateFragment
      }
      schedules {
        ...ScheduleFragment
      }
      updatedAt
      wifiBssid
      wifiSsid
    }
    leaveRequests {
      allDay
      approvedAt
      approver {
        ...UserFragment
      }
      approverId
      canceledAt
      days {
        ...LeaveRequestDayFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      id
      leaveCategory {
        ...LeaveCategoryFragment
      }
      paid
      processedAt
      reason
      rejectedAt
      requester {
        ...UserFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
    shifts {
      approvedTargetedShiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      assignee {
        ...UserFragment
      }
      attachments {
        ...ShiftAttachmentFragment
      }
      breakDuration
      checklistAssignments {
        ...ChecklistAssignmentFragment
      }
      client {
        ...ClientFragment
      }
      color
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      note
      recurrence {
        ...RecurrenceFragment
      }
      requester {
        ...UserFragment
      }
      requireClaimApproval
      schedule {
        ...ScheduleFragment
      }
      shiftBatchId
      shiftClaimRequests {
        ...ShiftClaimRequestFragment
      }
      shiftPartners {
        ...ShiftFragment
      }
      shiftRequests {
        ...ShiftRequestFragment
      }
      startTime
      state
      systemNote
      timeCard {
        ...TimeCardFragment
      }
      timezone
      title
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"filter": ScheduleDataFilter}
Response
{
  "data": {
    "scheduleData": {
      "availabilities": [Availability],
      "groups": [Group],
      "jobSites": [JobSite],
      "leaveRequests": [LeaveRequest],
      "shifts": [Shift]
    }
  }
}

scheduleIcalUrl

Description

Schedule ical url of current user

Response

Returns a String!

Arguments
Name Description
smso - Boolean

Example

Query
query scheduleIcalUrl($smso: Boolean) {
  scheduleIcalUrl(smso: $smso)
}
Variables
{"smso": false}
Response
{"data": {"scheduleIcalUrl": "abc123"}}

schedulePhotos

Description

Lists all schedule photos

Response

Returns a SchedulePhotoConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - SchedulePhotoFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query schedulePhotos(
  $after: String,
  $before: String,
  $filter: SchedulePhotoFilter,
  $first: Int,
  $last: Int
) {
  schedulePhotos(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...SchedulePhotoFragment
      }
    }
    nodes {
      from
      id
      photo
      schedule {
        ...ScheduleFragment
      }
      timezone
      to
      workspace {
        ...WorkspaceFragment
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "xyz789",
  "before": "xyz789",
  "filter": SchedulePhotoFilter,
  "first": 987,
  "last": 123
}
Response
{
  "data": {
    "schedulePhotos": {
      "edges": [SchedulePhotoEdge],
      "nodes": [SchedulePhoto],
      "pageInfo": PageInfo,
      "totalCount": 123
    }
  }
}

scheduledActualHoursReport

Description

Get scheduled vs. actual duration per day for each employee

Response

Returns [ScheduledActualResponse!]!

Arguments
Name Description
filter - ScheduledActualReportFilter!

Example

Query
query scheduledActualHoursReport($filter: ScheduledActualReportFilter!) {
  scheduledActualHoursReport(filter: $filter) {
    days {
      actual
      date
      scheduled
    }
    user {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
  }
}
Variables
{"filter": ScheduledActualReportFilter}
Response
{
  "data": {
    "scheduledActualHoursReport": [
      {
        "days": [ScheduledActualPerDay],
        "user": User
      }
    ]
  }
}

scheduledStaffingReport

Description

Get scheduled staffing report

Response

Returns [Shift!]!

Arguments
Name Description
filter - ScheduledStaffingReportFilter!

Example

Query
query scheduledStaffingReport($filter: ScheduledStaffingReportFilter!) {
  scheduledStaffingReport(filter: $filter) {
    approvedTargetedShiftSwapRequests {
      acceptedAt
      approvedAt
      approver {
        ...UserFragment
      }
      createdAt
      id
      receiver {
        ...UserFragment
      }
      refusedAt
      rejectedAt
      shiftSwap {
        ...ShiftSwapFragment
      }
      state
      targetShift {
        ...ShiftFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
    assignee {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    attachments {
      attachment
      createdAt
      id
      jobSiteAttachment {
        ...JobSiteAttachmentFragment
      }
      shiftId
      updatedAt
    }
    breakDuration
    checklistAssignments {
      assignable {
        ... on Group {
          ...GroupFragment
        }
        ... on JobSite {
          ...JobSiteFragment
        }
        ... on Schedule {
          ...ScheduleFragment
        }
        ... on Shift {
          ...ShiftFragment
        }
      }
      checklist {
        ...ChecklistFragment
      }
      collaborationMode
      completionPercentage
      date
      id
      recurrence {
        ...RecurrenceFragment
      }
    }
    client {
      clientNumber
      createdAt
      email
      id
      name
      phoneNumber
      updatedAt
    }
    color
    endTime
    endType
    group {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
      users {
        ...UserFragment
      }
      usersCount
    }
    id
    jobSite {
      address
      attachments {
        ...JobSiteAttachmentFragment
      }
      color
      createdAt
      geoLat
      geoLong
      id
      name
      note
      payRate {
        ...JobSitePayRateFragment
      }
      schedules {
        ...ScheduleFragment
      }
      updatedAt
      wifiBssid
      wifiSsid
    }
    note
    recurrence {
      id
      rrule
      timezone
    }
    requester {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    requireClaimApproval
    schedule {
      color
      createdAt
      default
      defaultJobSite {
        ...JobSiteFragment
      }
      id
      name
      schedulesUsers {
        ...ScheduleUserFragment
      }
      timezone
      updatedAt
      users {
        ...UserFragment
      }
    }
    shiftBatchId
    shiftClaimRequests {
      createdAt
      id
      requester {
        ...UserFragment
      }
      shift {
        ...ShiftFragment
      }
      state
    }
    shiftPartners {
      approvedTargetedShiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      assignee {
        ...UserFragment
      }
      attachments {
        ...ShiftAttachmentFragment
      }
      breakDuration
      checklistAssignments {
        ...ChecklistAssignmentFragment
      }
      client {
        ...ClientFragment
      }
      color
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      note
      recurrence {
        ...RecurrenceFragment
      }
      requester {
        ...UserFragment
      }
      requireClaimApproval
      schedule {
        ...ScheduleFragment
      }
      shiftBatchId
      shiftClaimRequests {
        ...ShiftClaimRequestFragment
      }
      shiftPartners {
        ...ShiftFragment
      }
      shiftRequests {
        ...ShiftRequestFragment
      }
      startTime
      state
      systemNote
      timeCard {
        ...TimeCardFragment
      }
      timezone
      title
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
    shiftRequests {
      createdAt
      id
      requester {
        ...UserFragment
      }
      shift {
        ...ShiftFragment
      }
      shiftOfferRequests {
        ...ShiftOfferRequestFragment
      }
      shiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      state
      type
      workspace {
        ...WorkspaceFragment
      }
    }
    startTime
    state
    systemNote
    timeCard {
      autoDeductedUnpaidBreakDuration
      createdAt
      creator {
        ...UserFragment
      }
      endTime
      group {
        ...GroupFragment
      }
      hasWarning
      id
      note
      punches {
        ...TimeCardPunchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      shift {
        ...ShiftFragment
      }
      shiftId
      startTime
      state
      timezone
      totalDuration
    }
    timezone
    title
    updatedAt
    workspace {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{"filter": ScheduledStaffingReportFilter}
Response
{
  "data": {
    "scheduledStaffingReport": [
      {
        "approvedTargetedShiftSwapRequests": [
          ShiftSwapRequest
        ],
        "assignee": User,
        "attachments": [ShiftAttachment],
        "breakDuration": Minute,
        "checklistAssignments": [ChecklistAssignment],
        "client": Client,
        "color": "abc123",
        "endTime": ISO8601DateTime,
        "endType": "BUSINESS_DECLINE",
        "group": Group,
        "id": 4,
        "jobSite": JobSite,
        "note": "xyz789",
        "recurrence": Recurrence,
        "requester": User,
        "requireClaimApproval": false,
        "schedule": Schedule,
        "shiftBatchId": "4",
        "shiftClaimRequests": [ShiftClaimRequest],
        "shiftPartners": [Shift],
        "shiftRequests": [ShiftRequest],
        "startTime": ISO8601DateTime,
        "state": "ABSENT",
        "systemNote": "xyz789",
        "timeCard": TimeCard,
        "timezone": "abc123",
        "title": "xyz789",
        "updatedAt": ISO8601DateTime,
        "workspace": Workspace
      }
    ]
  }
}

schedules

Description

Lists all schedules the current user can view

Response

Returns a ScheduleConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - ScheduleFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query schedules(
  $after: String,
  $before: String,
  $filter: ScheduleFilter,
  $first: Int,
  $last: Int
) {
  schedules(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...ScheduleFragment
      }
    }
    nodes {
      color
      createdAt
      default
      defaultJobSite {
        ...JobSiteFragment
      }
      id
      name
      schedulesUsers {
        ...ScheduleUserFragment
      }
      timezone
      updatedAt
      users {
        ...UserFragment
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "xyz789",
  "before": "xyz789",
  "filter": ScheduleFilter,
  "first": 123,
  "last": 123
}
Response
{
  "data": {
    "schedules": {
      "edges": [ScheduleEdge],
      "nodes": [Schedule],
      "pageInfo": PageInfo,
      "totalCount": 987
    }
  }
}

shift

Description

Get shift detail

Response

Returns a Shift

Arguments
Name Description
id - ID!

Example

Query
query shift($id: ID!) {
  shift(id: $id) {
    approvedTargetedShiftSwapRequests {
      acceptedAt
      approvedAt
      approver {
        ...UserFragment
      }
      createdAt
      id
      receiver {
        ...UserFragment
      }
      refusedAt
      rejectedAt
      shiftSwap {
        ...ShiftSwapFragment
      }
      state
      targetShift {
        ...ShiftFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
    assignee {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    attachments {
      attachment
      createdAt
      id
      jobSiteAttachment {
        ...JobSiteAttachmentFragment
      }
      shiftId
      updatedAt
    }
    breakDuration
    checklistAssignments {
      assignable {
        ... on Group {
          ...GroupFragment
        }
        ... on JobSite {
          ...JobSiteFragment
        }
        ... on Schedule {
          ...ScheduleFragment
        }
        ... on Shift {
          ...ShiftFragment
        }
      }
      checklist {
        ...ChecklistFragment
      }
      collaborationMode
      completionPercentage
      date
      id
      recurrence {
        ...RecurrenceFragment
      }
    }
    client {
      clientNumber
      createdAt
      email
      id
      name
      phoneNumber
      updatedAt
    }
    color
    endTime
    endType
    group {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
      users {
        ...UserFragment
      }
      usersCount
    }
    id
    jobSite {
      address
      attachments {
        ...JobSiteAttachmentFragment
      }
      color
      createdAt
      geoLat
      geoLong
      id
      name
      note
      payRate {
        ...JobSitePayRateFragment
      }
      schedules {
        ...ScheduleFragment
      }
      updatedAt
      wifiBssid
      wifiSsid
    }
    note
    recurrence {
      id
      rrule
      timezone
    }
    requester {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    requireClaimApproval
    schedule {
      color
      createdAt
      default
      defaultJobSite {
        ...JobSiteFragment
      }
      id
      name
      schedulesUsers {
        ...ScheduleUserFragment
      }
      timezone
      updatedAt
      users {
        ...UserFragment
      }
    }
    shiftBatchId
    shiftClaimRequests {
      createdAt
      id
      requester {
        ...UserFragment
      }
      shift {
        ...ShiftFragment
      }
      state
    }
    shiftPartners {
      approvedTargetedShiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      assignee {
        ...UserFragment
      }
      attachments {
        ...ShiftAttachmentFragment
      }
      breakDuration
      checklistAssignments {
        ...ChecklistAssignmentFragment
      }
      client {
        ...ClientFragment
      }
      color
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      note
      recurrence {
        ...RecurrenceFragment
      }
      requester {
        ...UserFragment
      }
      requireClaimApproval
      schedule {
        ...ScheduleFragment
      }
      shiftBatchId
      shiftClaimRequests {
        ...ShiftClaimRequestFragment
      }
      shiftPartners {
        ...ShiftFragment
      }
      shiftRequests {
        ...ShiftRequestFragment
      }
      startTime
      state
      systemNote
      timeCard {
        ...TimeCardFragment
      }
      timezone
      title
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
    shiftRequests {
      createdAt
      id
      requester {
        ...UserFragment
      }
      shift {
        ...ShiftFragment
      }
      shiftOfferRequests {
        ...ShiftOfferRequestFragment
      }
      shiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      state
      type
      workspace {
        ...WorkspaceFragment
      }
    }
    startTime
    state
    systemNote
    timeCard {
      autoDeductedUnpaidBreakDuration
      createdAt
      creator {
        ...UserFragment
      }
      endTime
      group {
        ...GroupFragment
      }
      hasWarning
      id
      note
      punches {
        ...TimeCardPunchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      shift {
        ...ShiftFragment
      }
      shiftId
      startTime
      state
      timezone
      totalDuration
    }
    timezone
    title
    updatedAt
    workspace {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "shift": {
      "approvedTargetedShiftSwapRequests": [
        ShiftSwapRequest
      ],
      "assignee": User,
      "attachments": [ShiftAttachment],
      "breakDuration": Minute,
      "checklistAssignments": [ChecklistAssignment],
      "client": Client,
      "color": "xyz789",
      "endTime": ISO8601DateTime,
      "endType": "BUSINESS_DECLINE",
      "group": Group,
      "id": 4,
      "jobSite": JobSite,
      "note": "abc123",
      "recurrence": Recurrence,
      "requester": User,
      "requireClaimApproval": false,
      "schedule": Schedule,
      "shiftBatchId": 4,
      "shiftClaimRequests": [ShiftClaimRequest],
      "shiftPartners": [Shift],
      "shiftRequests": [ShiftRequest],
      "startTime": ISO8601DateTime,
      "state": "ABSENT",
      "systemNote": "xyz789",
      "timeCard": TimeCard,
      "timezone": "xyz789",
      "title": "abc123",
      "updatedAt": ISO8601DateTime,
      "workspace": Workspace
    }
  }
}

shiftClaimRequests

Description

Lists all shift claim requests from a workspace

Response

Returns a ShiftClaimRequestConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - ShiftClaimRequestFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query shiftClaimRequests(
  $after: String,
  $before: String,
  $filter: ShiftClaimRequestFilter,
  $first: Int,
  $last: Int
) {
  shiftClaimRequests(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...ShiftClaimRequestFragment
      }
    }
    nodes {
      createdAt
      id
      requester {
        ...UserFragment
      }
      shift {
        ...ShiftFragment
      }
      state
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "abc123",
  "before": "abc123",
  "filter": ShiftClaimRequestFilter,
  "first": 123,
  "last": 123
}
Response
{
  "data": {
    "shiftClaimRequests": {
      "edges": [ShiftClaimRequestEdge],
      "nodes": [ShiftClaimRequest],
      "pageInfo": PageInfo,
      "totalCount": 987
    }
  }
}

shiftOffer

Description

Get shift offer detail

Response

Returns a ShiftOffer

Arguments
Name Description
id - ID!

Example

Query
query shiftOffer($id: ID!) {
  shiftOffer(id: $id) {
    createdAt
    id
    requester {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    shift {
      approvedTargetedShiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      assignee {
        ...UserFragment
      }
      attachments {
        ...ShiftAttachmentFragment
      }
      breakDuration
      checklistAssignments {
        ...ChecklistAssignmentFragment
      }
      client {
        ...ClientFragment
      }
      color
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      note
      recurrence {
        ...RecurrenceFragment
      }
      requester {
        ...UserFragment
      }
      requireClaimApproval
      schedule {
        ...ScheduleFragment
      }
      shiftBatchId
      shiftClaimRequests {
        ...ShiftClaimRequestFragment
      }
      shiftPartners {
        ...ShiftFragment
      }
      shiftRequests {
        ...ShiftRequestFragment
      }
      startTime
      state
      systemNote
      timeCard {
        ...TimeCardFragment
      }
      timezone
      title
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
    shiftOfferRequests {
      acceptedAt
      approvedAt
      approver {
        ...UserFragment
      }
      createdAt
      id
      receiver {
        ...UserFragment
      }
      refusedAt
      rejectedAt
      shiftOffer {
        ...ShiftOfferFragment
      }
      state
      workspace {
        ...WorkspaceFragment
      }
    }
    state
    workspace {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "shiftOffer": {
      "createdAt": ISO8601DateTime,
      "id": 4,
      "requester": User,
      "shift": Shift,
      "shiftOfferRequests": [ShiftOfferRequest],
      "state": "ACCEPTED",
      "workspace": Workspace
    }
  }
}

shiftRequests

Description

Lists all shift requests from a workspace

Response

Returns a ShiftRequestConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - ShiftRequestFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query shiftRequests(
  $after: String,
  $before: String,
  $filter: ShiftRequestFilter,
  $first: Int,
  $last: Int
) {
  shiftRequests(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...ShiftRequestFragment
      }
    }
    nodes {
      createdAt
      id
      requester {
        ...UserFragment
      }
      shift {
        ...ShiftFragment
      }
      shiftOfferRequests {
        ...ShiftOfferRequestFragment
      }
      shiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      state
      type
      workspace {
        ...WorkspaceFragment
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "xyz789",
  "before": "abc123",
  "filter": ShiftRequestFilter,
  "first": 987,
  "last": 987
}
Response
{
  "data": {
    "shiftRequests": {
      "edges": [ShiftRequestEdge],
      "nodes": [ShiftRequest],
      "pageInfo": PageInfo,
      "totalCount": 987
    }
  }
}

shiftSwap

Description

Get shift swap detail

Response

Returns a ShiftSwap

Arguments
Name Description
id - ID!

Example

Query
query shiftSwap($id: ID!) {
  shiftSwap(id: $id) {
    createdAt
    id
    requester {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    shift {
      approvedTargetedShiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      assignee {
        ...UserFragment
      }
      attachments {
        ...ShiftAttachmentFragment
      }
      breakDuration
      checklistAssignments {
        ...ChecklistAssignmentFragment
      }
      client {
        ...ClientFragment
      }
      color
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      note
      recurrence {
        ...RecurrenceFragment
      }
      requester {
        ...UserFragment
      }
      requireClaimApproval
      schedule {
        ...ScheduleFragment
      }
      shiftBatchId
      shiftClaimRequests {
        ...ShiftClaimRequestFragment
      }
      shiftPartners {
        ...ShiftFragment
      }
      shiftRequests {
        ...ShiftRequestFragment
      }
      startTime
      state
      systemNote
      timeCard {
        ...TimeCardFragment
      }
      timezone
      title
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
    shiftSwapRequests {
      acceptedAt
      approvedAt
      approver {
        ...UserFragment
      }
      createdAt
      id
      receiver {
        ...UserFragment
      }
      refusedAt
      rejectedAt
      shiftSwap {
        ...ShiftSwapFragment
      }
      state
      targetShift {
        ...ShiftFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
    state
    workspace {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "shiftSwap": {
      "createdAt": ISO8601DateTime,
      "id": 4,
      "requester": User,
      "shift": Shift,
      "shiftSwapRequests": [ShiftSwapRequest],
      "state": "ACCEPTED",
      "workspace": Workspace
    }
  }
}

shiftTemplates

Description

Return most relevant shift templates (30 at maxium) based on criterias

Response

Returns [ShiftTemplate!]!

Arguments
Name Description
filter - ShiftTemplateFilter

Example

Query
query shiftTemplates($filter: ShiftTemplateFilter) {
  shiftTemplates(filter: $filter) {
    breakDuration
    endTime
    endType
    group {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
      users {
        ...UserFragment
      }
      usersCount
    }
    id
    jobSite {
      address
      attachments {
        ...JobSiteAttachmentFragment
      }
      color
      createdAt
      geoLat
      geoLong
      id
      name
      note
      payRate {
        ...JobSitePayRateFragment
      }
      schedules {
        ...ScheduleFragment
      }
      updatedAt
      wifiBssid
      wifiSsid
    }
    name
    note
    schedule {
      color
      createdAt
      default
      defaultJobSite {
        ...JobSiteFragment
      }
      id
      name
      schedulesUsers {
        ...ScheduleUserFragment
      }
      timezone
      updatedAt
      users {
        ...UserFragment
      }
    }
    startTime
    timezone
  }
}
Variables
{"filter": ShiftTemplateFilter}
Response
{
  "data": {
    "shiftTemplates": [
      {
        "breakDuration": Minute,
        "endTime": ISO8601DateTime,
        "endType": "BUSINESS_DECLINE",
        "group": Group,
        "id": 4,
        "jobSite": JobSite,
        "name": "xyz789",
        "note": "xyz789",
        "schedule": Schedule,
        "startTime": ISO8601DateTime,
        "timezone": "abc123"
      }
    ]
  }
}

shifts

Description

Lists all shifts from a workspace

Response

Returns a ShiftConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - ShiftFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query shifts(
  $after: String,
  $before: String,
  $filter: ShiftFilter,
  $first: Int,
  $last: Int
) {
  shifts(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...ShiftFragment
      }
    }
    nodes {
      approvedTargetedShiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      assignee {
        ...UserFragment
      }
      attachments {
        ...ShiftAttachmentFragment
      }
      breakDuration
      checklistAssignments {
        ...ChecklistAssignmentFragment
      }
      client {
        ...ClientFragment
      }
      color
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      note
      recurrence {
        ...RecurrenceFragment
      }
      requester {
        ...UserFragment
      }
      requireClaimApproval
      schedule {
        ...ScheduleFragment
      }
      shiftBatchId
      shiftClaimRequests {
        ...ShiftClaimRequestFragment
      }
      shiftPartners {
        ...ShiftFragment
      }
      shiftRequests {
        ...ShiftRequestFragment
      }
      startTime
      state
      systemNote
      timeCard {
        ...TimeCardFragment
      }
      timezone
      title
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "abc123",
  "before": "abc123",
  "filter": ShiftFilter,
  "first": 123,
  "last": 987
}
Response
{
  "data": {
    "shifts": {
      "edges": [ShiftEdge],
      "nodes": [Shift],
      "pageInfo": PageInfo,
      "totalCount": 123
    }
  }
}

tags

Description

Lists all tags of documents from a workspace

Response

Returns a TagConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query tags(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int
) {
  tags(
    after: $after,
    before: $before,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...TagFragment
      }
    }
    nodes {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "abc123",
  "before": "xyz789",
  "first": 123,
  "last": 123
}
Response
{
  "data": {
    "tags": {
      "edges": [TagEdge],
      "nodes": [Tag],
      "pageInfo": PageInfo,
      "totalCount": 123
    }
  }
}

task

Description

Get task detail

Response

Returns a Task

Arguments
Name Description
id - ID!

Example

Query
query task($id: ID!) {
  task(id: $id) {
    assignee {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    checklist {
      creator {
        ...UserFragment
      }
      id
      name
      tasks {
        ...TaskFragment
      }
      template
      workspace {
        ...WorkspaceFragment
      }
    }
    code
    comments {
      author {
        ...UserFragment
      }
      commentableId
      commentableType
      content
      createdAt
      data {
        ...CommentDataEntryFragment
      }
      id
      pinnedAt
      reactions {
        ...ReactionFragment
      }
      systemGenerated
      visibility
    }
    completedLog {
      at
      by {
        ...UserFragment
      }
      type
    }
    completionCountTarget
    description
    doneAt
    dueDate
    id
    inProgressAt
    lastCompletedAt
    name
    notStartedAt
    parent {
      assignee {
        ...UserFragment
      }
      checklist {
        ...ChecklistFragment
      }
      code
      comments {
        ...CommentFragment
      }
      completedLog {
        ...CompletedLogFragment
      }
      completionCountTarget
      description
      doneAt
      dueDate
      id
      inProgressAt
      lastCompletedAt
      name
      notStartedAt
      parent {
        ...TaskFragment
      }
      requester {
        ...UserFragment
      }
      state
      subTasks {
        ...TaskFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
    requester {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    state
    subTasks {
      assignee {
        ...UserFragment
      }
      checklist {
        ...ChecklistFragment
      }
      code
      comments {
        ...CommentFragment
      }
      completedLog {
        ...CompletedLogFragment
      }
      completionCountTarget
      description
      doneAt
      dueDate
      id
      inProgressAt
      lastCompletedAt
      name
      notStartedAt
      parent {
        ...TaskFragment
      }
      requester {
        ...UserFragment
      }
      state
      subTasks {
        ...TaskFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
    workspace {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "task": {
      "assignee": User,
      "checklist": Checklist,
      "code": "abc123",
      "comments": [Comment],
      "completedLog": [CompletedLog],
      "completionCountTarget": 123,
      "description": "abc123",
      "doneAt": ISO8601DateTime,
      "dueDate": ISO8601DateTime,
      "id": 4,
      "inProgressAt": ISO8601DateTime,
      "lastCompletedAt": ISO8601DateTime,
      "name": "abc123",
      "notStartedAt": ISO8601DateTime,
      "parent": Task,
      "requester": User,
      "state": "DONE",
      "subTasks": [Task],
      "workspace": Workspace
    }
  }
}

tasks

Description

Lists all tasks from a workspace

Response

Returns a TaskConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - TaskFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query tasks(
  $after: String,
  $before: String,
  $filter: TaskFilter,
  $first: Int,
  $last: Int
) {
  tasks(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...TaskFragment
      }
    }
    nodes {
      assignee {
        ...UserFragment
      }
      checklist {
        ...ChecklistFragment
      }
      code
      comments {
        ...CommentFragment
      }
      completedLog {
        ...CompletedLogFragment
      }
      completionCountTarget
      description
      doneAt
      dueDate
      id
      inProgressAt
      lastCompletedAt
      name
      notStartedAt
      parent {
        ...TaskFragment
      }
      requester {
        ...UserFragment
      }
      state
      subTasks {
        ...TaskFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "abc123",
  "before": "xyz789",
  "filter": TaskFilter,
  "first": 987,
  "last": 987
}
Response
{
  "data": {
    "tasks": {
      "edges": [TaskEdge],
      "nodes": [Task],
      "pageInfo": PageInfo,
      "totalCount": 987
    }
  }
}

thisWeekSnapshot

Description

A snapshot of this week schedule

Response

Returns a ThisWeekSnapshot!

Arguments
Name Description
filter - ThisWeekSnapshotFilter

Example

Query
query thisWeekSnapshot($filter: ThisWeekSnapshotFilter) {
  thisWeekSnapshot(filter: $filter) {
    assignedShifts
    id
    openShifts
    pendingTimesheets
    scheduledShifts
    unfinishedShifts
  }
}
Variables
{"filter": ThisWeekSnapshotFilter}
Response
{
  "data": {
    "thisWeekSnapshot": {
      "assignedShifts": 987,
      "id": 4,
      "openShifts": 987,
      "pendingTimesheets": 123,
      "scheduledShifts": 123,
      "unfinishedShifts": 123
    }
  }
}

timeCard

Description

Get timeCard detail

Response

Returns a TimeCard

Arguments
Name Description
id - ID!

Example

Query
query timeCard($id: ID!) {
  timeCard(id: $id) {
    autoDeductedUnpaidBreakDuration
    createdAt
    creator {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    endTime
    group {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
      users {
        ...UserFragment
      }
      usersCount
    }
    hasWarning
    id
    note
    punches {
      atTime
      attachment {
        ...TimeCardPunchAttachmentFragment
      }
      createdAt
      id
      note
      punchType
      timeCardId
      updatedAt
      warnings {
        ...TimeCardPunchWarningFragment
      }
    }
    schedule {
      color
      createdAt
      default
      defaultJobSite {
        ...JobSiteFragment
      }
      id
      name
      schedulesUsers {
        ...ScheduleUserFragment
      }
      timezone
      updatedAt
      users {
        ...UserFragment
      }
    }
    shift {
      approvedTargetedShiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      assignee {
        ...UserFragment
      }
      attachments {
        ...ShiftAttachmentFragment
      }
      breakDuration
      checklistAssignments {
        ...ChecklistAssignmentFragment
      }
      client {
        ...ClientFragment
      }
      color
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      note
      recurrence {
        ...RecurrenceFragment
      }
      requester {
        ...UserFragment
      }
      requireClaimApproval
      schedule {
        ...ScheduleFragment
      }
      shiftBatchId
      shiftClaimRequests {
        ...ShiftClaimRequestFragment
      }
      shiftPartners {
        ...ShiftFragment
      }
      shiftRequests {
        ...ShiftRequestFragment
      }
      startTime
      state
      systemNote
      timeCard {
        ...TimeCardFragment
      }
      timezone
      title
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
    shiftId
    startTime
    state
    timezone
    totalDuration
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "timeCard": {
      "autoDeductedUnpaidBreakDuration": Minute,
      "createdAt": ISO8601DateTime,
      "creator": User,
      "endTime": ISO8601DateTime,
      "group": Group,
      "hasWarning": true,
      "id": 4,
      "note": "xyz789",
      "punches": [TimeCardPunch],
      "schedule": Schedule,
      "shift": Shift,
      "shiftId": "4",
      "startTime": ISO8601DateTime,
      "state": "CLOCKED_IN",
      "timezone": "xyz789",
      "totalDuration": Minute
    }
  }
}

timeCardArrivalStatusReport

Description

Get attendance on-time summary

Response

Returns an ArrivalStatusResponse!

Arguments
Name Description
filter - ArrivalStatusReportFilter!

Example

Query
query timeCardArrivalStatusReport($filter: ArrivalStatusReportFilter!) {
  timeCardArrivalStatusReport(filter: $filter) {
    early
    late
    mostOnTimeUsers {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    ontime
    unscheduled
  }
}
Variables
{"filter": ArrivalStatusReportFilter}
Response
{
  "data": {
    "timeCardArrivalStatusReport": {
      "early": 123.45,
      "late": 123.45,
      "mostOnTimeUsers": [User],
      "ontime": 123.45,
      "unscheduled": 987.65
    }
  }
}

timeCards

Description

Lists all timecard from a workspace

Response

Returns a TimeCardConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - TimeCardFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query timeCards(
  $after: String,
  $before: String,
  $filter: TimeCardFilter,
  $first: Int,
  $last: Int
) {
  timeCards(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...TimeCardFragment
      }
    }
    nodes {
      autoDeductedUnpaidBreakDuration
      createdAt
      creator {
        ...UserFragment
      }
      endTime
      group {
        ...GroupFragment
      }
      hasWarning
      id
      note
      punches {
        ...TimeCardPunchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      shift {
        ...ShiftFragment
      }
      shiftId
      startTime
      state
      timezone
      totalDuration
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "xyz789",
  "before": "xyz789",
  "filter": TimeCardFilter,
  "first": 123,
  "last": 123
}
Response
{
  "data": {
    "timeCards": {
      "edges": [TimeCardEdge],
      "nodes": [TimeCard],
      "pageInfo": PageInfo,
      "totalCount": 987
    }
  }
}

timesheet

Description

Get a timesheet detail

Response

Returns a Timesheet

Arguments
Name Description
id - ID!

Example

Query
query timesheet($id: ID!) {
  timesheet(id: $id) {
    approvedAt
    approver {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    comments
    creator {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    draftAt
    employee {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    from
    group {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
      users {
        ...UserFragment
      }
      usersCount
    }
    id
    processedAt
    referenceObject {
      ... on Document {
        ...DocumentFragment
      }
      ... on LeaveRequest {
        ...LeaveRequestFragment
      }
      ... on MessageBoardPost {
        ...MessageBoardPostFragment
      }
      ... on Shift {
        ...ShiftFragment
      }
      ... on ShiftClaimRequest {
        ...ShiftClaimRequestFragment
      }
      ... on TimeCard {
        ...TimeCardFragment
      }
    }
    rejectedAt
    schedule {
      color
      createdAt
      default
      defaultJobSite {
        ...JobSiteFragment
      }
      id
      name
      schedulesUsers {
        ...ScheduleUserFragment
      }
      timezone
      updatedAt
      users {
        ...UserFragment
      }
    }
    state
    submittedAt
    timezone
    to
    totalDuration
    unpaidBreaks {
      ... on TimesheetAutoDeductBreak {
        ...TimesheetAutoDeductBreakFragment
      }
      ... on TimesheetManualBreak {
        ...TimesheetManualBreakFragment
      }
      ... on TimesheetPunchBreak {
        ...TimesheetPunchBreakFragment
      }
    }
    updatedAt
    workspace {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "timesheet": {
      "approvedAt": ISO8601DateTime,
      "approver": User,
      "comments": 123,
      "creator": User,
      "draftAt": ISO8601DateTime,
      "employee": User,
      "from": ISO8601DateTime,
      "group": Group,
      "id": 4,
      "processedAt": ISO8601DateTime,
      "referenceObject": Document,
      "rejectedAt": ISO8601DateTime,
      "schedule": Schedule,
      "state": "APPROVED",
      "submittedAt": ISO8601DateTime,
      "timezone": "abc123",
      "to": ISO8601DateTime,
      "totalDuration": Minute,
      "unpaidBreaks": [TimesheetAutoDeductBreak],
      "updatedAt": ISO8601DateTime,
      "workspace": Workspace
    }
  }
}

timesheetByReferenceObject

Description

Get a timesheet detail by reference object

Response

Returns a Timesheet

Arguments
Name Description
referenceObjectId - ID!
referenceObjectType - ReferenceObjectTypeEnum!

Example

Query
query timesheetByReferenceObject(
  $referenceObjectId: ID!,
  $referenceObjectType: ReferenceObjectTypeEnum!
) {
  timesheetByReferenceObject(
    referenceObjectId: $referenceObjectId,
    referenceObjectType: $referenceObjectType
  ) {
    approvedAt
    approver {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    comments
    creator {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    draftAt
    employee {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    from
    group {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
      users {
        ...UserFragment
      }
      usersCount
    }
    id
    processedAt
    referenceObject {
      ... on Document {
        ...DocumentFragment
      }
      ... on LeaveRequest {
        ...LeaveRequestFragment
      }
      ... on MessageBoardPost {
        ...MessageBoardPostFragment
      }
      ... on Shift {
        ...ShiftFragment
      }
      ... on ShiftClaimRequest {
        ...ShiftClaimRequestFragment
      }
      ... on TimeCard {
        ...TimeCardFragment
      }
    }
    rejectedAt
    schedule {
      color
      createdAt
      default
      defaultJobSite {
        ...JobSiteFragment
      }
      id
      name
      schedulesUsers {
        ...ScheduleUserFragment
      }
      timezone
      updatedAt
      users {
        ...UserFragment
      }
    }
    state
    submittedAt
    timezone
    to
    totalDuration
    unpaidBreaks {
      ... on TimesheetAutoDeductBreak {
        ...TimesheetAutoDeductBreakFragment
      }
      ... on TimesheetManualBreak {
        ...TimesheetManualBreakFragment
      }
      ... on TimesheetPunchBreak {
        ...TimesheetPunchBreakFragment
      }
    }
    updatedAt
    workspace {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{
  "referenceObjectId": "4",
  "referenceObjectType": "LEAVE_REQUEST"
}
Response
{
  "data": {
    "timesheetByReferenceObject": {
      "approvedAt": ISO8601DateTime,
      "approver": User,
      "comments": 123,
      "creator": User,
      "draftAt": ISO8601DateTime,
      "employee": User,
      "from": ISO8601DateTime,
      "group": Group,
      "id": 4,
      "processedAt": ISO8601DateTime,
      "referenceObject": Document,
      "rejectedAt": ISO8601DateTime,
      "schedule": Schedule,
      "state": "APPROVED",
      "submittedAt": ISO8601DateTime,
      "timezone": "abc123",
      "to": ISO8601DateTime,
      "totalDuration": Minute,
      "unpaidBreaks": [TimesheetAutoDeductBreak],
      "updatedAt": ISO8601DateTime,
      "workspace": Workspace
    }
  }
}

timesheets

Description

Lists all timesheets from a workspace

Response

Returns a TimesheetConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - TimesheetFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.
order - TimesheetOrder Default = {column: FROM, direction: DESC}

Example

Query
query timesheets(
  $after: String,
  $before: String,
  $filter: TimesheetFilter,
  $first: Int,
  $last: Int,
  $order: TimesheetOrder
) {
  timesheets(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last,
    order: $order
  ) {
    edges {
      cursor
      node {
        ...TimesheetFragment
      }
    }
    nodes {
      approvedAt
      approver {
        ...UserFragment
      }
      comments
      creator {
        ...UserFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      group {
        ...GroupFragment
      }
      id
      processedAt
      referenceObject {
        ... on Document {
          ...DocumentFragment
        }
        ... on LeaveRequest {
          ...LeaveRequestFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
        ... on Shift {
          ...ShiftFragment
        }
        ... on ShiftClaimRequest {
          ...ShiftClaimRequestFragment
        }
        ... on TimeCard {
          ...TimeCardFragment
        }
      }
      rejectedAt
      schedule {
        ...ScheduleFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      unpaidBreaks {
        ... on TimesheetAutoDeductBreak {
          ...TimesheetAutoDeductBreakFragment
        }
        ... on TimesheetManualBreak {
          ...TimesheetManualBreakFragment
        }
        ... on TimesheetPunchBreak {
          ...TimesheetPunchBreakFragment
        }
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "abc123",
  "before": "abc123",
  "filter": TimesheetFilter,
  "first": 123,
  "last": 987,
  "order": {"column": "FROM", "direction": "DESC"}
}
Response
{
  "data": {
    "timesheets": {
      "edges": [TimesheetEdge],
      "nodes": [Timesheet],
      "pageInfo": PageInfo,
      "totalCount": 987
    }
  }
}

timesheetsReport

Description

Get employee's hours worked

Response

Returns a TimesheetReportResult!

Arguments
Name Description
filter - TimesheetReportFilter

Example

Query
query timesheetsReport($filter: TimesheetReportFilter) {
  timesheetsReport(filter: $filter) {
    workingHoursApproved
    workingHoursSubmitted
  }
}
Variables
{"filter": TimesheetReportFilter}
Response
{
  "data": {
    "timesheetsReport": {
      "workingHoursApproved": Minute,
      "workingHoursSubmitted": Minute
    }
  }
}

timesheetsSummary

Description

Get summary for a given user timesheets

Response

Returns a TimesheetSummaryResponse!

Arguments
Name Description
filter - TimesheetSummaryFilter
userId - ID!

Example

Query
query timesheetsSummary(
  $filter: TimesheetSummaryFilter,
  $userId: ID!
) {
  timesheetsSummary(
    filter: $filter,
    userId: $userId
  ) {
    doubleOvertime
    overtime
    regular
    timeOff
    total
    totalApproved
    totalScheduled
    user {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
  }
}
Variables
{
  "filter": TimesheetSummaryFilter,
  "userId": "4"
}
Response
{
  "data": {
    "timesheetsSummary": {
      "doubleOvertime": Minute,
      "overtime": Minute,
      "regular": Minute,
      "timeOff": Minute,
      "total": Minute,
      "totalApproved": Minute,
      "totalScheduled": Minute,
      "user": User
    }
  }
}

todaySnapshot

Description

A snapshot of today schedule

Response

Returns a TodaySnapshot!

Arguments
Name Description
filter - TodaySnapshotFilter

Example

Query
query todaySnapshot($filter: TodaySnapshotFilter) {
  todaySnapshot(filter: $filter) {
    checklistAssignments {
      done
      total
    }
    currentlyClockedIn
    currentlyLate
    currentlyOnBreak
    id
    timeOffs
  }
}
Variables
{"filter": TodaySnapshotFilter}
Response
{
  "data": {
    "todaySnapshot": {
      "checklistAssignments": TodaySnapshotChecklistAssignment,
      "currentlyClockedIn": 123,
      "currentlyLate": 123,
      "currentlyOnBreak": 123,
      "id": 4,
      "timeOffs": 123
    }
  }
}

unreadNotificationsCount

Description

Return the count of unread notifications

Response

Returns an Int!

Example

Query
query unreadNotificationsCount {
  unreadNotificationsCount
}
Response
{"data": {"unreadNotificationsCount": 123}}

user

Description

Get the user profile detail

Response

Returns a User

Arguments
Name Description
id - ID!

Example

Query
query user($id: ID!) {
  user(id: $id) {
    address
    avatarUrl
    birthday
    dataState
    email
    firstName
    groups {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
      users {
        ...UserFragment
      }
      usersCount
    }
    id
    kioskPinCode
    lastName
    membershipSettings {
      emailLeaveRequest
      emailManageAvailabilityRequest
      emailManageDocument
      emailManageLeaveRequest
      emailManageMessageBoard
      emailManageShiftOfferRequest
      emailManageShiftSwapRequest
      emailManageTimesheet
      emailSchedulePosted
      emailShiftOfferRequest
      emailShiftReminder
      emailShiftSwapRequest
      emailSummary
      emailTimesheet
      id
      maxDurationPerWeek
      notificationShiftLate
      typicalWorkDuration
    }
    name
    phoneNumber
    roles
    sampleUser
    schedules {
      color
      createdAt
      default
      defaultJobSite {
        ...JobSiteFragment
      }
      id
      name
      schedulesUsers {
        ...ScheduleUserFragment
      }
      timezone
      updatedAt
      users {
        ...UserFragment
      }
    }
    state
    updatedAt
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "user": {
      "address": "abc123",
      "avatarUrl": "abc123",
      "birthday": ISO8601DateTime,
      "dataState": "COMPLETE",
      "email": "xyz789",
      "firstName": "abc123",
      "groups": [Group],
      "id": 4,
      "kioskPinCode": "xyz789",
      "lastName": "abc123",
      "membershipSettings": MembershipSetting,
      "name": "xyz789",
      "phoneNumber": "xyz789",
      "roles": ["CONTRACTOR"],
      "sampleUser": false,
      "schedules": [Schedule],
      "state": "ACTIVE",
      "updatedAt": ISO8601DateTime
    }
  }
}

users

Description

Lists all users from a workspace

Response

Returns a UserConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
filter - UserFilter
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.
order - UserOrder

Example

Query
query users(
  $after: String,
  $before: String,
  $filter: UserFilter,
  $first: Int,
  $last: Int,
  $order: UserOrder
) {
  users(
    after: $after,
    before: $before,
    filter: $filter,
    first: $first,
    last: $last,
    order: $order
  ) {
    edges {
      cursor
      node {
        ...UserFragment
      }
    }
    nodes {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "xyz789",
  "before": "abc123",
  "filter": UserFilter,
  "first": 987,
  "last": 987,
  "order": UserOrder
}
Response
{
  "data": {
    "users": {
      "edges": [UserEdge],
      "nodes": [User],
      "pageInfo": PageInfo,
      "totalCount": 123
    }
  }
}

whoami

Description

Current user

Response

Returns a Whoami

Example

Query
query whoami {
  whoami {
    address
    avatarUrl
    birthday
    createdAt
    email
    firstName
    id
    kioskPinCode
    language
    lastName
    membershipSettings {
      emailLeaveRequest
      emailManageAvailabilityRequest
      emailManageDocument
      emailManageLeaveRequest
      emailManageMessageBoard
      emailManageShiftOfferRequest
      emailManageShiftSwapRequest
      emailManageTimesheet
      emailSchedulePosted
      emailShiftOfferRequest
      emailShiftReminder
      emailShiftSwapRequest
      emailSummary
      emailTimesheet
      id
      maxDurationPerWeek
      notificationShiftLate
      typicalWorkDuration
    }
    name
    phoneNumber
    roles {
      code
      description
      id
      name
      rolesUsers {
        ...RolesUserFragment
      }
    }
    settings {
      _24HourTime
      personalizedData {
        ...UserPersonalizedDataItemFragment
      }
    }
    timezone
  }
}
Response
{
  "data": {
    "whoami": {
      "address": "abc123",
      "avatarUrl": "xyz789",
      "birthday": ISO8601DateTime,
      "createdAt": ISO8601DateTime,
      "email": "abc123",
      "firstName": "xyz789",
      "id": "4",
      "kioskPinCode": "abc123",
      "language": "abc123",
      "lastName": "abc123",
      "membershipSettings": MembershipSetting,
      "name": "abc123",
      "phoneNumber": "xyz789",
      "roles": [Role],
      "settings": UserSetting,
      "timezone": "xyz789"
    }
  }
}

workspace

Description

Current workspace

Response

Returns a Workspace

Example

Query
query workspace {
  workspace {
    createdAt
    id
    industry
    logoUrl
    metadata
    meteredUsages {
      createdAt
      id
      type
      updatedAt
      usageCount
    }
    name
    settings {
      _24HourTime
      autoApproveTimeoffRequest
      autoClockOutAfterShiftEndTimeDuration
      autoDeductUnpaidBreaks
      birthdayReminder
      disabledFeatures
      employeeAvailability
      facialClockIn
      hadDemo
      hasSampleData
      kioskAttendance
      locationClockIn
      locationClockInPreventIfExceeded
      locationClockInRadius
      missedClockEventsEmployeeNotiDelay
      missedClockEventsManagerNotiDelay
      mobileAttendance
      preventFinishShiftsWhenHavingUncompletedTasks
      privateScheduling
      publicApprovedTimeoffRequest
      shiftClockInEarlyThreshold
      shiftClockOutEarlyThreshold
      shiftEndTimeOffset
      shiftStartTimeOffset
      timesheetAutoRound
      timesheetRoundBreakIncrement
      timesheetRoundBreakToScheduledBreakIfShorter
      timesheetRoundBreakType
      timesheetRoundEndTimeIncrement
      timesheetRoundEndTimeToScheduledTimeIfAfter
      timesheetRoundEndTimeToScheduledTimeIfEarlier
      timesheetRoundEndTimeType
      timesheetRoundStartTimeIncrement
      timesheetRoundStartTimeToScheduledTimeIfEarlier
      timesheetRoundStartTimeType
      typicalWorkDuration
      unscheduledShifts
      weekStartsOn
      wifiClockIn
      workAniversaryReminder
    }
    size
    timezone
  }
}
Response
{
  "data": {
    "workspace": {
      "createdAt": ISO8601DateTime,
      "id": "4",
      "industry": "CLEANING",
      "logoUrl": "xyz789",
      "metadata": {},
      "meteredUsages": [MeteredUsage],
      "name": "abc123",
      "settings": WorkspaceSetting,
      "size": "LESS_THAN_TEN",
      "timezone": "xyz789"
    }
  }
}

workspaceGetStartedSteps

Description

Lists all get started steps of the current workspace

Response

Returns [WorkspaceGetStartedStep!]!

Example

Query
query workspaceGetStartedSteps {
  workspaceGetStartedSteps {
    id
    name
    order
    state
  }
}
Response
{
  "data": {
    "workspaceGetStartedSteps": [
      {
        "id": "4",
        "name": "ADD_YOUR_TEAM",
        "order": 123,
        "state": "FINISHED"
      }
    ]
  }
}

workspaces

Description

All workspaces of current user

Response

Returns a WorkspaceConnection!

Arguments
Name Description
after - String Returns the elements in the list that come after the specified cursor.
before - String Returns the elements in the list that come before the specified cursor.
first - Int Returns the first n elements from the list.
last - Int Returns the last n elements from the list.

Example

Query
query workspaces(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int
) {
  workspaces(
    after: $after,
    before: $before,
    first: $first,
    last: $last
  ) {
    edges {
      cursor
      node {
        ...WorkspaceFragment
      }
    }
    nodes {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
Variables
{
  "after": "abc123",
  "before": "xyz789",
  "first": 123,
  "last": 123
}
Response
{
  "data": {
    "workspaces": {
      "edges": [WorkspaceEdge],
      "nodes": [Workspace],
      "pageInfo": PageInfo,
      "totalCount": 123
    }
  }
}

Mutations

acceptShiftOfferRequest

Response

Returns an AcceptShiftOfferRequestPayload

Arguments
Name Description
input - AcceptShiftOfferRequestInput! Parameters for AcceptShiftOfferRequest

Example

Query
mutation acceptShiftOfferRequest($input: AcceptShiftOfferRequestInput!) {
  acceptShiftOfferRequest(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acceptedAt
      approvedAt
      approver {
        ...UserFragment
      }
      createdAt
      id
      receiver {
        ...UserFragment
      }
      refusedAt
      rejectedAt
      shiftOffer {
        ...ShiftOfferFragment
      }
      state
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": AcceptShiftOfferRequestInput}
Response
{
  "data": {
    "acceptShiftOfferRequest": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": ShiftOfferRequest
    }
  }
}

acceptShiftSwapRequest

Response

Returns an AcceptShiftSwapRequestPayload

Arguments
Name Description
input - AcceptShiftSwapRequestInput! Parameters for AcceptShiftSwapRequest

Example

Query
mutation acceptShiftSwapRequest($input: AcceptShiftSwapRequestInput!) {
  acceptShiftSwapRequest(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acceptedAt
      approvedAt
      approver {
        ...UserFragment
      }
      createdAt
      id
      receiver {
        ...UserFragment
      }
      refusedAt
      rejectedAt
      shiftSwap {
        ...ShiftSwapFragment
      }
      state
      targetShift {
        ...ShiftFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": AcceptShiftSwapRequestInput}
Response
{
  "data": {
    "acceptShiftSwapRequest": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": ShiftSwapRequest
    }
  }
}

acknowledgeDocument

Response

Returns an AcknowledgeDocumentPayload

Arguments
Name Description
input - AcknowledgeDocumentInput! Parameters for AcknowledgeDocument

Example

Query
mutation acknowledgeDocument($input: AcknowledgeDocumentInput!) {
  acknowledgeDocument(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      allUsersAssigned
      archived
      assignedGroups {
        ...GroupFragment
      }
      assignees {
        ...UserFragment
      }
      assignmentType
      color
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      documentAttachments {
        ...DocumentAttachmentFragment
      }
      expiredAt
      folder {
        ...FolderFragment
      }
      id
      name
      notes
      pinnedAt
      shareWithNewHires
      state
      tags {
        ...TagFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": AcknowledgeDocumentInput}
Response
{
  "data": {
    "acknowledgeDocument": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Document
    }
  }
}

answerSurvey

Response

Returns an AnswerSurveyPayload

Arguments
Name Description
input - AnswerSurveyInput! Parameters for AnswerSurvey

Example

Query
mutation answerSurvey($input: AnswerSurveyInput!) {
  answerSurvey(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": AnswerSurveyInput}
Response
{
  "data": {
    "answerSurvey": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": true
    }
  }
}

approveJoinRequest

Response

Returns an ApproveJoinRequestPayload

Arguments
Name Description
input - ApproveJoinRequestInput! Parameters for ApproveJoinRequest

Example

Query
mutation approveJoinRequest($input: ApproveJoinRequestInput!) {
  approveJoinRequest(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      id
      state
      user {
        ...UserFragment
      }
      userInfo
    }
  }
}
Variables
{"input": ApproveJoinRequestInput}
Response
{
  "data": {
    "approveJoinRequest": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": JoinRequest
    }
  }
}

approveLeaves

Response

Returns an ApproveLeavesPayload

Arguments
Name Description
input - ApproveLeavesInput! Parameters for ApproveLeaves

Example

Query
mutation approveLeaves($input: ApproveLeavesInput!) {
  approveLeaves(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      allDay
      approvedAt
      approver {
        ...UserFragment
      }
      approverId
      canceledAt
      days {
        ...LeaveRequestDayFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      id
      leaveCategory {
        ...LeaveCategoryFragment
      }
      paid
      processedAt
      reason
      rejectedAt
      requester {
        ...UserFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": ApproveLeavesInput}
Response
{
  "data": {
    "approveLeaves": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": [LeaveRequest]
    }
  }
}

approveShiftClaimRequest

Response

Returns an ApproveShiftClaimRequestPayload

Arguments
Name Description
input - ApproveShiftClaimRequestInput! Parameters for ApproveShiftClaimRequest

Example

Query
mutation approveShiftClaimRequest($input: ApproveShiftClaimRequestInput!) {
  approveShiftClaimRequest(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      createdAt
      id
      requester {
        ...UserFragment
      }
      shift {
        ...ShiftFragment
      }
      state
    }
  }
}
Variables
{"input": ApproveShiftClaimRequestInput}
Response
{
  "data": {
    "approveShiftClaimRequest": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": ShiftClaimRequest
    }
  }
}

approveShiftOfferRequest

Response

Returns an ApproveShiftOfferRequestPayload

Arguments
Name Description
input - ApproveShiftOfferRequestInput! Parameters for ApproveShiftOfferRequest

Example

Query
mutation approveShiftOfferRequest($input: ApproveShiftOfferRequestInput!) {
  approveShiftOfferRequest(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acceptedAt
      approvedAt
      approver {
        ...UserFragment
      }
      createdAt
      id
      receiver {
        ...UserFragment
      }
      refusedAt
      rejectedAt
      shiftOffer {
        ...ShiftOfferFragment
      }
      state
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": ApproveShiftOfferRequestInput}
Response
{
  "data": {
    "approveShiftOfferRequest": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": ShiftOfferRequest
    }
  }
}

approveShiftSwapRequest

Response

Returns an ApproveShiftSwapRequestPayload

Arguments
Name Description
input - ApproveShiftSwapRequestInput! Parameters for ApproveShiftSwapRequest

Example

Query
mutation approveShiftSwapRequest($input: ApproveShiftSwapRequestInput!) {
  approveShiftSwapRequest(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acceptedAt
      approvedAt
      approver {
        ...UserFragment
      }
      createdAt
      id
      receiver {
        ...UserFragment
      }
      refusedAt
      rejectedAt
      shiftSwap {
        ...ShiftSwapFragment
      }
      state
      targetShift {
        ...ShiftFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": ApproveShiftSwapRequestInput}
Response
{
  "data": {
    "approveShiftSwapRequest": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": ShiftSwapRequest
    }
  }
}

approveTimesheets

Response

Returns an ApproveTimesheetsPayload

Arguments
Name Description
input - ApproveTimesheetsInput! Parameters for ApproveTimesheets

Example

Query
mutation approveTimesheets($input: ApproveTimesheetsInput!) {
  approveTimesheets(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedAt
      approver {
        ...UserFragment
      }
      comments
      creator {
        ...UserFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      group {
        ...GroupFragment
      }
      id
      processedAt
      referenceObject {
        ... on Document {
          ...DocumentFragment
        }
        ... on LeaveRequest {
          ...LeaveRequestFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
        ... on Shift {
          ...ShiftFragment
        }
        ... on ShiftClaimRequest {
          ...ShiftClaimRequestFragment
        }
        ... on TimeCard {
          ...TimeCardFragment
        }
      }
      rejectedAt
      schedule {
        ...ScheduleFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      unpaidBreaks {
        ... on TimesheetAutoDeductBreak {
          ...TimesheetAutoDeductBreakFragment
        }
        ... on TimesheetManualBreak {
          ...TimesheetManualBreakFragment
        }
        ... on TimesheetPunchBreak {
          ...TimesheetPunchBreakFragment
        }
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": ApproveTimesheetsInput}
Response
{
  "data": {
    "approveTimesheets": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": [Timesheet]
    }
  }
}

archiveChannel

Response

Returns an ArchiveChannelPayload

Arguments
Name Description
input - ArchiveChannelInput! Parameters for ArchiveChannel

Example

Query
mutation archiveChannel($input: ArchiveChannelInput!) {
  archiveChannel(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      archivedAt
      channelType
      chatMessagesCount
      color
      creator {
        ...UserFragment
      }
      currentMember {
        ...ChannelMemberFragment
      }
      displayName
      emojiIcon
      id
      lastAddedMessageContent
      lastMessageAt
      members {
        ...ChannelMemberFragment
      }
      purpose
      readOnly
      suggested
      users {
        ...UserFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": ArchiveChannelInput}
Response
{
  "data": {
    "archiveChannel": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": ChatChannel
    }
  }
}

archiveDocument

Response

Returns an ArchiveDocumentPayload

Arguments
Name Description
input - ArchiveDocumentInput! Parameters for ArchiveDocument

Example

Query
mutation archiveDocument($input: ArchiveDocumentInput!) {
  archiveDocument(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      allUsersAssigned
      archived
      assignedGroups {
        ...GroupFragment
      }
      assignees {
        ...UserFragment
      }
      assignmentType
      color
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      documentAttachments {
        ...DocumentAttachmentFragment
      }
      expiredAt
      folder {
        ...FolderFragment
      }
      id
      name
      notes
      pinnedAt
      shareWithNewHires
      state
      tags {
        ...TagFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": ArchiveDocumentInput}
Response
{
  "data": {
    "archiveDocument": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Document
    }
  }
}

archiveMember

Response

Returns an ArchiveMemberPayload

Arguments
Name Description
input - ArchiveMemberInput! Parameters for ArchiveMember

Example

Query
mutation archiveMember($input: ArchiveMemberInput!) {
  archiveMember(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": ArchiveMemberInput}
Response
{
  "data": {
    "archiveMember": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": "xyz789"
    }
  }
}

bulkRejectTimesheets

Response

Returns a BulkRejectTimesheetsPayload

Arguments
Name Description
input - BulkRejectTimesheetsInput! Parameters for BulkRejectTimesheets

Example

Query
mutation bulkRejectTimesheets($input: BulkRejectTimesheetsInput!) {
  bulkRejectTimesheets(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedAt
      approver {
        ...UserFragment
      }
      comments
      creator {
        ...UserFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      group {
        ...GroupFragment
      }
      id
      processedAt
      referenceObject {
        ... on Document {
          ...DocumentFragment
        }
        ... on LeaveRequest {
          ...LeaveRequestFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
        ... on Shift {
          ...ShiftFragment
        }
        ... on ShiftClaimRequest {
          ...ShiftClaimRequestFragment
        }
        ... on TimeCard {
          ...TimeCardFragment
        }
      }
      rejectedAt
      schedule {
        ...ScheduleFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      unpaidBreaks {
        ... on TimesheetAutoDeductBreak {
          ...TimesheetAutoDeductBreakFragment
        }
        ... on TimesheetManualBreak {
          ...TimesheetManualBreakFragment
        }
        ... on TimesheetPunchBreak {
          ...TimesheetPunchBreakFragment
        }
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": BulkRejectTimesheetsInput}
Response
{
  "data": {
    "bulkRejectTimesheets": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": [Timesheet]
    }
  }
}

cancelLeave

Response

Returns a CancelLeavePayload

Arguments
Name Description
input - CancelLeaveInput! Parameters for CancelLeave

Example

Query
mutation cancelLeave($input: CancelLeaveInput!) {
  cancelLeave(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      allDay
      approvedAt
      approver {
        ...UserFragment
      }
      approverId
      canceledAt
      days {
        ...LeaveRequestDayFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      id
      leaveCategory {
        ...LeaveCategoryFragment
      }
      paid
      processedAt
      reason
      rejectedAt
      requester {
        ...UserFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": CancelLeaveInput}
Response
{
  "data": {
    "cancelLeave": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": LeaveRequest
    }
  }
}

cancelShiftClaimRequest

Response

Returns a CancelShiftClaimRequestPayload

Arguments
Name Description
input - CancelShiftClaimRequestInput! Parameters for CancelShiftClaimRequest

Example

Query
mutation cancelShiftClaimRequest($input: CancelShiftClaimRequestInput!) {
  cancelShiftClaimRequest(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      createdAt
      id
      requester {
        ...UserFragment
      }
      shift {
        ...ShiftFragment
      }
      state
    }
  }
}
Variables
{"input": CancelShiftClaimRequestInput}
Response
{
  "data": {
    "cancelShiftClaimRequest": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": ShiftClaimRequest
    }
  }
}

cancelShiftOffer

Response

Returns a CancelShiftOfferPayload

Arguments
Name Description
input - CancelShiftOfferInput! Parameters for CancelShiftOffer

Example

Query
mutation cancelShiftOffer($input: CancelShiftOfferInput!) {
  cancelShiftOffer(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      createdAt
      id
      requester {
        ...UserFragment
      }
      shift {
        ...ShiftFragment
      }
      shiftOfferRequests {
        ...ShiftOfferRequestFragment
      }
      state
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": CancelShiftOfferInput}
Response
{
  "data": {
    "cancelShiftOffer": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": ShiftOffer
    }
  }
}

cancelShiftSwap

Response

Returns a CancelShiftSwapPayload

Arguments
Name Description
input - CancelShiftSwapInput! Parameters for CancelShiftSwap

Example

Query
mutation cancelShiftSwap($input: CancelShiftSwapInput!) {
  cancelShiftSwap(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      createdAt
      id
      requester {
        ...UserFragment
      }
      shift {
        ...ShiftFragment
      }
      shiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      state
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": CancelShiftSwapInput}
Response
{
  "data": {
    "cancelShiftSwap": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": ShiftSwap
    }
  }
}

claimShift

Response

Returns a ClaimShiftPayload

Arguments
Name Description
input - ClaimShiftInput! Parameters for ClaimShift

Example

Query
mutation claimShift($input: ClaimShiftInput!) {
  claimShift(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedTargetedShiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      assignee {
        ...UserFragment
      }
      attachments {
        ...ShiftAttachmentFragment
      }
      breakDuration
      checklistAssignments {
        ...ChecklistAssignmentFragment
      }
      client {
        ...ClientFragment
      }
      color
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      note
      recurrence {
        ...RecurrenceFragment
      }
      requester {
        ...UserFragment
      }
      requireClaimApproval
      schedule {
        ...ScheduleFragment
      }
      shiftBatchId
      shiftClaimRequests {
        ...ShiftClaimRequestFragment
      }
      shiftPartners {
        ...ShiftFragment
      }
      shiftRequests {
        ...ShiftRequestFragment
      }
      startTime
      state
      systemNote
      timeCard {
        ...TimeCardFragment
      }
      timezone
      title
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": ClaimShiftInput}
Response
{
  "data": {
    "claimShift": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Shift
    }
  }
}

confirmMessageBoardPost

Response

Returns a ConfirmMessageBoardPostPayload

Arguments
Name Description
input - ConfirmMessageBoardPostInput! Parameters for ConfirmMessageBoardPost

Example

Query
mutation confirmMessageBoardPost($input: ConfirmMessageBoardPostInput!) {
  confirmMessageBoardPost(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      archivedAt
      author {
        ...UserFragment
      }
      blocks
      board {
        ...MessageBoardFragment
      }
      category {
        ...MessageBoardCategoryFragment
      }
      commentEnabled
      commentsCount
      confirmationRequiredUsers {
        ...UserFragment
      }
      createdAt
      deletedAt
      draftAt
      id
      images {
        ...MessageBoardPostImageFragment
      }
      messageBoardId
      notifyUsers {
        ...UserFragment
      }
      pinnedAt
      publishedAt
      reactions {
        ...ReactionFragment
      }
      readAt
      scheduledPostAt
      state
      title
      updatedAt
    }
  }
}
Variables
{"input": ConfirmMessageBoardPostInput}
Response
{
  "data": {
    "confirmMessageBoardPost": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": MessageBoardPost
    }
  }
}

confirmShift

Response

Returns a ConfirmShiftPayload

Arguments
Name Description
input - ConfirmShiftInput! Parameters for ConfirmShift

Example

Query
mutation confirmShift($input: ConfirmShiftInput!) {
  confirmShift(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedTargetedShiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      assignee {
        ...UserFragment
      }
      attachments {
        ...ShiftAttachmentFragment
      }
      breakDuration
      checklistAssignments {
        ...ChecklistAssignmentFragment
      }
      client {
        ...ClientFragment
      }
      color
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      note
      recurrence {
        ...RecurrenceFragment
      }
      requester {
        ...UserFragment
      }
      requireClaimApproval
      schedule {
        ...ScheduleFragment
      }
      shiftBatchId
      shiftClaimRequests {
        ...ShiftClaimRequestFragment
      }
      shiftPartners {
        ...ShiftFragment
      }
      shiftRequests {
        ...ShiftRequestFragment
      }
      startTime
      state
      systemNote
      timeCard {
        ...TimeCardFragment
      }
      timezone
      title
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": ConfirmShiftInput}
Response
{
  "data": {
    "confirmShift": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Shift
    }
  }
}

confirmShifts

Response

Returns a ConfirmShiftsPayload

Arguments
Name Description
input - ConfirmShiftsInput! Parameters for ConfirmShifts

Example

Query
mutation confirmShifts($input: ConfirmShiftsInput!) {
  confirmShifts(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedTargetedShiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      assignee {
        ...UserFragment
      }
      attachments {
        ...ShiftAttachmentFragment
      }
      breakDuration
      checklistAssignments {
        ...ChecklistAssignmentFragment
      }
      client {
        ...ClientFragment
      }
      color
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      note
      recurrence {
        ...RecurrenceFragment
      }
      requester {
        ...UserFragment
      }
      requireClaimApproval
      schedule {
        ...ScheduleFragment
      }
      shiftBatchId
      shiftClaimRequests {
        ...ShiftClaimRequestFragment
      }
      shiftPartners {
        ...ShiftFragment
      }
      shiftRequests {
        ...ShiftRequestFragment
      }
      startTime
      state
      systemNote
      timeCard {
        ...TimeCardFragment
      }
      timezone
      title
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": ConfirmShiftsInput}
Response
{
  "data": {
    "confirmShifts": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": [Shift]
    }
  }
}

copyShifts

Description

Copy shifts from the prev week

Response

Returns a CopyShiftsPayload

Arguments
Name Description
input - CopyShiftsInput! Parameters for CopyShifts

Example

Query
mutation copyShifts($input: CopyShiftsInput!) {
  copyShifts(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": CopyShiftsInput}
Response
{
  "data": {
    "copyShifts": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": false
    }
  }
}

createAvailability

Response

Returns a CreateAvailabilityPayload

Arguments
Name Description
input - CreateAvailabilityInput! Parameters for CreateAvailability

Example

Query
mutation createAvailability($input: CreateAvailabilityInput!) {
  createAvailability(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      allDay
      createdAt
      from
      id
      note
      recurrence {
        ...RecurrenceFragment
      }
      timezone
      to
      type
      updatedAt
      user {
        ...UserFragment
      }
    }
  }
}
Variables
{"input": CreateAvailabilityInput}
Response
{
  "data": {
    "createAvailability": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Availability
    }
  }
}

createCalendarEvent

Response

Returns a CreateCalendarEventPayload

Arguments
Name Description
input - CreateCalendarEventInput! Parameters for CreateCalendarEvent

Example

Query
mutation createCalendarEvent($input: CreateCalendarEventInput!) {
  createCalendarEvent(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      allDay
      createdAt
      creator {
        ...UserFragment
      }
      eventType
      from
      id
      note
      recurrence {
        ...RecurrenceFragment
      }
      schedules {
        ...ScheduleFragment
      }
      state
      timezone
      to
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": CreateCalendarEventInput}
Response
{
  "data": {
    "createCalendarEvent": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": CalendarEvent
    }
  }
}

createCalendarEvents

Response

Returns a CreateCalendarEventsPayload

Arguments
Name Description
input - CreateCalendarEventsInput! Parameters for CreateCalendarEvents

Example

Query
mutation createCalendarEvents($input: CreateCalendarEventsInput!) {
  createCalendarEvents(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      allDay
      createdAt
      creator {
        ...UserFragment
      }
      eventType
      from
      id
      note
      recurrence {
        ...RecurrenceFragment
      }
      schedules {
        ...ScheduleFragment
      }
      state
      timezone
      to
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": CreateCalendarEventsInput}
Response
{
  "data": {
    "createCalendarEvents": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": [CalendarEvent]
    }
  }
}

createChannel

Response

Returns a CreateChannelPayload

Arguments
Name Description
input - CreateChannelInput! Parameters for CreateChannel

Example

Query
mutation createChannel($input: CreateChannelInput!) {
  createChannel(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      archivedAt
      channelType
      chatMessagesCount
      color
      creator {
        ...UserFragment
      }
      currentMember {
        ...ChannelMemberFragment
      }
      displayName
      emojiIcon
      id
      lastAddedMessageContent
      lastMessageAt
      members {
        ...ChannelMemberFragment
      }
      purpose
      readOnly
      suggested
      users {
        ...UserFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": CreateChannelInput}
Response
{
  "data": {
    "createChannel": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": ChatChannel
    }
  }
}

createChecklist

Response

Returns a CreateChecklistPayload

Arguments
Name Description
input - CreateChecklistInput! Parameters for CreateChecklist

Example

Query
mutation createChecklist($input: CreateChecklistInput!) {
  createChecklist(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      creator {
        ...UserFragment
      }
      id
      name
      tasks {
        ...TaskFragment
      }
      template
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": CreateChecklistInput}
Response
{
  "data": {
    "createChecklist": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Checklist
    }
  }
}

createCheckoutSession

Response

Returns a CreateCheckoutSessionPayload

Arguments
Name Description
input - CreateCheckoutSessionInput! Parameters for CreateCheckoutSession

Example

Query
mutation createCheckoutSession($input: CreateCheckoutSessionInput!) {
  createCheckoutSession(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": CreateCheckoutSessionInput}
Response
{
  "data": {
    "createCheckoutSession": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": "abc123"
    }
  }
}

createComment

Response

Returns a CreateCommentPayload

Arguments
Name Description
input - CreateCommentInput! Parameters for CreateComment

Example

Query
mutation createComment($input: CreateCommentInput!) {
  createComment(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      author {
        ...UserFragment
      }
      commentableId
      commentableType
      content
      createdAt
      data {
        ...CommentDataEntryFragment
      }
      id
      pinnedAt
      reactions {
        ...ReactionFragment
      }
      systemGenerated
      visibility
    }
  }
}
Variables
{"input": CreateCommentInput}
Response
{
  "data": {
    "createComment": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Comment
    }
  }
}

createDocument

Response

Returns a CreateDocumentPayload

Arguments
Name Description
input - CreateDocumentInput! Parameters for CreateDocument

Example

Query
mutation createDocument($input: CreateDocumentInput!) {
  createDocument(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      allUsersAssigned
      archived
      assignedGroups {
        ...GroupFragment
      }
      assignees {
        ...UserFragment
      }
      assignmentType
      color
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      documentAttachments {
        ...DocumentAttachmentFragment
      }
      expiredAt
      folder {
        ...FolderFragment
      }
      id
      name
      notes
      pinnedAt
      shareWithNewHires
      state
      tags {
        ...TagFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": CreateDocumentInput}
Response
{
  "data": {
    "createDocument": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Document
    }
  }
}

createFeedback

Response

Returns a CreateFeedbackPayload

Arguments
Name Description
input - CreateFeedbackInput! Parameters for CreateFeedback

Example

Query
mutation createFeedback($input: CreateFeedbackInput!) {
  createFeedback(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": CreateFeedbackInput}
Response
{
  "data": {
    "createFeedback": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": false
    }
  }
}

createFolder

Response

Returns a CreateFolderPayload

Arguments
Name Description
input - CreateFolderInput! Parameters for CreateFolder

Example

Query
mutation createFolder($input: CreateFolderInput!) {
  createFolder(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      description
      documents {
        ...DocumentFragment
      }
      id
      level
      name
      parent {
        ...FolderFragment
      }
      private
      subFolders {
        ...FolderFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": CreateFolderInput}
Response
{
  "data": {
    "createFolder": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Folder
    }
  }
}

createGroups

Response

Returns a CreateGroupsPayload

Arguments
Name Description
input - CreateGroupsInput! Parameters for CreateGroups

Example

Query
mutation createGroups($input: CreateGroupsInput!) {
  createGroups(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
      users {
        ...UserFragment
      }
      usersCount
    }
  }
}
Variables
{"input": CreateGroupsInput}
Response
{
  "data": {
    "createGroups": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": [Group]
    }
  }
}

createJobSite

Response

Returns a CreateJobSitePayload

Arguments
Name Description
input - CreateJobSiteInput! Parameters for CreateJobSite

Example

Query
mutation createJobSite($input: CreateJobSiteInput!) {
  createJobSite(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      address
      attachments {
        ...JobSiteAttachmentFragment
      }
      color
      createdAt
      geoLat
      geoLong
      id
      name
      note
      payRate {
        ...JobSitePayRateFragment
      }
      schedules {
        ...ScheduleFragment
      }
      updatedAt
      wifiBssid
      wifiSsid
    }
  }
}
Variables
{"input": CreateJobSiteInput}
Response
{
  "data": {
    "createJobSite": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": JobSite
    }
  }
}

createJoinCode

Response

Returns a CreateJoinCodePayload

Arguments
Name Description
input - CreateJoinCodeInput! Parameters for CreateJoinCode

Example

Query
mutation createJoinCode($input: CreateJoinCodeInput!) {
  createJoinCode(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      code
      effectiveUntil
      id
      requireApproval
    }
  }
}
Variables
{"input": CreateJoinCodeInput}
Response
{
  "data": {
    "createJoinCode": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": JoinCode
    }
  }
}

createJoinRequest

Response

Returns a CreateJoinRequestPayload

Arguments
Name Description
input - CreateJoinRequestInput! Parameters for CreateJoinRequest

Example

Query
mutation createJoinRequest($input: CreateJoinRequestInput!) {
  createJoinRequest(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      id
      state
      user {
        ...UserFragment
      }
      userInfo
    }
  }
}
Variables
{"input": CreateJoinRequestInput}
Response
{
  "data": {
    "createJoinRequest": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": JoinRequest
    }
  }
}

createLeaveCategory

Response

Returns a CreateLeaveCategoryPayload

Arguments
Name Description
input - CreateLeaveCategoryInput! Parameters for CreateLeaveCategory

Example

Query
mutation createLeaveCategory($input: CreateLeaveCategoryInput!) {
  createLeaveCategory(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      enabled
      id
      name
      paidLeave
      unpaidLeave
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": CreateLeaveCategoryInput}
Response
{
  "data": {
    "createLeaveCategory": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": LeaveCategory
    }
  }
}

createMessage

Response

Returns a CreateMessagePayload

Arguments
Name Description
input - CreateMessageInput! Parameters for CreateMessage

Example

Query
mutation createMessage($input: CreateMessageInput!) {
  createMessage(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      blocks
      chatAttachments {
        ...ChatAttachmentFragment
      }
      chatReactions {
        ...ChatReactionFragment
      }
      createdAt
      deletedAt
      id
      message
      pinned
      read
      updatedAt
      user {
        ...UserFragment
      }
    }
  }
}
Variables
{"input": CreateMessageInput}
Response
{
  "data": {
    "createMessage": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": ChatMessage
    }
  }
}

createMessageBoard

Response

Returns a CreateMessageBoardPayload

Arguments
Name Description
input - CreateMessageBoardInput! Parameters for CreateMessageBoard

Example

Query
mutation createMessageBoard($input: CreateMessageBoardInput!) {
  createMessageBoard(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      categories {
        ...MessageBoardCategoryFragment
      }
      createdAt
      deletedAt
      description
      id
      messageBoardsMembers {
        ...MessageBoardsMemberFragment
      }
      name
      pinnedAt
      shareWithNewHires
      unreadMessagesCount
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": CreateMessageBoardInput}
Response
{
  "data": {
    "createMessageBoard": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": MessageBoard
    }
  }
}

createMessageBoardPost

Response

Returns a CreateMessageBoardPostPayload

Arguments
Name Description
input - CreateMessageBoardPostInput! Parameters for CreateMessageBoardPost

Example

Query
mutation createMessageBoardPost($input: CreateMessageBoardPostInput!) {
  createMessageBoardPost(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      archivedAt
      author {
        ...UserFragment
      }
      blocks
      board {
        ...MessageBoardFragment
      }
      category {
        ...MessageBoardCategoryFragment
      }
      commentEnabled
      commentsCount
      confirmationRequiredUsers {
        ...UserFragment
      }
      createdAt
      deletedAt
      draftAt
      id
      images {
        ...MessageBoardPostImageFragment
      }
      messageBoardId
      notifyUsers {
        ...UserFragment
      }
      pinnedAt
      publishedAt
      reactions {
        ...ReactionFragment
      }
      readAt
      scheduledPostAt
      state
      title
      updatedAt
    }
  }
}
Variables
{"input": CreateMessageBoardPostInput}
Response
{
  "data": {
    "createMessageBoardPost": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": MessageBoardPost
    }
  }
}

createReaction

Response

Returns a CreateReactionPayload

Arguments
Name Description
input - CreateReactionInput! Parameters for CreateReaction

Example

Query
mutation createReaction($input: CreateReactionInput!) {
  createReaction(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      createdAt
      creator {
        ...UserFragment
      }
      emoji
      id
      reactable {
        ... on Comment {
          ...CommentFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
      }
      updatedAt
    }
  }
}
Variables
{"input": CreateReactionInput}
Response
{
  "data": {
    "createReaction": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Reaction
    }
  }
}

createSchedule

Response

Returns a CreateSchedulePayload

Arguments
Name Description
input - CreateScheduleInput! Parameters for CreateSchedule

Example

Query
mutation createSchedule($input: CreateScheduleInput!) {
  createSchedule(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      color
      createdAt
      default
      defaultJobSite {
        ...JobSiteFragment
      }
      id
      name
      schedulesUsers {
        ...ScheduleUserFragment
      }
      timezone
      updatedAt
      users {
        ...UserFragment
      }
    }
  }
}
Variables
{"input": CreateScheduleInput}
Response
{
  "data": {
    "createSchedule": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Schedule
    }
  }
}

createShift

Response

Returns a CreateShiftPayload

Arguments
Name Description
input - CreateShiftInput! Parameters for CreateShift

Example

Query
mutation createShift($input: CreateShiftInput!) {
  createShift(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedTargetedShiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      assignee {
        ...UserFragment
      }
      attachments {
        ...ShiftAttachmentFragment
      }
      breakDuration
      checklistAssignments {
        ...ChecklistAssignmentFragment
      }
      client {
        ...ClientFragment
      }
      color
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      note
      recurrence {
        ...RecurrenceFragment
      }
      requester {
        ...UserFragment
      }
      requireClaimApproval
      schedule {
        ...ScheduleFragment
      }
      shiftBatchId
      shiftClaimRequests {
        ...ShiftClaimRequestFragment
      }
      shiftPartners {
        ...ShiftFragment
      }
      shiftRequests {
        ...ShiftRequestFragment
      }
      startTime
      state
      systemNote
      timeCard {
        ...TimeCardFragment
      }
      timezone
      title
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": CreateShiftInput}
Response
{
  "data": {
    "createShift": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Shift
    }
  }
}

createShiftBatch

Response

Returns a CreateShiftBatchPayload

Arguments
Name Description
input - CreateShiftBatchInput! Parameters for CreateShiftBatch

Example

Query
mutation createShiftBatch($input: CreateShiftBatchInput!) {
  createShiftBatch(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      id
      requester {
        ...UserFragment
      }
      shifts {
        ...ShiftFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": CreateShiftBatchInput}
Response
{
  "data": {
    "createShiftBatch": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": ShiftBatch
    }
  }
}

createShiftTemplate

Response

Returns a CreateShiftTemplatePayload

Arguments
Name Description
input - CreateShiftTemplateInput! Parameters for CreateShiftTemplate

Example

Query
mutation createShiftTemplate($input: CreateShiftTemplateInput!) {
  createShiftTemplate(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      breakDuration
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      name
      note
      schedule {
        ...ScheduleFragment
      }
      startTime
      timezone
    }
  }
}
Variables
{"input": CreateShiftTemplateInput}
Response
{
  "data": {
    "createShiftTemplate": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": ShiftTemplate
    }
  }
}

createTag

Response

Returns a CreateTagPayload

Arguments
Name Description
input - CreateTagInput! Parameters for CreateTag

Example

Query
mutation createTag($input: CreateTagInput!) {
  createTag(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
    }
  }
}
Variables
{"input": CreateTagInput}
Response
{
  "data": {
    "createTag": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Tag
    }
  }
}

createTask

Response

Returns a CreateTaskPayload

Arguments
Name Description
input - CreateTaskInput! Parameters for CreateTask

Example

Query
mutation createTask($input: CreateTaskInput!) {
  createTask(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      assignee {
        ...UserFragment
      }
      checklist {
        ...ChecklistFragment
      }
      code
      comments {
        ...CommentFragment
      }
      completedLog {
        ...CompletedLogFragment
      }
      completionCountTarget
      description
      doneAt
      dueDate
      id
      inProgressAt
      lastCompletedAt
      name
      notStartedAt
      parent {
        ...TaskFragment
      }
      requester {
        ...UserFragment
      }
      state
      subTasks {
        ...TaskFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": CreateTaskInput}
Response
{
  "data": {
    "createTask": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Task
    }
  }
}

createTimeCard

Response

Returns a CreateTimeCardPayload

Arguments
Name Description
input - CreateTimeCardInput! Parameters for CreateTimeCard

Example

Query
mutation createTimeCard($input: CreateTimeCardInput!) {
  createTimeCard(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      autoDeductedUnpaidBreakDuration
      createdAt
      creator {
        ...UserFragment
      }
      endTime
      group {
        ...GroupFragment
      }
      hasWarning
      id
      note
      punches {
        ...TimeCardPunchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      shift {
        ...ShiftFragment
      }
      shiftId
      startTime
      state
      timezone
      totalDuration
    }
  }
}
Variables
{"input": CreateTimeCardInput}
Response
{
  "data": {
    "createTimeCard": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": TimeCard
    }
  }
}

createUsers

Response

Returns a CreateUsersPayload

Arguments
Name Description
input - CreateUsersInput! Parameters for CreateUsers

Example

Query
mutation createUsers($input: CreateUsersInput!) {
  createUsers(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
  }
}
Variables
{"input": CreateUsersInput}
Response
{
  "data": {
    "createUsers": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": [User]
    }
  }
}

createWorkspaceSampleData

Arguments
Name Description
input - CreateWorkspaceSampleDataInput! Parameters for CreateWorkspaceSampleData

Example

Query
mutation createWorkspaceSampleData($input: CreateWorkspaceSampleDataInput!) {
  createWorkspaceSampleData(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": CreateWorkspaceSampleDataInput}
Response
{
  "data": {
    "createWorkspaceSampleData": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": false
    }
  }
}

deleteFiles

Response

Returns a DeleteFilesPayload

Arguments
Name Description
input - DeleteFilesInput! Parameters for DeleteFiles

Example

Query
mutation deleteFiles($input: DeleteFilesInput!) {
  deleteFiles(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": DeleteFilesInput}
Response
{
  "data": {
    "deleteFiles": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": true
    }
  }
}

destroyAvailability

Response

Returns a DestroyAvailabilityPayload

Arguments
Name Description
input - DestroyAvailabilityInput! Parameters for DestroyAvailability

Example

Query
mutation destroyAvailability($input: DestroyAvailabilityInput!) {
  destroyAvailability(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      allDay
      createdAt
      from
      id
      note
      recurrence {
        ...RecurrenceFragment
      }
      timezone
      to
      type
      updatedAt
      user {
        ...UserFragment
      }
    }
  }
}
Variables
{"input": DestroyAvailabilityInput}
Response
{
  "data": {
    "destroyAvailability": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Availability
    }
  }
}

destroyCalendarEvent

Response

Returns a DestroyCalendarEventPayload

Arguments
Name Description
input - DestroyCalendarEventInput! Parameters for DestroyCalendarEvent

Example

Query
mutation destroyCalendarEvent($input: DestroyCalendarEventInput!) {
  destroyCalendarEvent(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      allDay
      createdAt
      creator {
        ...UserFragment
      }
      eventType
      from
      id
      note
      recurrence {
        ...RecurrenceFragment
      }
      schedules {
        ...ScheduleFragment
      }
      state
      timezone
      to
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": DestroyCalendarEventInput}
Response
{
  "data": {
    "destroyCalendarEvent": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": CalendarEvent
    }
  }
}

destroyChecklist

Response

Returns a DestroyChecklistPayload

Arguments
Name Description
input - DestroyChecklistInput! Parameters for DestroyChecklist

Example

Query
mutation destroyChecklist($input: DestroyChecklistInput!) {
  destroyChecklist(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      creator {
        ...UserFragment
      }
      id
      name
      tasks {
        ...TaskFragment
      }
      template
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": DestroyChecklistInput}
Response
{
  "data": {
    "destroyChecklist": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Checklist
    }
  }
}

destroyComment

Response

Returns a DestroyCommentPayload

Arguments
Name Description
input - DestroyCommentInput! Parameters for DestroyComment

Example

Query
mutation destroyComment($input: DestroyCommentInput!) {
  destroyComment(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": DestroyCommentInput}
Response
{
  "data": {
    "destroyComment": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": false
    }
  }
}

destroyDocument

Response

Returns a DestroyDocumentPayload

Arguments
Name Description
input - DestroyDocumentInput! Parameters for DestroyDocument

Example

Query
mutation destroyDocument($input: DestroyDocumentInput!) {
  destroyDocument(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      allUsersAssigned
      archived
      assignedGroups {
        ...GroupFragment
      }
      assignees {
        ...UserFragment
      }
      assignmentType
      color
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      documentAttachments {
        ...DocumentAttachmentFragment
      }
      expiredAt
      folder {
        ...FolderFragment
      }
      id
      name
      notes
      pinnedAt
      shareWithNewHires
      state
      tags {
        ...TagFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": DestroyDocumentInput}
Response
{
  "data": {
    "destroyDocument": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Document
    }
  }
}

destroyFolder

Response

Returns a DestroyFolderPayload

Arguments
Name Description
input - DestroyFolderInput! Parameters for DestroyFolder

Example

Query
mutation destroyFolder($input: DestroyFolderInput!) {
  destroyFolder(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      description
      documents {
        ...DocumentFragment
      }
      id
      level
      name
      parent {
        ...FolderFragment
      }
      private
      subFolders {
        ...FolderFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": DestroyFolderInput}
Response
{
  "data": {
    "destroyFolder": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Folder
    }
  }
}

destroyGroup

Response

Returns a DestroyGroupPayload

Arguments
Name Description
input - DestroyGroupInput! Parameters for DestroyGroup

Example

Query
mutation destroyGroup($input: DestroyGroupInput!) {
  destroyGroup(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
      users {
        ...UserFragment
      }
      usersCount
    }
  }
}
Variables
{"input": DestroyGroupInput}
Response
{
  "data": {
    "destroyGroup": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Group
    }
  }
}

destroyJobSite

Response

Returns a DestroyJobSitePayload

Arguments
Name Description
input - DestroyJobSiteInput! Parameters for DestroyJobSite

Example

Query
mutation destroyJobSite($input: DestroyJobSiteInput!) {
  destroyJobSite(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      address
      attachments {
        ...JobSiteAttachmentFragment
      }
      color
      createdAt
      geoLat
      geoLong
      id
      name
      note
      payRate {
        ...JobSitePayRateFragment
      }
      schedules {
        ...ScheduleFragment
      }
      updatedAt
      wifiBssid
      wifiSsid
    }
  }
}
Variables
{"input": DestroyJobSiteInput}
Response
{
  "data": {
    "destroyJobSite": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": JobSite
    }
  }
}

destroyJoinCode

Response

Returns a DestroyJoinCodePayload

Arguments
Name Description
input - DestroyJoinCodeInput! Parameters for DestroyJoinCode

Example

Query
mutation destroyJoinCode($input: DestroyJoinCodeInput!) {
  destroyJoinCode(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      code
      effectiveUntil
      id
      requireApproval
    }
  }
}
Variables
{"input": DestroyJoinCodeInput}
Response
{
  "data": {
    "destroyJoinCode": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": JoinCode
    }
  }
}

destroyLeave

Response

Returns a DestroyLeavePayload

Arguments
Name Description
input - DestroyLeaveInput! Parameters for DestroyLeave

Example

Query
mutation destroyLeave($input: DestroyLeaveInput!) {
  destroyLeave(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      allDay
      approvedAt
      approver {
        ...UserFragment
      }
      approverId
      canceledAt
      days {
        ...LeaveRequestDayFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      id
      leaveCategory {
        ...LeaveCategoryFragment
      }
      paid
      processedAt
      reason
      rejectedAt
      requester {
        ...UserFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": DestroyLeaveInput}
Response
{
  "data": {
    "destroyLeave": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": LeaveRequest
    }
  }
}

destroyMessage

Response

Returns a DestroyMessagePayload

Arguments
Name Description
input - DestroyMessageInput! Parameters for DestroyMessage

Example

Query
mutation destroyMessage($input: DestroyMessageInput!) {
  destroyMessage(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      blocks
      chatAttachments {
        ...ChatAttachmentFragment
      }
      chatReactions {
        ...ChatReactionFragment
      }
      createdAt
      deletedAt
      id
      message
      pinned
      read
      updatedAt
      user {
        ...UserFragment
      }
    }
  }
}
Variables
{"input": DestroyMessageInput}
Response
{
  "data": {
    "destroyMessage": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": ChatMessage
    }
  }
}

destroyMessageBoard

Response

Returns a DestroyMessageBoardPayload

Arguments
Name Description
input - DestroyMessageBoardInput! Parameters for DestroyMessageBoard

Example

Query
mutation destroyMessageBoard($input: DestroyMessageBoardInput!) {
  destroyMessageBoard(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      categories {
        ...MessageBoardCategoryFragment
      }
      createdAt
      deletedAt
      description
      id
      messageBoardsMembers {
        ...MessageBoardsMemberFragment
      }
      name
      pinnedAt
      shareWithNewHires
      unreadMessagesCount
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": DestroyMessageBoardInput}
Response
{
  "data": {
    "destroyMessageBoard": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": MessageBoard
    }
  }
}

destroyMessageBoardPost

Response

Returns a DestroyMessageBoardPostPayload

Arguments
Name Description
input - DestroyMessageBoardPostInput! Parameters for DestroyMessageBoardPost

Example

Query
mutation destroyMessageBoardPost($input: DestroyMessageBoardPostInput!) {
  destroyMessageBoardPost(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      archivedAt
      author {
        ...UserFragment
      }
      blocks
      board {
        ...MessageBoardFragment
      }
      category {
        ...MessageBoardCategoryFragment
      }
      commentEnabled
      commentsCount
      confirmationRequiredUsers {
        ...UserFragment
      }
      createdAt
      deletedAt
      draftAt
      id
      images {
        ...MessageBoardPostImageFragment
      }
      messageBoardId
      notifyUsers {
        ...UserFragment
      }
      pinnedAt
      publishedAt
      reactions {
        ...ReactionFragment
      }
      readAt
      scheduledPostAt
      state
      title
      updatedAt
    }
  }
}
Variables
{"input": DestroyMessageBoardPostInput}
Response
{
  "data": {
    "destroyMessageBoardPost": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": MessageBoardPost
    }
  }
}

destroyReaction

Response

Returns a DestroyReactionPayload

Arguments
Name Description
input - DestroyReactionInput! Parameters for DestroyReaction

Example

Query
mutation destroyReaction($input: DestroyReactionInput!) {
  destroyReaction(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": DestroyReactionInput}
Response
{
  "data": {
    "destroyReaction": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": false
    }
  }
}

destroySchedule

Response

Returns a DestroySchedulePayload

Arguments
Name Description
input - DestroyScheduleInput! Parameters for DestroySchedule

Example

Query
mutation destroySchedule($input: DestroyScheduleInput!) {
  destroySchedule(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      color
      createdAt
      default
      defaultJobSite {
        ...JobSiteFragment
      }
      id
      name
      schedulesUsers {
        ...ScheduleUserFragment
      }
      timezone
      updatedAt
      users {
        ...UserFragment
      }
    }
  }
}
Variables
{"input": DestroyScheduleInput}
Response
{
  "data": {
    "destroySchedule": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Schedule
    }
  }
}

destroySchedulePhoto

Response

Returns a DestroySchedulePhotoPayload

Arguments
Name Description
input - DestroySchedulePhotoInput! Parameters for DestroySchedulePhoto

Example

Query
mutation destroySchedulePhoto($input: DestroySchedulePhotoInput!) {
  destroySchedulePhoto(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      from
      id
      photo
      schedule {
        ...ScheduleFragment
      }
      timezone
      to
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": DestroySchedulePhotoInput}
Response
{
  "data": {
    "destroySchedulePhoto": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": SchedulePhoto
    }
  }
}

destroyShift

Response

Returns a DestroyShiftPayload

Arguments
Name Description
input - DestroyShiftInput! Parameters for DestroyShift

Example

Query
mutation destroyShift($input: DestroyShiftInput!) {
  destroyShift(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedTargetedShiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      assignee {
        ...UserFragment
      }
      attachments {
        ...ShiftAttachmentFragment
      }
      breakDuration
      checklistAssignments {
        ...ChecklistAssignmentFragment
      }
      client {
        ...ClientFragment
      }
      color
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      note
      recurrence {
        ...RecurrenceFragment
      }
      requester {
        ...UserFragment
      }
      requireClaimApproval
      schedule {
        ...ScheduleFragment
      }
      shiftBatchId
      shiftClaimRequests {
        ...ShiftClaimRequestFragment
      }
      shiftPartners {
        ...ShiftFragment
      }
      shiftRequests {
        ...ShiftRequestFragment
      }
      startTime
      state
      systemNote
      timeCard {
        ...TimeCardFragment
      }
      timezone
      title
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": DestroyShiftInput}
Response
{
  "data": {
    "destroyShift": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Shift
    }
  }
}

destroyShiftBatch

Response

Returns a DestroyShiftBatchPayload

Arguments
Name Description
input - DestroyShiftBatchInput! Parameters for DestroyShiftBatch

Example

Query
mutation destroyShiftBatch($input: DestroyShiftBatchInput!) {
  destroyShiftBatch(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      id
      requester {
        ...UserFragment
      }
      shifts {
        ...ShiftFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": DestroyShiftBatchInput}
Response
{
  "data": {
    "destroyShiftBatch": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": ShiftBatch
    }
  }
}

destroyShiftOffer

Response

Returns a DestroyShiftOfferPayload

Arguments
Name Description
input - DestroyShiftOfferInput! Parameters for DestroyShiftOffer

Example

Query
mutation destroyShiftOffer($input: DestroyShiftOfferInput!) {
  destroyShiftOffer(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      createdAt
      id
      requester {
        ...UserFragment
      }
      shift {
        ...ShiftFragment
      }
      shiftOfferRequests {
        ...ShiftOfferRequestFragment
      }
      state
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": DestroyShiftOfferInput}
Response
{
  "data": {
    "destroyShiftOffer": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": ShiftOffer
    }
  }
}

destroyShiftSwap

Response

Returns a DestroyShiftSwapPayload

Arguments
Name Description
input - DestroyShiftSwapInput! Parameters for DestroyShiftSwap

Example

Query
mutation destroyShiftSwap($input: DestroyShiftSwapInput!) {
  destroyShiftSwap(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      createdAt
      id
      requester {
        ...UserFragment
      }
      shift {
        ...ShiftFragment
      }
      shiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      state
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": DestroyShiftSwapInput}
Response
{
  "data": {
    "destroyShiftSwap": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": ShiftSwap
    }
  }
}

destroyShiftTemplate

Response

Returns a DestroyShiftTemplatePayload

Arguments
Name Description
input - DestroyShiftTemplateInput! Parameters for DestroyShiftTemplate

Example

Query
mutation destroyShiftTemplate($input: DestroyShiftTemplateInput!) {
  destroyShiftTemplate(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      breakDuration
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      name
      note
      schedule {
        ...ScheduleFragment
      }
      startTime
      timezone
    }
  }
}
Variables
{"input": DestroyShiftTemplateInput}
Response
{
  "data": {
    "destroyShiftTemplate": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": ShiftTemplate
    }
  }
}

destroyShifts

Response

Returns a DestroyShiftsPayload

Arguments
Name Description
input - DestroyShiftsInput! Parameters for DestroyShifts

Example

Query
mutation destroyShifts($input: DestroyShiftsInput!) {
  destroyShifts(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedTargetedShiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      assignee {
        ...UserFragment
      }
      attachments {
        ...ShiftAttachmentFragment
      }
      breakDuration
      checklistAssignments {
        ...ChecklistAssignmentFragment
      }
      client {
        ...ClientFragment
      }
      color
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      note
      recurrence {
        ...RecurrenceFragment
      }
      requester {
        ...UserFragment
      }
      requireClaimApproval
      schedule {
        ...ScheduleFragment
      }
      shiftBatchId
      shiftClaimRequests {
        ...ShiftClaimRequestFragment
      }
      shiftPartners {
        ...ShiftFragment
      }
      shiftRequests {
        ...ShiftRequestFragment
      }
      startTime
      state
      systemNote
      timeCard {
        ...TimeCardFragment
      }
      timezone
      title
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": DestroyShiftsInput}
Response
{
  "data": {
    "destroyShifts": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": [Shift]
    }
  }
}

destroyTask

Response

Returns a DestroyTaskPayload

Arguments
Name Description
input - DestroyTaskInput! Parameters for DestroyTask

Example

Query
mutation destroyTask($input: DestroyTaskInput!) {
  destroyTask(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": DestroyTaskInput}
Response
{
  "data": {
    "destroyTask": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": false
    }
  }
}

destroyTimeCard

Response

Returns a DestroyTimeCardPayload

Arguments
Name Description
input - DestroyTimeCardInput! Parameters for DestroyTimeCard

Example

Query
mutation destroyTimeCard($input: DestroyTimeCardInput!) {
  destroyTimeCard(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      autoDeductedUnpaidBreakDuration
      createdAt
      creator {
        ...UserFragment
      }
      endTime
      group {
        ...GroupFragment
      }
      hasWarning
      id
      note
      punches {
        ...TimeCardPunchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      shift {
        ...ShiftFragment
      }
      shiftId
      startTime
      state
      timezone
      totalDuration
    }
  }
}
Variables
{"input": DestroyTimeCardInput}
Response
{
  "data": {
    "destroyTimeCard": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": TimeCard
    }
  }
}

destroyTimesheet

Response

Returns a DestroyTimesheetPayload

Arguments
Name Description
input - DestroyTimesheetInput! Parameters for DestroyTimesheet

Example

Query
mutation destroyTimesheet($input: DestroyTimesheetInput!) {
  destroyTimesheet(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedAt
      approver {
        ...UserFragment
      }
      comments
      creator {
        ...UserFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      group {
        ...GroupFragment
      }
      id
      processedAt
      referenceObject {
        ... on Document {
          ...DocumentFragment
        }
        ... on LeaveRequest {
          ...LeaveRequestFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
        ... on Shift {
          ...ShiftFragment
        }
        ... on ShiftClaimRequest {
          ...ShiftClaimRequestFragment
        }
        ... on TimeCard {
          ...TimeCardFragment
        }
      }
      rejectedAt
      schedule {
        ...ScheduleFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      unpaidBreaks {
        ... on TimesheetAutoDeductBreak {
          ...TimesheetAutoDeductBreakFragment
        }
        ... on TimesheetManualBreak {
          ...TimesheetManualBreakFragment
        }
        ... on TimesheetPunchBreak {
          ...TimesheetPunchBreakFragment
        }
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": DestroyTimesheetInput}
Response
{
  "data": {
    "destroyTimesheet": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Timesheet
    }
  }
}

destroyWorkspaceSampleData

Arguments
Name Description
input - DestroyWorkspaceSampleDataInput! Parameters for DestroyWorkspaceSampleData

Example

Query
mutation destroyWorkspaceSampleData($input: DestroyWorkspaceSampleDataInput!) {
  destroyWorkspaceSampleData(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": DestroyWorkspaceSampleDataInput}
Response
{
  "data": {
    "destroyWorkspaceSampleData": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": true
    }
  }
}

downgradeSubscriptionPlan

Arguments
Name Description
input - DowngradeSubscriptionPlanInput! Parameters for DowngradeSubscriptionPlan

Example

Query
mutation downgradeSubscriptionPlan($input: DowngradeSubscriptionPlanInput!) {
  downgradeSubscriptionPlan(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": DowngradeSubscriptionPlanInput}
Response
{
  "data": {
    "downgradeSubscriptionPlan": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": false
    }
  }
}

downloadFile

Response

Returns a DownloadFilePayload

Arguments
Name Description
input - DownloadFileInput! Parameters for DownloadFile

Example

Query
mutation downloadFile($input: DownloadFileInput!) {
  downloadFile(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      url
    }
  }
}
Variables
{"input": DownloadFileInput}
Response
{
  "data": {
    "downloadFile": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": DownloadFileResult
    }
  }
}

draftLeave

Response

Returns a DraftLeavePayload

Arguments
Name Description
input - DraftLeaveInput! Parameters for DraftLeave

Example

Query
mutation draftLeave($input: DraftLeaveInput!) {
  draftLeave(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      allDay
      approvedAt
      approver {
        ...UserFragment
      }
      approverId
      canceledAt
      days {
        ...LeaveRequestDayFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      id
      leaveCategory {
        ...LeaveCategoryFragment
      }
      paid
      processedAt
      reason
      rejectedAt
      requester {
        ...UserFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": DraftLeaveInput}
Response
{
  "data": {
    "draftLeave": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": LeaveRequest
    }
  }
}

draftTimesheet

Response

Returns a DraftTimesheetPayload

Arguments
Name Description
input - DraftTimesheetInput! Parameters for DraftTimesheet

Example

Query
mutation draftTimesheet($input: DraftTimesheetInput!) {
  draftTimesheet(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedAt
      approver {
        ...UserFragment
      }
      comments
      creator {
        ...UserFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      group {
        ...GroupFragment
      }
      id
      processedAt
      referenceObject {
        ... on Document {
          ...DocumentFragment
        }
        ... on LeaveRequest {
          ...LeaveRequestFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
        ... on Shift {
          ...ShiftFragment
        }
        ... on ShiftClaimRequest {
          ...ShiftClaimRequestFragment
        }
        ... on TimeCard {
          ...TimeCardFragment
        }
      }
      rejectedAt
      schedule {
        ...ScheduleFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      unpaidBreaks {
        ... on TimesheetAutoDeductBreak {
          ...TimesheetAutoDeductBreakFragment
        }
        ... on TimesheetManualBreak {
          ...TimesheetManualBreakFragment
        }
        ... on TimesheetPunchBreak {
          ...TimesheetPunchBreakFragment
        }
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": DraftTimesheetInput}
Response
{
  "data": {
    "draftTimesheet": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Timesheet
    }
  }
}

exportSchedule

Description

Export schedule as spreadsheet/image file and send email to owner

Response

Returns an ExportSchedulePayload

Arguments
Name Description
input - ExportScheduleInput! Parameters for ExportSchedule

Example

Query
mutation exportSchedule($input: ExportScheduleInput!) {
  exportSchedule(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": ExportScheduleInput}
Response
{
  "data": {
    "exportSchedule": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": false
    }
  }
}

exportTimesheet

Description

Export timesheet as xlsx file and send email to customer

Response

Returns an ExportTimesheetPayload

Arguments
Name Description
input - ExportTimesheetInput! Parameters for ExportTimesheet

Example

Query
mutation exportTimesheet($input: ExportTimesheetInput!) {
  exportTimesheet(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": ExportTimesheetInput}
Response
{
  "data": {
    "exportTimesheet": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": true
    }
  }
}

finishEmployeeGetStartedStep

Arguments
Name Description
input - FinishEmployeeGetStartedStepInput! Parameters for FinishEmployeeGetStartedStep

Example

Query
mutation finishEmployeeGetStartedStep($input: FinishEmployeeGetStartedStepInput!) {
  finishEmployeeGetStartedStep(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      id
      name
      order
      state
    }
  }
}
Variables
{"input": FinishEmployeeGetStartedStepInput}
Response
{
  "data": {
    "finishEmployeeGetStartedStep": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": EmployeeGetStartedStep
    }
  }
}

finishTask

Response

Returns a FinishTaskPayload

Arguments
Name Description
input - FinishTaskInput! Parameters for FinishTask

Example

Query
mutation finishTask($input: FinishTaskInput!) {
  finishTask(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      assignee {
        ...UserFragment
      }
      checklist {
        ...ChecklistFragment
      }
      code
      comments {
        ...CommentFragment
      }
      completedLog {
        ...CompletedLogFragment
      }
      completionCountTarget
      description
      doneAt
      dueDate
      id
      inProgressAt
      lastCompletedAt
      name
      notStartedAt
      parent {
        ...TaskFragment
      }
      requester {
        ...UserFragment
      }
      state
      subTasks {
        ...TaskFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": FinishTaskInput}
Response
{
  "data": {
    "finishTask": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Task
    }
  }
}

finishWorkspaceGetStartedStep

Arguments
Name Description
input - FinishWorkspaceGetStartedStepInput! Parameters for FinishWorkspaceGetStartedStep

Example

Query
mutation finishWorkspaceGetStartedStep($input: FinishWorkspaceGetStartedStepInput!) {
  finishWorkspaceGetStartedStep(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      id
      name
      order
      state
    }
  }
}
Variables
{"input": FinishWorkspaceGetStartedStepInput}
Response
{
  "data": {
    "finishWorkspaceGetStartedStep": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": WorkspaceGetStartedStep
    }
  }
}

generateUploadUrl

Response

Returns a GenerateDirectUploadUrlPayload

Arguments
Name Description
input - GenerateDirectUploadUrlInput! Parameters for GenerateDirectUploadUrl

Example

Query
mutation generateUploadUrl($input: GenerateDirectUploadUrlInput!) {
  generateUploadUrl(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acl
      key
      policy
      uri
      xAmzAlgorithm
      xAmzCredential
      xAmzDate
      xAmzSignature
    }
  }
}
Variables
{"input": GenerateDirectUploadUrlInput}
Response
{
  "data": {
    "generateUploadUrl": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": AWS4Request
    }
  }
}

importEmployees

Description

Import employees to workspace

Response

Returns an ImportEmployeesPayload

Arguments
Name Description
input - ImportEmployeesInput! Parameters for ImportEmployees

Example

Query
mutation importEmployees($input: ImportEmployeesInput!) {
  importEmployees(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      createdAt
      csvFile
      data
      id
      requester {
        ...UserFragment
      }
      state
      updatedAt
    }
  }
}
Variables
{"input": ImportEmployeesInput}
Response
{
  "data": {
    "importEmployees": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": EmployeeImportRequest
    }
  }
}

inviteToChannel

Response

Returns an InviteToChannelPayload

Arguments
Name Description
input - InviteToChannelInput! Parameters for InviteToChannel

Example

Query
mutation inviteToChannel($input: InviteToChannelInput!) {
  inviteToChannel(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      archivedAt
      channelType
      chatMessagesCount
      color
      creator {
        ...UserFragment
      }
      currentMember {
        ...ChannelMemberFragment
      }
      displayName
      emojiIcon
      id
      lastAddedMessageContent
      lastMessageAt
      members {
        ...ChannelMemberFragment
      }
      purpose
      readOnly
      suggested
      users {
        ...UserFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": InviteToChannelInput}
Response
{
  "data": {
    "inviteToChannel": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": ChatChannel
    }
  }
}

joinChannel

Response

Returns a JoinChannelPayload

Arguments
Name Description
input - JoinChannelInput! Parameters for JoinChannel

Example

Query
mutation joinChannel($input: JoinChannelInput!) {
  joinChannel(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      chatChannel {
        ...ChatChannelFragment
      }
      id
      lastViewedAt
      lastViewedMessagesCount
      mentionCount
      notifyProps {
        ...ChannelMemberNotifyPropsFragment
      }
      role
      user {
        ...UserFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": JoinChannelInput}
Response
{
  "data": {
    "joinChannel": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": ChannelMember
    }
  }
}

kickFromChannel

Response

Returns a KickFromChannelPayload

Arguments
Name Description
input - KickFromChannelInput! Parameters for KickFromChannel

Example

Query
mutation kickFromChannel($input: KickFromChannelInput!) {
  kickFromChannel(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      archivedAt
      channelType
      chatMessagesCount
      color
      creator {
        ...UserFragment
      }
      currentMember {
        ...ChannelMemberFragment
      }
      displayName
      emojiIcon
      id
      lastAddedMessageContent
      lastMessageAt
      members {
        ...ChannelMemberFragment
      }
      purpose
      readOnly
      suggested
      users {
        ...UserFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": KickFromChannelInput}
Response
{
  "data": {
    "kickFromChannel": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": ChatChannel
    }
  }
}

kioskPunch

Response

Returns a KioskPunchPayload

Arguments
Name Description
input - KioskPunchInput! Parameters for KioskPunch

Example

Query
mutation kioskPunch($input: KioskPunchInput!) {
  kioskPunch(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      state
      timeCards {
        ...KioskTimeCardFragment
      }
      whoami {
        ...WhoamiFragment
      }
    }
  }
}
Variables
{"input": KioskPunchInput}
Response
{
  "data": {
    "kioskPunch": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": KioskPunchResponse
    }
  }
}

lastViewedAtChannel

Description

Set the last time the user has viewed the channel

Response

Returns a LastViewedAtChannelPayload

Arguments
Name Description
input - LastViewedAtChannelInput! Parameters for LastViewedAtChannel

Example

Query
mutation lastViewedAtChannel($input: LastViewedAtChannelInput!) {
  lastViewedAtChannel(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      chatChannel {
        ...ChatChannelFragment
      }
      id
      lastViewedAt
      lastViewedMessagesCount
      mentionCount
      notifyProps {
        ...ChannelMemberNotifyPropsFragment
      }
      role
      user {
        ...UserFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": LastViewedAtChannelInput}
Response
{
  "data": {
    "lastViewedAtChannel": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": ChannelMember
    }
  }
}

leaveChannel

Response

Returns a LeaveChannelPayload

Arguments
Name Description
input - LeaveChannelInput! Parameters for LeaveChannel

Example

Query
mutation leaveChannel($input: LeaveChannelInput!) {
  leaveChannel(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      chatChannel {
        ...ChatChannelFragment
      }
      id
      lastViewedAt
      lastViewedMessagesCount
      mentionCount
      notifyProps {
        ...ChannelMemberNotifyPropsFragment
      }
      role
      user {
        ...UserFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": LeaveChannelInput}
Response
{
  "data": {
    "leaveChannel": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": ChannelMember
    }
  }
}

linkWithDevice

Description

Link the Device with current user for notifications receiving

Response

Returns a LinkUserWithDevicePayload

Arguments
Name Description
input - LinkUserWithDeviceInput! Parameters for LinkUserWithDevice

Example

Query
mutation linkWithDevice($input: LinkUserWithDeviceInput!) {
  linkWithDevice(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      appVersion
      buildVersion
      id
      name
      token
      user {
        ...UserFragment
      }
    }
  }
}
Variables
{"input": LinkUserWithDeviceInput}
Response
{
  "data": {
    "linkWithDevice": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Device
    }
  }
}

markAllInboxAsRead

Response

Returns a MarkAllInboxAsReadPayload

Arguments
Name Description
input - MarkAllInboxAsReadInput! Parameters for MarkAllInboxAsRead

Example

Query
mutation markAllInboxAsRead($input: MarkAllInboxAsReadInput!) {
  markAllInboxAsRead(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      blocks
      chatAttachments {
        ...ChatAttachmentFragment
      }
      chatReactions {
        ...ChatReactionFragment
      }
      createdAt
      deletedAt
      id
      message
      pinned
      read
      updatedAt
      user {
        ...UserFragment
      }
    }
  }
}
Variables
{"input": MarkAllInboxAsReadInput}
Response
{
  "data": {
    "markAllInboxAsRead": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": [ChatMessage]
    }
  }
}

markAllNotificationsAsRead

Arguments
Name Description
input - MarkAllNotificationsAsReadInput! Parameters for MarkAllNotificationsAsRead

Example

Query
mutation markAllNotificationsAsRead($input: MarkAllNotificationsAsReadInput!) {
  markAllNotificationsAsRead(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": MarkAllNotificationsAsReadInput}
Response
{
  "data": {
    "markAllNotificationsAsRead": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": false
    }
  }
}

markNotificationsAsRead

Response

Returns a MarkNotificationsAsReadPayload

Arguments
Name Description
input - MarkNotificationsAsReadInput! Parameters for MarkNotificationsAsRead

Example

Query
mutation markNotificationsAsRead($input: MarkNotificationsAsReadInput!) {
  markNotificationsAsRead(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      actedUponAt
      createdAt
      id
      message
      notificationType
      readAt
      recipient {
        ...UserFragment
      }
      recipientId
      referenceObject {
        ... on Document {
          ...DocumentFragment
        }
        ... on LeaveRequest {
          ...LeaveRequestFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
        ... on Shift {
          ...ShiftFragment
        }
        ... on ShiftClaimRequest {
          ...ShiftClaimRequestFragment
        }
        ... on TimeCard {
          ...TimeCardFragment
        }
      }
      sender {
        ...UserFragment
      }
      senderId
      title
      updatedAt
      workspaceId
    }
  }
}
Variables
{"input": MarkNotificationsAsReadInput}
Response
{
  "data": {
    "markNotificationsAsRead": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": [Notification]
    }
  }
}

messageAction

Response

Returns a MessageActionPayload

Arguments
Name Description
input - MessageActionInput! Parameters for MessageAction

Example

Query
mutation messageAction($input: MessageActionInput!) {
  messageAction(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      blocks
      message
      responseType
    }
  }
}
Variables
{"input": MessageActionInput}
Response
{
  "data": {
    "messageAction": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": MessageActionResult
    }
  }
}

offerShift

Response

Returns an OfferShiftPayload

Arguments
Name Description
input - OfferShiftInput! Parameters for OfferShift

Example

Query
mutation offerShift($input: OfferShiftInput!) {
  offerShift(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedTargetedShiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      assignee {
        ...UserFragment
      }
      attachments {
        ...ShiftAttachmentFragment
      }
      breakDuration
      checklistAssignments {
        ...ChecklistAssignmentFragment
      }
      client {
        ...ClientFragment
      }
      color
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      note
      recurrence {
        ...RecurrenceFragment
      }
      requester {
        ...UserFragment
      }
      requireClaimApproval
      schedule {
        ...ScheduleFragment
      }
      shiftBatchId
      shiftClaimRequests {
        ...ShiftClaimRequestFragment
      }
      shiftPartners {
        ...ShiftFragment
      }
      shiftRequests {
        ...ShiftRequestFragment
      }
      startTime
      state
      systemNote
      timeCard {
        ...TimeCardFragment
      }
      timezone
      title
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": OfferShiftInput}
Response
{
  "data": {
    "offerShift": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Shift
    }
  }
}

pinDocument

Response

Returns a PinDocumentPayload

Arguments
Name Description
input - PinDocumentInput! Parameters for PinDocument

Example

Query
mutation pinDocument($input: PinDocumentInput!) {
  pinDocument(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      allUsersAssigned
      archived
      assignedGroups {
        ...GroupFragment
      }
      assignees {
        ...UserFragment
      }
      assignmentType
      color
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      documentAttachments {
        ...DocumentAttachmentFragment
      }
      expiredAt
      folder {
        ...FolderFragment
      }
      id
      name
      notes
      pinnedAt
      shareWithNewHires
      state
      tags {
        ...TagFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": PinDocumentInput}
Response
{
  "data": {
    "pinDocument": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Document
    }
  }
}

pinMessageBoard

Response

Returns a PinMessageBoardPayload

Arguments
Name Description
input - PinMessageBoardInput! Parameters for PinMessageBoard

Example

Query
mutation pinMessageBoard($input: PinMessageBoardInput!) {
  pinMessageBoard(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      categories {
        ...MessageBoardCategoryFragment
      }
      createdAt
      deletedAt
      description
      id
      messageBoardsMembers {
        ...MessageBoardsMemberFragment
      }
      name
      pinnedAt
      shareWithNewHires
      unreadMessagesCount
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": PinMessageBoardInput}
Response
{
  "data": {
    "pinMessageBoard": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": MessageBoard
    }
  }
}

pinMessageBoardPost

Response

Returns a PinMessageBoardPostPayload

Arguments
Name Description
input - PinMessageBoardPostInput! Parameters for PinMessageBoardPost

Example

Query
mutation pinMessageBoardPost($input: PinMessageBoardPostInput!) {
  pinMessageBoardPost(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      archivedAt
      author {
        ...UserFragment
      }
      blocks
      board {
        ...MessageBoardFragment
      }
      category {
        ...MessageBoardCategoryFragment
      }
      commentEnabled
      commentsCount
      confirmationRequiredUsers {
        ...UserFragment
      }
      createdAt
      deletedAt
      draftAt
      id
      images {
        ...MessageBoardPostImageFragment
      }
      messageBoardId
      notifyUsers {
        ...UserFragment
      }
      pinnedAt
      publishedAt
      reactions {
        ...ReactionFragment
      }
      readAt
      scheduledPostAt
      state
      title
      updatedAt
    }
  }
}
Variables
{"input": PinMessageBoardPostInput}
Response
{
  "data": {
    "pinMessageBoardPost": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": MessageBoardPost
    }
  }
}

publishShifts

Response

Returns a PublishShiftsPayload

Arguments
Name Description
input - PublishShiftsInput! Parameters for PublishShifts

Example

Query
mutation publishShifts($input: PublishShiftsInput!) {
  publishShifts(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedTargetedShiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      assignee {
        ...UserFragment
      }
      attachments {
        ...ShiftAttachmentFragment
      }
      breakDuration
      checklistAssignments {
        ...ChecklistAssignmentFragment
      }
      client {
        ...ClientFragment
      }
      color
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      note
      recurrence {
        ...RecurrenceFragment
      }
      requester {
        ...UserFragment
      }
      requireClaimApproval
      schedule {
        ...ScheduleFragment
      }
      shiftBatchId
      shiftClaimRequests {
        ...ShiftClaimRequestFragment
      }
      shiftPartners {
        ...ShiftFragment
      }
      shiftRequests {
        ...ShiftRequestFragment
      }
      startTime
      state
      systemNote
      timeCard {
        ...TimeCardFragment
      }
      timezone
      title
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": PublishShiftsInput}
Response
{
  "data": {
    "publishShifts": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": [Shift]
    }
  }
}

readInboxMessage

Response

Returns a ReadInboxMessagePayload

Arguments
Name Description
input - ReadInboxMessageInput! Parameters for ReadInboxMessage

Example

Query
mutation readInboxMessage($input: ReadInboxMessageInput!) {
  readInboxMessage(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      blocks
      chatAttachments {
        ...ChatAttachmentFragment
      }
      chatReactions {
        ...ChatReactionFragment
      }
      createdAt
      deletedAt
      id
      message
      pinned
      read
      updatedAt
      user {
        ...UserFragment
      }
    }
  }
}
Variables
{"input": ReadInboxMessageInput}
Response
{
  "data": {
    "readInboxMessage": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": ChatMessage
    }
  }
}

reassignShift

Response

Returns a ReassignShiftPayload

Arguments
Name Description
input - ReassignShiftInput! Parameters for ReassignShift

Example

Query
mutation reassignShift($input: ReassignShiftInput!) {
  reassignShift(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedTargetedShiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      assignee {
        ...UserFragment
      }
      attachments {
        ...ShiftAttachmentFragment
      }
      breakDuration
      checklistAssignments {
        ...ChecklistAssignmentFragment
      }
      client {
        ...ClientFragment
      }
      color
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      note
      recurrence {
        ...RecurrenceFragment
      }
      requester {
        ...UserFragment
      }
      requireClaimApproval
      schedule {
        ...ScheduleFragment
      }
      shiftBatchId
      shiftClaimRequests {
        ...ShiftClaimRequestFragment
      }
      shiftPartners {
        ...ShiftFragment
      }
      shiftRequests {
        ...ShiftRequestFragment
      }
      startTime
      state
      systemNote
      timeCard {
        ...TimeCardFragment
      }
      timezone
      title
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": ReassignShiftInput}
Response
{
  "data": {
    "reassignShift": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Shift
    }
  }
}

redeemCode

Response

Returns a RedeemCodePayload

Arguments
Name Description
input - RedeemCodeInput! Parameters for RedeemCode

Example

Query
mutation redeemCode($input: RedeemCodeInput!) {
  redeemCode(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      id
      redeemedAt
    }
  }
}
Variables
{"input": RedeemCodeInput}
Response
{
  "data": {
    "redeemCode": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Redemption
    }
  }
}

refuseShiftOfferRequest

Response

Returns a RefuseShiftOfferRequestPayload

Arguments
Name Description
input - RefuseShiftOfferRequestInput! Parameters for RefuseShiftOfferRequest

Example

Query
mutation refuseShiftOfferRequest($input: RefuseShiftOfferRequestInput!) {
  refuseShiftOfferRequest(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acceptedAt
      approvedAt
      approver {
        ...UserFragment
      }
      createdAt
      id
      receiver {
        ...UserFragment
      }
      refusedAt
      rejectedAt
      shiftOffer {
        ...ShiftOfferFragment
      }
      state
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": RefuseShiftOfferRequestInput}
Response
{
  "data": {
    "refuseShiftOfferRequest": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": ShiftOfferRequest
    }
  }
}

refuseShiftSwapRequest

Response

Returns a RefuseShiftSwapRequestPayload

Arguments
Name Description
input - RefuseShiftSwapRequestInput! Parameters for RefuseShiftSwapRequest

Example

Query
mutation refuseShiftSwapRequest($input: RefuseShiftSwapRequestInput!) {
  refuseShiftSwapRequest(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acceptedAt
      approvedAt
      approver {
        ...UserFragment
      }
      createdAt
      id
      receiver {
        ...UserFragment
      }
      refusedAt
      rejectedAt
      shiftSwap {
        ...ShiftSwapFragment
      }
      state
      targetShift {
        ...ShiftFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": RefuseShiftSwapRequestInput}
Response
{
  "data": {
    "refuseShiftSwapRequest": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": ShiftSwapRequest
    }
  }
}

rejectJoinRequest

Response

Returns a RejectJoinRequestPayload

Arguments
Name Description
input - RejectJoinRequestInput! Parameters for RejectJoinRequest

Example

Query
mutation rejectJoinRequest($input: RejectJoinRequestInput!) {
  rejectJoinRequest(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      id
      state
      user {
        ...UserFragment
      }
      userInfo
    }
  }
}
Variables
{"input": RejectJoinRequestInput}
Response
{
  "data": {
    "rejectJoinRequest": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": JoinRequest
    }
  }
}

rejectLeave

Response

Returns a RejectLeavePayload

Arguments
Name Description
input - RejectLeaveInput! Parameters for RejectLeave

Example

Query
mutation rejectLeave($input: RejectLeaveInput!) {
  rejectLeave(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      allDay
      approvedAt
      approver {
        ...UserFragment
      }
      approverId
      canceledAt
      days {
        ...LeaveRequestDayFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      id
      leaveCategory {
        ...LeaveCategoryFragment
      }
      paid
      processedAt
      reason
      rejectedAt
      requester {
        ...UserFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": RejectLeaveInput}
Response
{
  "data": {
    "rejectLeave": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": LeaveRequest
    }
  }
}

rejectShift

Response

Returns a RejectShiftPayload

Arguments
Name Description
input - RejectShiftInput! Parameters for RejectShift

Example

Query
mutation rejectShift($input: RejectShiftInput!) {
  rejectShift(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedTargetedShiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      assignee {
        ...UserFragment
      }
      attachments {
        ...ShiftAttachmentFragment
      }
      breakDuration
      checklistAssignments {
        ...ChecklistAssignmentFragment
      }
      client {
        ...ClientFragment
      }
      color
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      note
      recurrence {
        ...RecurrenceFragment
      }
      requester {
        ...UserFragment
      }
      requireClaimApproval
      schedule {
        ...ScheduleFragment
      }
      shiftBatchId
      shiftClaimRequests {
        ...ShiftClaimRequestFragment
      }
      shiftPartners {
        ...ShiftFragment
      }
      shiftRequests {
        ...ShiftRequestFragment
      }
      startTime
      state
      systemNote
      timeCard {
        ...TimeCardFragment
      }
      timezone
      title
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": RejectShiftInput}
Response
{
  "data": {
    "rejectShift": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Shift
    }
  }
}

rejectShiftClaimRequest

Response

Returns a RejectShiftClaimRequestPayload

Arguments
Name Description
input - RejectShiftClaimRequestInput! Parameters for RejectShiftClaimRequest

Example

Query
mutation rejectShiftClaimRequest($input: RejectShiftClaimRequestInput!) {
  rejectShiftClaimRequest(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      createdAt
      id
      requester {
        ...UserFragment
      }
      shift {
        ...ShiftFragment
      }
      state
    }
  }
}
Variables
{"input": RejectShiftClaimRequestInput}
Response
{
  "data": {
    "rejectShiftClaimRequest": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": ShiftClaimRequest
    }
  }
}

rejectTimesheet

Response

Returns a RejectTimesheetPayload

Arguments
Name Description
input - RejectTimesheetInput! Parameters for RejectTimesheet

Example

Query
mutation rejectTimesheet($input: RejectTimesheetInput!) {
  rejectTimesheet(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedAt
      approver {
        ...UserFragment
      }
      comments
      creator {
        ...UserFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      group {
        ...GroupFragment
      }
      id
      processedAt
      referenceObject {
        ... on Document {
          ...DocumentFragment
        }
        ... on LeaveRequest {
          ...LeaveRequestFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
        ... on Shift {
          ...ShiftFragment
        }
        ... on ShiftClaimRequest {
          ...ShiftClaimRequestFragment
        }
        ... on TimeCard {
          ...TimeCardFragment
        }
      }
      rejectedAt
      schedule {
        ...ScheduleFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      unpaidBreaks {
        ... on TimesheetAutoDeductBreak {
          ...TimesheetAutoDeductBreakFragment
        }
        ... on TimesheetManualBreak {
          ...TimesheetManualBreakFragment
        }
        ... on TimesheetPunchBreak {
          ...TimesheetPunchBreakFragment
        }
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": RejectTimesheetInput}
Response
{
  "data": {
    "rejectTimesheet": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Timesheet
    }
  }
}

requestKioskLoginSession

Description

Open a login request for the kiosk app, only send OTP if the requester is owner/managers.

Response

Returns a RequestKioskLoginSessionPayload

Arguments
Name Description
input - RequestKioskLoginSessionInput! Parameters for RequestKioskLoginSession

Example

Query
mutation requestKioskLoginSession($input: RequestKioskLoginSessionInput!) {
  requestKioskLoginSession(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      id
      uad
    }
  }
}
Variables
{"input": RequestKioskLoginSessionInput}
Response
{
  "data": {
    "requestKioskLoginSession": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": LoginSession
    }
  }
}

requestLoginSession

Description

Open a login request, the user will be verified through OTP.

Response

Returns a RequestLoginSessionPayload

Arguments
Name Description
input - RequestLoginSessionInput! Parameters for RequestLoginSession

Example

Query
mutation requestLoginSession($input: RequestLoginSessionInput!) {
  requestLoginSession(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      id
      uad
    }
  }
}
Variables
{"input": RequestLoginSessionInput}
Response
{
  "data": {
    "requestLoginSession": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": LoginSession
    }
  }
}

requestServiceToken

Response

Returns a RequestServiceTokenPayload

Arguments
Name Description
input - RequestServiceTokenInput! Parameters for RequestServiceToken

Example

Query
mutation requestServiceToken($input: RequestServiceTokenInput!) {
  requestServiceToken(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": RequestServiceTokenInput}
Response
{
  "data": {
    "requestServiceToken": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": "xyz789"
    }
  }
}

requestToDestroyUser

Response

Returns a RequestToDestroyUserPayload

Arguments
Name Description
input - RequestToDestroyUserInput! Parameters for RequestToDestroyUser

Example

Query
mutation requestToDestroyUser($input: RequestToDestroyUserInput!) {
  requestToDestroyUser(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": RequestToDestroyUserInput}
Response
{
  "data": {
    "requestToDestroyUser": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": true
    }
  }
}

restoreDocument

Response

Returns a RestoreDocumentPayload

Arguments
Name Description
input - RestoreDocumentInput! Parameters for RestoreDocument

Example

Query
mutation restoreDocument($input: RestoreDocumentInput!) {
  restoreDocument(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      allUsersAssigned
      archived
      assignedGroups {
        ...GroupFragment
      }
      assignees {
        ...UserFragment
      }
      assignmentType
      color
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      documentAttachments {
        ...DocumentAttachmentFragment
      }
      expiredAt
      folder {
        ...FolderFragment
      }
      id
      name
      notes
      pinnedAt
      shareWithNewHires
      state
      tags {
        ...TagFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": RestoreDocumentInput}
Response
{
  "data": {
    "restoreDocument": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Document
    }
  }
}

restoreGroup

Response

Returns a RestoreGroupPayload

Arguments
Name Description
input - RestoreGroupInput! Parameters for RestoreGroup

Example

Query
mutation restoreGroup($input: RestoreGroupInput!) {
  restoreGroup(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
      users {
        ...UserFragment
      }
      usersCount
    }
  }
}
Variables
{"input": RestoreGroupInput}
Response
{
  "data": {
    "restoreGroup": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Group
    }
  }
}

resubmitLeave

Response

Returns a ResubmitLeavePayload

Arguments
Name Description
input - ResubmitLeaveInput! Parameters for ResubmitLeave

Example

Query
mutation resubmitLeave($input: ResubmitLeaveInput!) {
  resubmitLeave(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      allDay
      approvedAt
      approver {
        ...UserFragment
      }
      approverId
      canceledAt
      days {
        ...LeaveRequestDayFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      id
      leaveCategory {
        ...LeaveCategoryFragment
      }
      paid
      processedAt
      reason
      rejectedAt
      requester {
        ...UserFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": ResubmitLeaveInput}
Response
{
  "data": {
    "resubmitLeave": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": LeaveRequest
    }
  }
}

resubmitTimesheet

Response

Returns a ResubmitTimesheetPayload

Arguments
Name Description
input - ResubmitTimesheetInput! Parameters for ResubmitTimesheet

Example

Query
mutation resubmitTimesheet($input: ResubmitTimesheetInput!) {
  resubmitTimesheet(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedAt
      approver {
        ...UserFragment
      }
      comments
      creator {
        ...UserFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      group {
        ...GroupFragment
      }
      id
      processedAt
      referenceObject {
        ... on Document {
          ...DocumentFragment
        }
        ... on LeaveRequest {
          ...LeaveRequestFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
        ... on Shift {
          ...ShiftFragment
        }
        ... on ShiftClaimRequest {
          ...ShiftClaimRequestFragment
        }
        ... on TimeCard {
          ...TimeCardFragment
        }
      }
      rejectedAt
      schedule {
        ...ScheduleFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      unpaidBreaks {
        ... on TimesheetAutoDeductBreak {
          ...TimesheetAutoDeductBreakFragment
        }
        ... on TimesheetManualBreak {
          ...TimesheetManualBreakFragment
        }
        ... on TimesheetPunchBreak {
          ...TimesheetPunchBreakFragment
        }
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": ResubmitTimesheetInput}
Response
{
  "data": {
    "resubmitTimesheet": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Timesheet
    }
  }
}

roundTimesheet

Response

Returns a RoundTimesheetPayload

Arguments
Name Description
input - RoundTimesheetInput! Parameters for RoundTimesheet

Example

Query
mutation roundTimesheet($input: RoundTimesheetInput!) {
  roundTimesheet(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedAt
      approver {
        ...UserFragment
      }
      comments
      creator {
        ...UserFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      group {
        ...GroupFragment
      }
      id
      processedAt
      referenceObject {
        ... on Document {
          ...DocumentFragment
        }
        ... on LeaveRequest {
          ...LeaveRequestFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
        ... on Shift {
          ...ShiftFragment
        }
        ... on ShiftClaimRequest {
          ...ShiftClaimRequestFragment
        }
        ... on TimeCard {
          ...TimeCardFragment
        }
      }
      rejectedAt
      schedule {
        ...ScheduleFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      unpaidBreaks {
        ... on TimesheetAutoDeductBreak {
          ...TimesheetAutoDeductBreakFragment
        }
        ... on TimesheetManualBreak {
          ...TimesheetManualBreakFragment
        }
        ... on TimesheetPunchBreak {
          ...TimesheetPunchBreakFragment
        }
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": RoundTimesheetInput}
Response
{
  "data": {
    "roundTimesheet": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Timesheet
    }
  }
}

saveTrialPersonalization

Response

Returns a SaveTrialPersonalizationPayload

Arguments
Name Description
input - SaveTrialPersonalizationInput! Parameters for SaveTrialPersonalization

Example

Query
mutation saveTrialPersonalization($input: SaveTrialPersonalizationInput!) {
  saveTrialPersonalization(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": SaveTrialPersonalizationInput}
Response
{
  "data": {
    "saveTrialPersonalization": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": "4"
    }
  }
}

signUp

Response

Returns a SignUpPayload

Arguments
Name Description
input - SignUpInput! Parameters for SignUp

Example

Query
mutation signUp($input: SignUpInput!) {
  signUp(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      prospectId
      workspaceId
    }
  }
}
Variables
{"input": SignUpInput}
Response
{
  "data": {
    "signUp": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": SignupProspectResult
    }
  }
}

signupWorkspace

Response

Returns a SignupWorkspacePayload

Arguments
Name Description
input - SignupWorkspaceInput! Parameters for SignupWorkspace

Example

Query
mutation signupWorkspace($input: SignupWorkspaceInput!) {
  signupWorkspace(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      jwtPayload {
        ...JwtPayloadFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": SignupWorkspaceInput}
Response
{
  "data": {
    "signupWorkspace": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": SignupWorkspaceResult
    }
  }
}

startTask

Response

Returns a StartTaskPayload

Arguments
Name Description
input - StartTaskInput! Parameters for StartTask

Example

Query
mutation startTask($input: StartTaskInput!) {
  startTask(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      assignee {
        ...UserFragment
      }
      checklist {
        ...ChecklistFragment
      }
      code
      comments {
        ...CommentFragment
      }
      completedLog {
        ...CompletedLogFragment
      }
      completionCountTarget
      description
      doneAt
      dueDate
      id
      inProgressAt
      lastCompletedAt
      name
      notStartedAt
      parent {
        ...TaskFragment
      }
      requester {
        ...UserFragment
      }
      state
      subTasks {
        ...TaskFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": StartTaskInput}
Response
{
  "data": {
    "startTask": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Task
    }
  }
}

submitDraftLeave

Response

Returns a SubmitDraftLeavePayload

Arguments
Name Description
input - SubmitDraftLeaveInput! Parameters for SubmitDraftLeave

Example

Query
mutation submitDraftLeave($input: SubmitDraftLeaveInput!) {
  submitDraftLeave(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      allDay
      approvedAt
      approver {
        ...UserFragment
      }
      approverId
      canceledAt
      days {
        ...LeaveRequestDayFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      id
      leaveCategory {
        ...LeaveCategoryFragment
      }
      paid
      processedAt
      reason
      rejectedAt
      requester {
        ...UserFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": SubmitDraftLeaveInput}
Response
{
  "data": {
    "submitDraftLeave": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": LeaveRequest
    }
  }
}

submitDraftTimesheet

Response

Returns a SubmitDraftTimesheetPayload

Arguments
Name Description
input - SubmitDraftTimesheetInput! Parameters for SubmitDraftTimesheet

Example

Query
mutation submitDraftTimesheet($input: SubmitDraftTimesheetInput!) {
  submitDraftTimesheet(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedAt
      approver {
        ...UserFragment
      }
      comments
      creator {
        ...UserFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      group {
        ...GroupFragment
      }
      id
      processedAt
      referenceObject {
        ... on Document {
          ...DocumentFragment
        }
        ... on LeaveRequest {
          ...LeaveRequestFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
        ... on Shift {
          ...ShiftFragment
        }
        ... on ShiftClaimRequest {
          ...ShiftClaimRequestFragment
        }
        ... on TimeCard {
          ...TimeCardFragment
        }
      }
      rejectedAt
      schedule {
        ...ScheduleFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      unpaidBreaks {
        ... on TimesheetAutoDeductBreak {
          ...TimesheetAutoDeductBreakFragment
        }
        ... on TimesheetManualBreak {
          ...TimesheetManualBreakFragment
        }
        ... on TimesheetPunchBreak {
          ...TimesheetPunchBreakFragment
        }
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": SubmitDraftTimesheetInput}
Response
{
  "data": {
    "submitDraftTimesheet": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Timesheet
    }
  }
}

submitDraftTimesheets

Response

Returns a SubmitDraftTimesheetsPayload

Arguments
Name Description
input - SubmitDraftTimesheetsInput! Parameters for SubmitDraftTimesheets

Example

Query
mutation submitDraftTimesheets($input: SubmitDraftTimesheetsInput!) {
  submitDraftTimesheets(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedAt
      approver {
        ...UserFragment
      }
      comments
      creator {
        ...UserFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      group {
        ...GroupFragment
      }
      id
      processedAt
      referenceObject {
        ... on Document {
          ...DocumentFragment
        }
        ... on LeaveRequest {
          ...LeaveRequestFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
        ... on Shift {
          ...ShiftFragment
        }
        ... on ShiftClaimRequest {
          ...ShiftClaimRequestFragment
        }
        ... on TimeCard {
          ...TimeCardFragment
        }
      }
      rejectedAt
      schedule {
        ...ScheduleFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      unpaidBreaks {
        ... on TimesheetAutoDeductBreak {
          ...TimesheetAutoDeductBreakFragment
        }
        ... on TimesheetManualBreak {
          ...TimesheetManualBreakFragment
        }
        ... on TimesheetPunchBreak {
          ...TimesheetPunchBreakFragment
        }
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": SubmitDraftTimesheetsInput}
Response
{
  "data": {
    "submitDraftTimesheets": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": [Timesheet]
    }
  }
}

submitLeave

Response

Returns a SubmitLeavePayload

Arguments
Name Description
input - SubmitLeaveInput! Parameters for SubmitLeave

Example

Query
mutation submitLeave($input: SubmitLeaveInput!) {
  submitLeave(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      allDay
      approvedAt
      approver {
        ...UserFragment
      }
      approverId
      canceledAt
      days {
        ...LeaveRequestDayFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      id
      leaveCategory {
        ...LeaveCategoryFragment
      }
      paid
      processedAt
      reason
      rejectedAt
      requester {
        ...UserFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": SubmitLeaveInput}
Response
{
  "data": {
    "submitLeave": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": LeaveRequest
    }
  }
}

submitTimesheet

Response

Returns a SubmitTimesheetPayload

Arguments
Name Description
input - SubmitTimesheetInput! Parameters for SubmitTimesheet

Example

Query
mutation submitTimesheet($input: SubmitTimesheetInput!) {
  submitTimesheet(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedAt
      approver {
        ...UserFragment
      }
      comments
      creator {
        ...UserFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      group {
        ...GroupFragment
      }
      id
      processedAt
      referenceObject {
        ... on Document {
          ...DocumentFragment
        }
        ... on LeaveRequest {
          ...LeaveRequestFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
        ... on Shift {
          ...ShiftFragment
        }
        ... on ShiftClaimRequest {
          ...ShiftClaimRequestFragment
        }
        ... on TimeCard {
          ...TimeCardFragment
        }
      }
      rejectedAt
      schedule {
        ...ScheduleFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      unpaidBreaks {
        ... on TimesheetAutoDeductBreak {
          ...TimesheetAutoDeductBreakFragment
        }
        ... on TimesheetManualBreak {
          ...TimesheetManualBreakFragment
        }
        ... on TimesheetPunchBreak {
          ...TimesheetPunchBreakFragment
        }
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": SubmitTimesheetInput}
Response
{
  "data": {
    "submitTimesheet": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Timesheet
    }
  }
}

swapShift

Response

Returns a SwapShiftPayload

Arguments
Name Description
input - SwapShiftInput! Parameters for SwapShift

Example

Query
mutation swapShift($input: SwapShiftInput!) {
  swapShift(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedTargetedShiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      assignee {
        ...UserFragment
      }
      attachments {
        ...ShiftAttachmentFragment
      }
      breakDuration
      checklistAssignments {
        ...ChecklistAssignmentFragment
      }
      client {
        ...ClientFragment
      }
      color
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      note
      recurrence {
        ...RecurrenceFragment
      }
      requester {
        ...UserFragment
      }
      requireClaimApproval
      schedule {
        ...ScheduleFragment
      }
      shiftBatchId
      shiftClaimRequests {
        ...ShiftClaimRequestFragment
      }
      shiftPartners {
        ...ShiftFragment
      }
      shiftRequests {
        ...ShiftRequestFragment
      }
      startTime
      state
      systemNote
      timeCard {
        ...TimeCardFragment
      }
      timezone
      title
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": SwapShiftInput}
Response
{
  "data": {
    "swapShift": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Shift
    }
  }
}

syncTimeCardPunchAttachment

Description

Sync time_card punch's attachment

Arguments
Name Description
input - SyncTimeCardPunchAttachmentInput! Parameters for SyncTimeCardPunchAttachment

Example

Query
mutation syncTimeCardPunchAttachment($input: SyncTimeCardPunchAttachmentInput!) {
  syncTimeCardPunchAttachment(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      atTime
      createdAt
      geoLat
      geoLong
      id
      photo
      photoToken
      timeCardId
      updatedAt
      wifiBssid
      wifiSsid
    }
  }
}
Variables
{"input": SyncTimeCardPunchAttachmentInput}
Response
{
  "data": {
    "syncTimeCardPunchAttachment": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": TimeCardPunchAttachment
    }
  }
}

syncTimeCardPunches

Description

Sync time_card clock in/out punches. If one punch is failed to sync, the rest will be halted.

Response

Returns a SyncTimeCardPunchesPayload

Arguments
Name Description
input - SyncTimeCardPunchesInput! Parameters for SyncTimeCardPunches

Example

Query
mutation syncTimeCardPunches($input: SyncTimeCardPunchesInput!) {
  syncTimeCardPunches(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      atTime
      attachment {
        ...TimeCardPunchAttachmentFragment
      }
      createdAt
      id
      note
      punchType
      timeCardId
      updatedAt
      warnings {
        ...TimeCardPunchWarningFragment
      }
    }
  }
}
Variables
{"input": SyncTimeCardPunchesInput}
Response
{
  "data": {
    "syncTimeCardPunches": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": [TimeCardPunch]
    }
  }
}

toggleReaction

Response

Returns a ToggleReactionPayload

Arguments
Name Description
input - ToggleReactionInput! Parameters for ToggleReaction

Example

Query
mutation toggleReaction($input: ToggleReactionInput!) {
  toggleReaction(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      blocks
      chatAttachments {
        ...ChatAttachmentFragment
      }
      chatReactions {
        ...ChatReactionFragment
      }
      createdAt
      deletedAt
      id
      message
      pinned
      read
      updatedAt
      user {
        ...UserFragment
      }
    }
  }
}
Variables
{"input": ToggleReactionInput}
Response
{
  "data": {
    "toggleReaction": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": ChatMessage
    }
  }
}

unacknowledgeDocument

Response

Returns an UnacknowledgeDocumentPayload

Arguments
Name Description
input - UnacknowledgeDocumentInput! Parameters for UnacknowledgeDocument

Example

Query
mutation unacknowledgeDocument($input: UnacknowledgeDocumentInput!) {
  unacknowledgeDocument(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      allUsersAssigned
      archived
      assignedGroups {
        ...GroupFragment
      }
      assignees {
        ...UserFragment
      }
      assignmentType
      color
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      documentAttachments {
        ...DocumentAttachmentFragment
      }
      expiredAt
      folder {
        ...FolderFragment
      }
      id
      name
      notes
      pinnedAt
      shareWithNewHires
      state
      tags {
        ...TagFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": UnacknowledgeDocumentInput}
Response
{
  "data": {
    "unacknowledgeDocument": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Document
    }
  }
}

unarchiveChannel

Response

Returns an UnarchiveChannelPayload

Arguments
Name Description
input - UnarchiveChannelInput! Parameters for UnarchiveChannel

Example

Query
mutation unarchiveChannel($input: UnarchiveChannelInput!) {
  unarchiveChannel(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      archivedAt
      channelType
      chatMessagesCount
      color
      creator {
        ...UserFragment
      }
      currentMember {
        ...ChannelMemberFragment
      }
      displayName
      emojiIcon
      id
      lastAddedMessageContent
      lastMessageAt
      members {
        ...ChannelMemberFragment
      }
      purpose
      readOnly
      suggested
      users {
        ...UserFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": UnarchiveChannelInput}
Response
{
  "data": {
    "unarchiveChannel": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": ChatChannel
    }
  }
}

unarchiveMember

Response

Returns an UnarchiveMemberPayload

Arguments
Name Description
input - UnarchiveMemberInput! Parameters for UnarchiveMember

Example

Query
mutation unarchiveMember($input: UnarchiveMemberInput!) {
  unarchiveMember(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": UnarchiveMemberInput}
Response
{
  "data": {
    "unarchiveMember": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": "abc123"
    }
  }
}

unconfirmMessageBoardPost

Response

Returns an UnconfirmMessageBoardPostPayload

Arguments
Name Description
input - UnconfirmMessageBoardPostInput! Parameters for UnconfirmMessageBoardPost

Example

Query
mutation unconfirmMessageBoardPost($input: UnconfirmMessageBoardPostInput!) {
  unconfirmMessageBoardPost(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      archivedAt
      author {
        ...UserFragment
      }
      blocks
      board {
        ...MessageBoardFragment
      }
      category {
        ...MessageBoardCategoryFragment
      }
      commentEnabled
      commentsCount
      confirmationRequiredUsers {
        ...UserFragment
      }
      createdAt
      deletedAt
      draftAt
      id
      images {
        ...MessageBoardPostImageFragment
      }
      messageBoardId
      notifyUsers {
        ...UserFragment
      }
      pinnedAt
      publishedAt
      reactions {
        ...ReactionFragment
      }
      readAt
      scheduledPostAt
      state
      title
      updatedAt
    }
  }
}
Variables
{"input": UnconfirmMessageBoardPostInput}
Response
{
  "data": {
    "unconfirmMessageBoardPost": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": MessageBoardPost
    }
  }
}

undoFinishTask

Response

Returns an UndoFinishTaskPayload

Arguments
Name Description
input - UndoFinishTaskInput! Parameters for UndoFinishTask

Example

Query
mutation undoFinishTask($input: UndoFinishTaskInput!) {
  undoFinishTask(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      assignee {
        ...UserFragment
      }
      checklist {
        ...ChecklistFragment
      }
      code
      comments {
        ...CommentFragment
      }
      completedLog {
        ...CompletedLogFragment
      }
      completionCountTarget
      description
      doneAt
      dueDate
      id
      inProgressAt
      lastCompletedAt
      name
      notStartedAt
      parent {
        ...TaskFragment
      }
      requester {
        ...UserFragment
      }
      state
      subTasks {
        ...TaskFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": UndoFinishTaskInput}
Response
{
  "data": {
    "undoFinishTask": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Task
    }
  }
}

unlinkFromDevice

Description

Unlink the Device from current user to stop receiving notifications

Response

Returns an UnlinkUserFromDevicePayload

Arguments
Name Description
input - UnlinkUserFromDeviceInput! Parameters for UnlinkUserFromDevice

Example

Query
mutation unlinkFromDevice($input: UnlinkUserFromDeviceInput!) {
  unlinkFromDevice(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result
  }
}
Variables
{"input": UnlinkUserFromDeviceInput}
Response
{
  "data": {
    "unlinkFromDevice": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": false
    }
  }
}

unpinDocument

Response

Returns an UnpinDocumentPayload

Arguments
Name Description
input - UnpinDocumentInput! Parameters for UnpinDocument

Example

Query
mutation unpinDocument($input: UnpinDocumentInput!) {
  unpinDocument(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      allUsersAssigned
      archived
      assignedGroups {
        ...GroupFragment
      }
      assignees {
        ...UserFragment
      }
      assignmentType
      color
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      documentAttachments {
        ...DocumentAttachmentFragment
      }
      expiredAt
      folder {
        ...FolderFragment
      }
      id
      name
      notes
      pinnedAt
      shareWithNewHires
      state
      tags {
        ...TagFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": UnpinDocumentInput}
Response
{
  "data": {
    "unpinDocument": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Document
    }
  }
}

unpinMessageBoard

Response

Returns an UnpinMessageBoardPayload

Arguments
Name Description
input - UnpinMessageBoardInput! Parameters for UnpinMessageBoard

Example

Query
mutation unpinMessageBoard($input: UnpinMessageBoardInput!) {
  unpinMessageBoard(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      categories {
        ...MessageBoardCategoryFragment
      }
      createdAt
      deletedAt
      description
      id
      messageBoardsMembers {
        ...MessageBoardsMemberFragment
      }
      name
      pinnedAt
      shareWithNewHires
      unreadMessagesCount
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": UnpinMessageBoardInput}
Response
{
  "data": {
    "unpinMessageBoard": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": MessageBoard
    }
  }
}

unpinMessageBoardPost

Response

Returns an UnpinMessageBoardPostPayload

Arguments
Name Description
input - UnpinMessageBoardPostInput! Parameters for UnpinMessageBoardPost

Example

Query
mutation unpinMessageBoardPost($input: UnpinMessageBoardPostInput!) {
  unpinMessageBoardPost(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      archivedAt
      author {
        ...UserFragment
      }
      blocks
      board {
        ...MessageBoardFragment
      }
      category {
        ...MessageBoardCategoryFragment
      }
      commentEnabled
      commentsCount
      confirmationRequiredUsers {
        ...UserFragment
      }
      createdAt
      deletedAt
      draftAt
      id
      images {
        ...MessageBoardPostImageFragment
      }
      messageBoardId
      notifyUsers {
        ...UserFragment
      }
      pinnedAt
      publishedAt
      reactions {
        ...ReactionFragment
      }
      readAt
      scheduledPostAt
      state
      title
      updatedAt
    }
  }
}
Variables
{"input": UnpinMessageBoardPostInput}
Response
{
  "data": {
    "unpinMessageBoardPost": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": MessageBoardPost
    }
  }
}

updateAvailability

Response

Returns an UpdateAvailabilityPayload

Arguments
Name Description
input - UpdateAvailabilityInput! Parameters for UpdateAvailability

Example

Query
mutation updateAvailability($input: UpdateAvailabilityInput!) {
  updateAvailability(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      allDay
      createdAt
      from
      id
      note
      recurrence {
        ...RecurrenceFragment
      }
      timezone
      to
      type
      updatedAt
      user {
        ...UserFragment
      }
    }
  }
}
Variables
{"input": UpdateAvailabilityInput}
Response
{
  "data": {
    "updateAvailability": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Availability
    }
  }
}

updateCalendarEvent

Response

Returns an UpdateCalendarEventPayload

Arguments
Name Description
input - UpdateCalendarEventInput! Parameters for UpdateCalendarEvent

Example

Query
mutation updateCalendarEvent($input: UpdateCalendarEventInput!) {
  updateCalendarEvent(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      allDay
      createdAt
      creator {
        ...UserFragment
      }
      eventType
      from
      id
      note
      recurrence {
        ...RecurrenceFragment
      }
      schedules {
        ...ScheduleFragment
      }
      state
      timezone
      to
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": UpdateCalendarEventInput}
Response
{
  "data": {
    "updateCalendarEvent": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": CalendarEvent
    }
  }
}

updateChannel

Response

Returns an UpdateChannelPayload

Arguments
Name Description
input - UpdateChannelInput! Parameters for UpdateChannel

Example

Query
mutation updateChannel($input: UpdateChannelInput!) {
  updateChannel(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      archivedAt
      channelType
      chatMessagesCount
      color
      creator {
        ...UserFragment
      }
      currentMember {
        ...ChannelMemberFragment
      }
      displayName
      emojiIcon
      id
      lastAddedMessageContent
      lastMessageAt
      members {
        ...ChannelMemberFragment
      }
      purpose
      readOnly
      suggested
      users {
        ...UserFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": UpdateChannelInput}
Response
{
  "data": {
    "updateChannel": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": ChatChannel
    }
  }
}

updateChannelMember

Response

Returns an UpdateChannelMemberPayload

Arguments
Name Description
input - UpdateChannelMemberInput! Parameters for UpdateChannelMember

Example

Query
mutation updateChannelMember($input: UpdateChannelMemberInput!) {
  updateChannelMember(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      chatChannel {
        ...ChatChannelFragment
      }
      id
      lastViewedAt
      lastViewedMessagesCount
      mentionCount
      notifyProps {
        ...ChannelMemberNotifyPropsFragment
      }
      role
      user {
        ...UserFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": UpdateChannelMemberInput}
Response
{
  "data": {
    "updateChannelMember": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": ChannelMember
    }
  }
}

updateComment

Response

Returns an UpdateCommentPayload

Arguments
Name Description
input - UpdateCommentInput! Parameters for UpdateComment

Example

Query
mutation updateComment($input: UpdateCommentInput!) {
  updateComment(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      author {
        ...UserFragment
      }
      commentableId
      commentableType
      content
      createdAt
      data {
        ...CommentDataEntryFragment
      }
      id
      pinnedAt
      reactions {
        ...ReactionFragment
      }
      systemGenerated
      visibility
    }
  }
}
Variables
{"input": UpdateCommentInput}
Response
{
  "data": {
    "updateComment": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Comment
    }
  }
}

updateDocument

Response

Returns an UpdateDocumentPayload

Arguments
Name Description
input - UpdateDocumentInput! Parameters for UpdateDocument

Example

Query
mutation updateDocument($input: UpdateDocumentInput!) {
  updateDocument(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      allUsersAssigned
      archived
      assignedGroups {
        ...GroupFragment
      }
      assignees {
        ...UserFragment
      }
      assignmentType
      color
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      documentAttachments {
        ...DocumentAttachmentFragment
      }
      expiredAt
      folder {
        ...FolderFragment
      }
      id
      name
      notes
      pinnedAt
      shareWithNewHires
      state
      tags {
        ...TagFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": UpdateDocumentInput}
Response
{
  "data": {
    "updateDocument": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Document
    }
  }
}

updateFolder

Response

Returns an UpdateFolderPayload

Arguments
Name Description
input - UpdateFolderInput! Parameters for UpdateFolder

Example

Query
mutation updateFolder($input: UpdateFolderInput!) {
  updateFolder(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      createdAt
      creator {
        ...UserFragment
      }
      deletedAt
      description
      documents {
        ...DocumentFragment
      }
      id
      level
      name
      parent {
        ...FolderFragment
      }
      private
      subFolders {
        ...FolderFragment
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": UpdateFolderInput}
Response
{
  "data": {
    "updateFolder": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Folder
    }
  }
}

updateGroup

Description

Update group (position) of the current workspace

Response

Returns an UpdateGroupPayload

Arguments
Name Description
input - UpdateGroupInput! Parameters for UpdateGroup

Example

Query
mutation updateGroup($input: UpdateGroupInput!) {
  updateGroup(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
      users {
        ...UserFragment
      }
      usersCount
    }
  }
}
Variables
{"input": UpdateGroupInput}
Response
{
  "data": {
    "updateGroup": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Group
    }
  }
}

updateJobSite

Response

Returns an UpdateJobSitePayload

Arguments
Name Description
input - UpdateJobSiteInput! Parameters for UpdateJobSite

Example

Query
mutation updateJobSite($input: UpdateJobSiteInput!) {
  updateJobSite(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      address
      attachments {
        ...JobSiteAttachmentFragment
      }
      color
      createdAt
      geoLat
      geoLong
      id
      name
      note
      payRate {
        ...JobSitePayRateFragment
      }
      schedules {
        ...ScheduleFragment
      }
      updatedAt
      wifiBssid
      wifiSsid
    }
  }
}
Variables
{"input": UpdateJobSiteInput}
Response
{
  "data": {
    "updateJobSite": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": JobSite
    }
  }
}

updateJoinCode

Response

Returns an UpdateJoinCodePayload

Arguments
Name Description
input - UpdateJoinCodeInput! Parameters for UpdateJoinCode

Example

Query
mutation updateJoinCode($input: UpdateJoinCodeInput!) {
  updateJoinCode(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      code
      effectiveUntil
      id
      requireApproval
    }
  }
}
Variables
{"input": UpdateJoinCodeInput}
Response
{
  "data": {
    "updateJoinCode": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": JoinCode
    }
  }
}

updateLeave

Response

Returns an UpdateLeavePayload

Arguments
Name Description
input - UpdateLeaveInput! Parameters for UpdateLeave

Example

Query
mutation updateLeave($input: UpdateLeaveInput!) {
  updateLeave(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      allDay
      approvedAt
      approver {
        ...UserFragment
      }
      approverId
      canceledAt
      days {
        ...LeaveRequestDayFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      id
      leaveCategory {
        ...LeaveCategoryFragment
      }
      paid
      processedAt
      reason
      rejectedAt
      requester {
        ...UserFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": UpdateLeaveInput}
Response
{
  "data": {
    "updateLeave": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": LeaveRequest
    }
  }
}

updateLeaveCategories

Response

Returns an UpdateLeaveCategoriesPayload

Arguments
Name Description
input - UpdateLeaveCategoriesInput! Parameters for UpdateLeaveCategories

Example

Query
mutation updateLeaveCategories($input: UpdateLeaveCategoriesInput!) {
  updateLeaveCategories(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      enabled
      id
      name
      paidLeave
      unpaidLeave
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": UpdateLeaveCategoriesInput}
Response
{
  "data": {
    "updateLeaveCategories": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": [LeaveCategory]
    }
  }
}

updateMembershipSettings

Response

Returns an UpdateMembershipSettingsPayload

Arguments
Name Description
input - UpdateMembershipSettingsInput! Parameters for UpdateMembershipSettings

Example

Query
mutation updateMembershipSettings($input: UpdateMembershipSettingsInput!) {
  updateMembershipSettings(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      emailLeaveRequest
      emailManageAvailabilityRequest
      emailManageDocument
      emailManageLeaveRequest
      emailManageMessageBoard
      emailManageShiftOfferRequest
      emailManageShiftSwapRequest
      emailManageTimesheet
      emailSchedulePosted
      emailShiftOfferRequest
      emailShiftReminder
      emailShiftSwapRequest
      emailSummary
      emailTimesheet
      id
      maxDurationPerWeek
      notificationShiftLate
      typicalWorkDuration
    }
  }
}
Variables
{"input": UpdateMembershipSettingsInput}
Response
{
  "data": {
    "updateMembershipSettings": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": MembershipSetting
    }
  }
}

updateMessageBoard

Response

Returns an UpdateMessageBoardPayload

Arguments
Name Description
input - UpdateMessageBoardInput! Parameters for UpdateMessageBoard

Example

Query
mutation updateMessageBoard($input: UpdateMessageBoardInput!) {
  updateMessageBoard(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      categories {
        ...MessageBoardCategoryFragment
      }
      createdAt
      deletedAt
      description
      id
      messageBoardsMembers {
        ...MessageBoardsMemberFragment
      }
      name
      pinnedAt
      shareWithNewHires
      unreadMessagesCount
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": UpdateMessageBoardInput}
Response
{
  "data": {
    "updateMessageBoard": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": MessageBoard
    }
  }
}

updateMessageBoardPost

Response

Returns an UpdateMessageBoardPostPayload

Arguments
Name Description
input - UpdateMessageBoardPostInput! Parameters for UpdateMessageBoardPost

Example

Query
mutation updateMessageBoardPost($input: UpdateMessageBoardPostInput!) {
  updateMessageBoardPost(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      archivedAt
      author {
        ...UserFragment
      }
      blocks
      board {
        ...MessageBoardFragment
      }
      category {
        ...MessageBoardCategoryFragment
      }
      commentEnabled
      commentsCount
      confirmationRequiredUsers {
        ...UserFragment
      }
      createdAt
      deletedAt
      draftAt
      id
      images {
        ...MessageBoardPostImageFragment
      }
      messageBoardId
      notifyUsers {
        ...UserFragment
      }
      pinnedAt
      publishedAt
      reactions {
        ...ReactionFragment
      }
      readAt
      scheduledPostAt
      state
      title
      updatedAt
    }
  }
}
Variables
{"input": UpdateMessageBoardPostInput}
Response
{
  "data": {
    "updateMessageBoardPost": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": MessageBoardPost
    }
  }
}

updateReaction

Response

Returns an UpdateReactionPayload

Arguments
Name Description
input - UpdateReactionInput! Parameters for UpdateReaction

Example

Query
mutation updateReaction($input: UpdateReactionInput!) {
  updateReaction(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      createdAt
      creator {
        ...UserFragment
      }
      emoji
      id
      reactable {
        ... on Comment {
          ...CommentFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
      }
      updatedAt
    }
  }
}
Variables
{"input": UpdateReactionInput}
Response
{
  "data": {
    "updateReaction": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Reaction
    }
  }
}

updateRole

Response

Returns an UpdateRolePayload

Arguments
Name Description
input - UpdateRoleInput! Parameters for UpdateRole

Example

Query
mutation updateRole($input: UpdateRoleInput!) {
  updateRole(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      code
      description
      id
      name
      rolesUsers {
        ...RolesUserFragment
      }
    }
  }
}
Variables
{"input": UpdateRoleInput}
Response
{
  "data": {
    "updateRole": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Role
    }
  }
}

updateSchedule

Response

Returns an UpdateSchedulePayload

Arguments
Name Description
input - UpdateScheduleInput! Parameters for UpdateSchedule

Example

Query
mutation updateSchedule($input: UpdateScheduleInput!) {
  updateSchedule(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      color
      createdAt
      default
      defaultJobSite {
        ...JobSiteFragment
      }
      id
      name
      schedulesUsers {
        ...ScheduleUserFragment
      }
      timezone
      updatedAt
      users {
        ...UserFragment
      }
    }
  }
}
Variables
{"input": UpdateScheduleInput}
Response
{
  "data": {
    "updateSchedule": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Schedule
    }
  }
}

updateSchedulePhoto

Response

Returns an UpdateSchedulePhotoPayload

Arguments
Name Description
input - UpdateSchedulePhotoInput! Parameters for UpdateSchedulePhoto

Example

Query
mutation updateSchedulePhoto($input: UpdateSchedulePhotoInput!) {
  updateSchedulePhoto(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      from
      id
      photo
      schedule {
        ...ScheduleFragment
      }
      timezone
      to
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": UpdateSchedulePhotoInput}
Response
{
  "data": {
    "updateSchedulePhoto": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": SchedulePhoto
    }
  }
}

updateShift

Response

Returns an UpdateShiftPayload

Arguments
Name Description
input - UpdateShiftInput! Parameters for UpdateShift

Example

Query
mutation updateShift($input: UpdateShiftInput!) {
  updateShift(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedTargetedShiftSwapRequests {
        ...ShiftSwapRequestFragment
      }
      assignee {
        ...UserFragment
      }
      attachments {
        ...ShiftAttachmentFragment
      }
      breakDuration
      checklistAssignments {
        ...ChecklistAssignmentFragment
      }
      client {
        ...ClientFragment
      }
      color
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      note
      recurrence {
        ...RecurrenceFragment
      }
      requester {
        ...UserFragment
      }
      requireClaimApproval
      schedule {
        ...ScheduleFragment
      }
      shiftBatchId
      shiftClaimRequests {
        ...ShiftClaimRequestFragment
      }
      shiftPartners {
        ...ShiftFragment
      }
      shiftRequests {
        ...ShiftRequestFragment
      }
      startTime
      state
      systemNote
      timeCard {
        ...TimeCardFragment
      }
      timezone
      title
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": UpdateShiftInput}
Response
{
  "data": {
    "updateShift": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Shift
    }
  }
}

updateShiftBatch

Response

Returns an UpdateShiftBatchPayload

Arguments
Name Description
input - UpdateShiftBatchInput! Parameters for UpdateShiftBatch

Example

Query
mutation updateShiftBatch($input: UpdateShiftBatchInput!) {
  updateShiftBatch(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      id
      requester {
        ...UserFragment
      }
      shifts {
        ...ShiftFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": UpdateShiftBatchInput}
Response
{
  "data": {
    "updateShiftBatch": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": ShiftBatch
    }
  }
}

updateShiftTemplate

Response

Returns an UpdateShiftTemplatePayload

Arguments
Name Description
input - UpdateShiftTemplateInput! Parameters for UpdateShiftTemplate

Example

Query
mutation updateShiftTemplate($input: UpdateShiftTemplateInput!) {
  updateShiftTemplate(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      breakDuration
      endTime
      endType
      group {
        ...GroupFragment
      }
      id
      jobSite {
        ...JobSiteFragment
      }
      name
      note
      schedule {
        ...ScheduleFragment
      }
      startTime
      timezone
    }
  }
}
Variables
{"input": UpdateShiftTemplateInput}
Response
{
  "data": {
    "updateShiftTemplate": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": ShiftTemplate
    }
  }
}

updateTask

Response

Returns an UpdateTaskPayload

Arguments
Name Description
input - UpdateTaskInput! Parameters for UpdateTask

Example

Query
mutation updateTask($input: UpdateTaskInput!) {
  updateTask(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      assignee {
        ...UserFragment
      }
      checklist {
        ...ChecklistFragment
      }
      code
      comments {
        ...CommentFragment
      }
      completedLog {
        ...CompletedLogFragment
      }
      completionCountTarget
      description
      doneAt
      dueDate
      id
      inProgressAt
      lastCompletedAt
      name
      notStartedAt
      parent {
        ...TaskFragment
      }
      requester {
        ...UserFragment
      }
      state
      subTasks {
        ...TaskFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": UpdateTaskInput}
Response
{
  "data": {
    "updateTask": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Task
    }
  }
}

updateTimesheet

Response

Returns an UpdateTimesheetPayload

Arguments
Name Description
input - UpdateTimesheetInput! Parameters for UpdateTimesheet

Example

Query
mutation updateTimesheet($input: UpdateTimesheetInput!) {
  updateTimesheet(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedAt
      approver {
        ...UserFragment
      }
      comments
      creator {
        ...UserFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      group {
        ...GroupFragment
      }
      id
      processedAt
      referenceObject {
        ... on Document {
          ...DocumentFragment
        }
        ... on LeaveRequest {
          ...LeaveRequestFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
        ... on Shift {
          ...ShiftFragment
        }
        ... on ShiftClaimRequest {
          ...ShiftClaimRequestFragment
        }
        ... on TimeCard {
          ...TimeCardFragment
        }
      }
      rejectedAt
      schedule {
        ...ScheduleFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      unpaidBreaks {
        ... on TimesheetAutoDeductBreak {
          ...TimesheetAutoDeductBreakFragment
        }
        ... on TimesheetManualBreak {
          ...TimesheetManualBreakFragment
        }
        ... on TimesheetPunchBreak {
          ...TimesheetPunchBreakFragment
        }
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": UpdateTimesheetInput}
Response
{
  "data": {
    "updateTimesheet": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": Timesheet
    }
  }
}

updateUser

Response

Returns an UpdateUserPayload

Arguments
Name Description
input - UpdateUserInput! Parameters for UpdateUser

Example

Query
mutation updateUser($input: UpdateUserInput!) {
  updateUser(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      address
      avatarUrl
      birthday
      dataState
      email
      firstName
      groups {
        ...GroupFragment
      }
      id
      kioskPinCode
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles
      sampleUser
      schedules {
        ...ScheduleFragment
      }
      state
      updatedAt
    }
  }
}
Variables
{"input": UpdateUserInput}
Response
{
  "data": {
    "updateUser": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": User
    }
  }
}

updateUserSettings

Response

Returns an UpdateUserSettingsPayload

Arguments
Name Description
input - UpdateUserSettingsInput! Parameters for UpdateUserSettings

Example

Query
mutation updateUserSettings($input: UpdateUserSettingsInput!) {
  updateUserSettings(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      address
      avatarUrl
      birthday
      createdAt
      email
      firstName
      id
      kioskPinCode
      language
      lastName
      membershipSettings {
        ...MembershipSettingFragment
      }
      name
      phoneNumber
      roles {
        ...RoleFragment
      }
      settings {
        ...UserSettingFragment
      }
      timezone
    }
  }
}
Variables
{"input": UpdateUserSettingsInput}
Response
{
  "data": {
    "updateUserSettings": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Whoami
    }
  }
}

updateWorkspace

Response

Returns an UpdateWorkspacePayload

Arguments
Name Description
input - UpdateWorkspaceInput! Parameters for UpdateWorkspace

Example

Query
mutation updateWorkspace($input: UpdateWorkspaceInput!) {
  updateWorkspace(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{"input": UpdateWorkspaceInput}
Response
{
  "data": {
    "updateWorkspace": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Workspace
    }
  }
}

updateWorkspaceGroups

Description

Update groups (positions) of the current workspace

Response

Returns an UpdateWorkspaceGroupsPayload

Arguments
Name Description
input - UpdateWorkspaceGroupsInput! Parameters for UpdateWorkspaceGroups

Example

Query
mutation updateWorkspaceGroups($input: UpdateWorkspaceGroupsInput!) {
  updateWorkspaceGroups(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      color
      colorName
      createdAt
      default
      deletedAt
      id
      name
      updatedAt
      users {
        ...UserFragment
      }
      usersCount
    }
  }
}
Variables
{"input": UpdateWorkspaceGroupsInput}
Response
{
  "data": {
    "updateWorkspaceGroups": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": [Group]
    }
  }
}

updateWorkspaceSettings

Response

Returns an UpdateWorkspaceSettingsPayload

Arguments
Name Description
input - UpdateWorkspaceSettingsInput! Parameters for UpdateWorkspaceSettings

Example

Query
mutation updateWorkspaceSettings($input: UpdateWorkspaceSettingsInput!) {
  updateWorkspaceSettings(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      createdAt
      id
      industry
      logoUrl
      metadata
      meteredUsages {
        ...MeteredUsageFragment
      }
      name
      settings {
        ...WorkspaceSettingFragment
      }
      size
      timezone
    }
  }
}
Variables
{"input": UpdateWorkspaceSettingsInput}
Response
{
  "data": {
    "updateWorkspaceSettings": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Workspace
    }
  }
}

uploadSchedulePhoto

Description

Allow upload schedule photo

Response

Returns an UploadSchedulePhotoPayload

Arguments
Name Description
input - UploadSchedulePhotoInput! Parameters for UploadSchedulePhoto

Example

Query
mutation uploadSchedulePhoto($input: UploadSchedulePhotoInput!) {
  uploadSchedulePhoto(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      from
      id
      photo
      schedule {
        ...ScheduleFragment
      }
      timezone
      to
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": UploadSchedulePhotoInput}
Response
{
  "data": {
    "uploadSchedulePhoto": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": [SchedulePhoto]
    }
  }
}

verifyJoinCode

Response

Returns a VerifyJoinCodePayload

Arguments
Name Description
input - VerifyJoinCodeInput! Parameters for VerifyJoinCode

Example

Query
mutation verifyJoinCode($input: VerifyJoinCodeInput!) {
  verifyJoinCode(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      requireApproval
      users {
        ...UserFragment
      }
      workspaceId
      workspaceName
    }
  }
}
Variables
{"input": VerifyJoinCodeInput}
Response
{
  "data": {
    "verifyJoinCode": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": VerifyJoinCodeResult
    }
  }
}

verifyKioskOtp

Response

Returns a VerifyKioskOtpPayload

Arguments
Name Description
input - VerifyKioskOtpInput! Parameters for VerifyKioskOtp

Example

Query
mutation verifyKioskOtp($input: VerifyKioskOtpInput!) {
  verifyKioskOtp(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      jwtToken
      whoami {
        ...WhoamiFragment
      }
      workspaces {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": VerifyKioskOtpInput}
Response
{
  "data": {
    "verifyKioskOtp": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": KioskJwtPayload
    }
  }
}

verifyOtp

Response

Returns a VerifyOtpPayload

Arguments
Name Description
input - VerifyOtpInput! Parameters for VerifyOtp

Example

Query
mutation verifyOtp($input: VerifyOtpInput!) {
  verifyOtp(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      expiredAt
      jwtToken
      whoami {
        ...WhoamiFragment
      }
      workspaces {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": VerifyOtpInput}
Response
{
  "data": {
    "verifyOtp": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": JwtPayload
    }
  }
}

viewMessageBoardPost

Response

Returns a ViewMessageBoardPostPayload

Arguments
Name Description
input - ViewMessageBoardPostInput! Parameters for ViewMessageBoardPost

Example

Query
mutation viewMessageBoardPost($input: ViewMessageBoardPostInput!) {
  viewMessageBoardPost(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      acknowledgementRequired
      acknowledgements {
        ...AcknowledgementFragment
      }
      archivedAt
      author {
        ...UserFragment
      }
      blocks
      board {
        ...MessageBoardFragment
      }
      category {
        ...MessageBoardCategoryFragment
      }
      commentEnabled
      commentsCount
      confirmationRequiredUsers {
        ...UserFragment
      }
      createdAt
      deletedAt
      draftAt
      id
      images {
        ...MessageBoardPostImageFragment
      }
      messageBoardId
      notifyUsers {
        ...UserFragment
      }
      pinnedAt
      publishedAt
      reactions {
        ...ReactionFragment
      }
      readAt
      scheduledPostAt
      state
      title
      updatedAt
    }
  }
}
Variables
{"input": ViewMessageBoardPostInput}
Response
{
  "data": {
    "viewMessageBoardPost": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": MessageBoardPost
    }
  }
}

withdrawLeave

Response

Returns a WithdrawLeavePayload

Arguments
Name Description
input - WithdrawLeaveInput! Parameters for WithdrawLeave

Example

Query
mutation withdrawLeave($input: WithdrawLeaveInput!) {
  withdrawLeave(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      allDay
      approvedAt
      approver {
        ...UserFragment
      }
      approverId
      canceledAt
      days {
        ...LeaveRequestDayFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      id
      leaveCategory {
        ...LeaveCategoryFragment
      }
      paid
      processedAt
      reason
      rejectedAt
      requester {
        ...UserFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": WithdrawLeaveInput}
Response
{
  "data": {
    "withdrawLeave": {
      "clientMutationId": "xyz789",
      "errors": [MutationError],
      "result": LeaveRequest
    }
  }
}

withdrawTimesheet

Response

Returns a WithdrawTimesheetPayload

Arguments
Name Description
input - WithdrawTimesheetInput! Parameters for WithdrawTimesheet

Example

Query
mutation withdrawTimesheet($input: WithdrawTimesheetInput!) {
  withdrawTimesheet(input: $input) {
    clientMutationId
    errors {
      attribute
      fullMessage
      type
    }
    result {
      approvedAt
      approver {
        ...UserFragment
      }
      comments
      creator {
        ...UserFragment
      }
      draftAt
      employee {
        ...UserFragment
      }
      from
      group {
        ...GroupFragment
      }
      id
      processedAt
      referenceObject {
        ... on Document {
          ...DocumentFragment
        }
        ... on LeaveRequest {
          ...LeaveRequestFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
        ... on Shift {
          ...ShiftFragment
        }
        ... on ShiftClaimRequest {
          ...ShiftClaimRequestFragment
        }
        ... on TimeCard {
          ...TimeCardFragment
        }
      }
      rejectedAt
      schedule {
        ...ScheduleFragment
      }
      state
      submittedAt
      timezone
      to
      totalDuration
      unpaidBreaks {
        ... on TimesheetAutoDeductBreak {
          ...TimesheetAutoDeductBreakFragment
        }
        ... on TimesheetManualBreak {
          ...TimesheetManualBreakFragment
        }
        ... on TimesheetPunchBreak {
          ...TimesheetPunchBreakFragment
        }
      }
      updatedAt
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"input": WithdrawTimesheetInput}
Response
{
  "data": {
    "withdrawTimesheet": {
      "clientMutationId": "abc123",
      "errors": [MutationError],
      "result": Timesheet
    }
  }
}

Subscriptions

channelMemberAdded

Description

Current user has been invited to the channel

Response

Returns a ChannelMemberAddedPayload!

Example

Query
subscription channelMemberAdded {
  channelMemberAdded {
    chatChannelMember {
      chatChannel {
        ...ChatChannelFragment
      }
      id
      lastViewedAt
      lastViewedMessagesCount
      mentionCount
      notifyProps {
        ...ChannelMemberNotifyPropsFragment
      }
      role
      user {
        ...UserFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Response
{
  "data": {
    "channelMemberAdded": {
      "chatChannelMember": ChannelMember
    }
  }
}

channelMemberUpdated

Description

Used only to update the read messages count of inbox channel

Response

Returns a ChannelMemberUpdatedPayload!

Arguments
Name Description
chatChannelMemberId - ID!

Example

Query
subscription channelMemberUpdated($chatChannelMemberId: ID!) {
  channelMemberUpdated(chatChannelMemberId: $chatChannelMemberId) {
    chatChannelMember {
      chatChannel {
        ...ChatChannelFragment
      }
      id
      lastViewedAt
      lastViewedMessagesCount
      mentionCount
      notifyProps {
        ...ChannelMemberNotifyPropsFragment
      }
      role
      user {
        ...UserFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"chatChannelMemberId": "4"}
Response
{
  "data": {
    "channelMemberUpdated": {
      "chatChannelMember": ChannelMember
    }
  }
}

channelUpdated

Description

Channel being updated

Response

Returns a ChannelUpdatedPayload!

Arguments
Name Description
channelId - ID!

Example

Query
subscription channelUpdated($channelId: ID!) {
  channelUpdated(channelId: $channelId) {
    chatChannel {
      archivedAt
      channelType
      chatMessagesCount
      color
      creator {
        ...UserFragment
      }
      currentMember {
        ...ChannelMemberFragment
      }
      displayName
      emojiIcon
      id
      lastAddedMessageContent
      lastMessageAt
      members {
        ...ChannelMemberFragment
      }
      purpose
      readOnly
      suggested
      users {
        ...UserFragment
      }
      workspace {
        ...WorkspaceFragment
      }
    }
  }
}
Variables
{"channelId": "4"}
Response
{"data": {"channelUpdated": {"chatChannel": ChatChannel}}}

messageAdded

Description

A message was added

Response

Returns a MessageAddedPayload!

Arguments
Name Description
channelId - ID!

Example

Query
subscription messageAdded($channelId: ID!) {
  messageAdded(channelId: $channelId) {
    message {
      blocks
      chatAttachments {
        ...ChatAttachmentFragment
      }
      chatReactions {
        ...ChatReactionFragment
      }
      createdAt
      deletedAt
      id
      message
      pinned
      read
      updatedAt
      user {
        ...UserFragment
      }
    }
  }
}
Variables
{"channelId": 4}
Response
{"data": {"messageAdded": {"message": ChatMessage}}}

messageDeleted

Description

A message was deleted

Response

Returns a MessageDeletedPayload!

Arguments
Name Description
channelId - ID!

Example

Query
subscription messageDeleted($channelId: ID!) {
  messageDeleted(channelId: $channelId) {
    message {
      blocks
      chatAttachments {
        ...ChatAttachmentFragment
      }
      chatReactions {
        ...ChatReactionFragment
      }
      createdAt
      deletedAt
      id
      message
      pinned
      read
      updatedAt
      user {
        ...UserFragment
      }
    }
  }
}
Variables
{"channelId": 4}
Response
{"data": {"messageDeleted": {"message": ChatMessage}}}

messageUpdated

Description

A message was updated

Response

Returns a MessageUpdatedPayload!

Arguments
Name Description
channelId - ID!

Example

Query
subscription messageUpdated($channelId: ID!) {
  messageUpdated(channelId: $channelId) {
    message {
      blocks
      chatAttachments {
        ...ChatAttachmentFragment
      }
      chatReactions {
        ...ChatReactionFragment
      }
      createdAt
      deletedAt
      id
      message
      pinned
      read
      updatedAt
      user {
        ...UserFragment
      }
    }
  }
}
Variables
{"channelId": 4}
Response
{"data": {"messageUpdated": {"message": ChatMessage}}}

notificationAdded

Description

A notification was added

Response

Returns a NotificationAddedPayload!

Arguments
Name Description
userId - ID!

Example

Query
subscription notificationAdded($userId: ID!) {
  notificationAdded(userId: $userId) {
    notification {
      actedUponAt
      createdAt
      id
      message
      notificationType
      readAt
      recipient {
        ...UserFragment
      }
      recipientId
      referenceObject {
        ... on Document {
          ...DocumentFragment
        }
        ... on LeaveRequest {
          ...LeaveRequestFragment
        }
        ... on MessageBoardPost {
          ...MessageBoardPostFragment
        }
        ... on Shift {
          ...ShiftFragment
        }
        ... on ShiftClaimRequest {
          ...ShiftClaimRequestFragment
        }
        ... on TimeCard {
          ...TimeCardFragment
        }
      }
      sender {
        ...UserFragment
      }
      senderId
      title
      updatedAt
      workspaceId
    }
  }
}
Variables
{"userId": "4"}
Response
{
  "data": {
    "notificationAdded": {"notification": Notification}
  }
}

Types

AWS4Request

Fields
Field Name Description
acl - String
key - String!
policy - String!
uri - String!
xAmzAlgorithm - String!
xAmzCredential - String!
xAmzDate - String!
xAmzSignature - String!
Example
{
  "acl": "xyz789",
  "key": "abc123",
  "policy": "abc123",
  "uri": "abc123",
  "xAmzAlgorithm": "abc123",
  "xAmzCredential": "abc123",
  "xAmzDate": "abc123",
  "xAmzSignature": "abc123"
}

Abilities

Fields
Field Name Description
currentSubscriptions - [SubscriptionModel!]!
policyMatrix - [PolicyMatrixItem!]! Returns the policy matrix for authorization
roles - [Role!]!
rolesUsers - [RolesUser!]!
scheduleIds - [String!]
Example
{
  "currentSubscriptions": [SubscriptionModel],
  "policyMatrix": [PolicyMatrixItem],
  "roles": [Role],
  "rolesUsers": [RolesUser],
  "scheduleIds": ["abc123"]
}

AcceptShiftOfferRequestInput

Description

Autogenerated input type of AcceptShiftOfferRequest

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftOfferRequestId - ID!
Example
{
  "clientMutationId": "xyz789",
  "shiftOfferRequestId": 4
}

AcceptShiftOfferRequestPayload

Description

Autogenerated return type of AcceptShiftOfferRequest

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ShiftOfferRequest
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": ShiftOfferRequest
}

AcceptShiftSwapRequestInput

Description

Autogenerated input type of AcceptShiftSwapRequest

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftSwapRequestId - ID!
Example
{
  "clientMutationId": "abc123",
  "shiftSwapRequestId": 4
}

AcceptShiftSwapRequestPayload

Description

Autogenerated return type of AcceptShiftSwapRequest

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ShiftSwapRequest
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ShiftSwapRequest
}

AcknowledgeDocumentInput

Description

Autogenerated input type of AcknowledgeDocument

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
documentId - ID!
Example
{
  "clientMutationId": "abc123",
  "documentId": 4
}

AcknowledgeDocumentPayload

Description

Autogenerated return type of AcknowledgeDocument

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Document
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Document
}

Acknowledgeable

Description

Properties of Acknowledgeable

Types
Union Types

Document

MessageBoardPost

Example
Document

Acknowledgement

Fields
Field Name Description
acknowledgeable - Acknowledgeable!
acknowledgedAt - ISO8601DateTime
createdAt - ISO8601DateTime!
deletedAt - ISO8601DateTime!
id - ID!
updatedAt - ISO8601DateTime!
user - User!
Example
{
  "acknowledgeable": Document,
  "acknowledgedAt": ISO8601DateTime,
  "createdAt": ISO8601DateTime,
  "deletedAt": ISO8601DateTime,
  "id": "4",
  "updatedAt": ISO8601DateTime,
  "user": User
}

AnswerSurveyInput

Description

Autogenerated input type of AnswerSurvey

Fields
Input Field Description
answers - [SurveyAnswerInput!]!
clientMutationId - String A unique identifier for the client performing the mutation.
Example
{
  "answers": [SurveyAnswerInput],
  "clientMutationId": "abc123"
}

AnswerSurveyPayload

Description

Autogenerated return type of AnswerSurvey

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Boolean!
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": false
}

App

Fields
Field Name Description
appModule - AppModuleEnum!
backgroundColor - String!
description - String!
emojiIcon - String!
id - ID!
name - String!
Example
{
  "appModule": "ANNOUNCEMENT",
  "backgroundColor": "xyz789",
  "description": "xyz789",
  "emojiIcon": "xyz789",
  "id": 4,
  "name": "abc123"
}

AppConnection

Description

The connection type for App.

Fields
Field Name Description
edges - [AppEdge] A list of edges.
nodes - [App] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [AppEdge],
  "nodes": [App],
  "pageInfo": PageInfo,
  "totalCount": 987
}

AppEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - App The item at the end of the edge.
Example
{
  "cursor": "xyz789",
  "node": App
}

AppModuleEnum

Values
Enum Value Description

ANNOUNCEMENT

SHIFTS

Example
"ANNOUNCEMENT"

AppNotification

Fields
Field Name Description
blocks - JSON
createdAt - ISO8601DateTime!
id - ID!
read - Boolean!
text - String
type - AppNotificationTypeEnum!
updatedAt - ISO8601DateTime!
Example
{
  "blocks": {},
  "createdAt": ISO8601DateTime,
  "id": "4",
  "read": false,
  "text": "xyz789",
  "type": "CAMELO_UPDATES",
  "updatedAt": ISO8601DateTime
}

AppNotificationConnection

Description

The connection type for AppNotification.

Fields
Field Name Description
edges - [AppNotificationEdge] A list of edges.
nodes - [AppNotification] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [AppNotificationEdge],
  "nodes": [AppNotification],
  "pageInfo": PageInfo,
  "totalCount": 123
}

AppNotificationEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - AppNotification The item at the end of the edge.
Example
{
  "cursor": "abc123",
  "node": AppNotification
}

AppNotificationTypeEnum

Values
Enum Value Description

CAMELO_UPDATES

WORK

Example
"CAMELO_UPDATES"

ApproveJoinRequestInput

Description

Autogenerated input type of ApproveJoinRequest

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
joinRequestId - ID!
Example
{
  "clientMutationId": "xyz789",
  "joinRequestId": 4
}

ApproveJoinRequestPayload

Description

Autogenerated return type of ApproveJoinRequest

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - JoinRequest
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": JoinRequest
}

ApproveLeavesInput

Description

Autogenerated input type of ApproveLeaves

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
leaveIds - [ID!]!
Example
{
  "clientMutationId": "abc123",
  "leaveIds": ["4"]
}

ApproveLeavesPayload

Description

Autogenerated return type of ApproveLeaves

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - [LeaveRequest!]
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": [LeaveRequest]
}

ApproveShiftClaimRequestInput

Description

Autogenerated input type of ApproveShiftClaimRequest

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftClaimRequestId - ID!
Example
{
  "clientMutationId": "xyz789",
  "shiftClaimRequestId": "4"
}

ApproveShiftClaimRequestPayload

Description

Autogenerated return type of ApproveShiftClaimRequest

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ShiftClaimRequest
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": ShiftClaimRequest
}

ApproveShiftOfferRequestInput

Description

Autogenerated input type of ApproveShiftOfferRequest

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftOfferRequestId - ID!
Example
{
  "clientMutationId": "abc123",
  "shiftOfferRequestId": 4
}

ApproveShiftOfferRequestPayload

Description

Autogenerated return type of ApproveShiftOfferRequest

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ShiftOfferRequest
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": ShiftOfferRequest
}

ApproveShiftSwapRequestInput

Description

Autogenerated input type of ApproveShiftSwapRequest

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftSwapRequestId - ID!
Example
{
  "clientMutationId": "abc123",
  "shiftSwapRequestId": "4"
}

ApproveShiftSwapRequestPayload

Description

Autogenerated return type of ApproveShiftSwapRequest

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ShiftSwapRequest
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ShiftSwapRequest
}

ApproveTimesheetsInput

Description

Autogenerated input type of ApproveTimesheets

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
timesheetIds - [ID!]!
Example
{
  "clientMutationId": "abc123",
  "timesheetIds": ["4"]
}

ApproveTimesheetsPayload

Description

Autogenerated return type of ApproveTimesheets

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - [Timesheet!]
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": [Timesheet]
}

ArchiveChannelInput

Description

Autogenerated input type of ArchiveChannel

Fields
Input Field Description
channelId - ID!
clientMutationId - String A unique identifier for the client performing the mutation.
Example
{
  "channelId": "4",
  "clientMutationId": "abc123"
}

ArchiveChannelPayload

Description

Autogenerated return type of ArchiveChannel

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ChatChannel
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ChatChannel
}

ArchiveDocumentInput

Description

Autogenerated input type of ArchiveDocument

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
documentId - ID!
Example
{
  "clientMutationId": "abc123",
  "documentId": "4"
}

ArchiveDocumentPayload

Description

Autogenerated return type of ArchiveDocument

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Document
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Document
}

ArchiveMemberInput

Description

Autogenerated input type of ArchiveMember

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
userId - ID!
Example
{"clientMutationId": "abc123", "userId": 4}

ArchiveMemberPayload

Description

Autogenerated return type of ArchiveMember

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - String
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": "xyz789"
}

ArrivalStatusReportFilter

Fields
Input Field Description
fromTime - ISO8601DateTime!
scheduleIds - [ID!]
toTime - ISO8601DateTime!
Example
{
  "fromTime": ISO8601DateTime,
  "scheduleIds": [4],
  "toTime": ISO8601DateTime
}

ArrivalStatusResponse

Fields
Field Name Description
early - Float!
late - Float!
mostOnTimeUsers - [User!]!
ontime - Float!
unscheduled - Float!
Example
{
  "early": 987.65,
  "late": 123.45,
  "mostOnTimeUsers": [User],
  "ontime": 987.65,
  "unscheduled": 987.65
}

AttendanceNotice

Fields
Field Name Description
punch - TimeCardPunch!
user - User!
Example
{
  "punch": TimeCardPunch,
  "user": User
}

AttendanceNoticesReportFilter

Fields
Input Field Description
fromTime - ISO8601DateTime!
scheduleIds - [ID!]
toTime - ISO8601DateTime!
Example
{
  "fromTime": ISO8601DateTime,
  "scheduleIds": [4],
  "toTime": ISO8601DateTime
}

AuthenticationMethod

Values
Enum Value Description

EMAIL

PHONE_NUMBER

Example
"EMAIL"

Availability

Fields
Field Name Description
allDay - Boolean!
createdAt - ISO8601DateTime!
from - ISO8601DateTime!
id - ID!
note - String
recurrence - Recurrence
timezone - String!
to - ISO8601DateTime!
type - AvailabilityTypeEnum!
updatedAt - ISO8601DateTime!
user - User!
Example
{
  "allDay": false,
  "createdAt": ISO8601DateTime,
  "from": ISO8601DateTime,
  "id": 4,
  "note": "abc123",
  "recurrence": Recurrence,
  "timezone": "xyz789",
  "to": ISO8601DateTime,
  "type": "PREFERRED_WORKING_TIME",
  "updatedAt": ISO8601DateTime,
  "user": User
}

AvailabilityConnection

Description

The connection type for Availability.

Fields
Field Name Description
edges - [AvailabilityEdge] A list of edges.
nodes - [Availability] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [AvailabilityEdge],
  "nodes": [Availability],
  "pageInfo": PageInfo,
  "totalCount": 987
}

AvailabilityEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - Availability The item at the end of the edge.
Example
{
  "cursor": "abc123",
  "node": Availability
}

AvailabilityFilter

Fields
Input Field Description
_or - [AvailabilityFilter!]
employeeIds - [ID!]
fromTime - ISO8601DateTime
original - Boolean!
scheduleIds - [ID!]
toTime - ISO8601DateTime
type - AvailabilityTypeEnum
Example
{
  "_or": [AvailabilityFilter],
  "employeeIds": [4],
  "fromTime": ISO8601DateTime,
  "original": false,
  "scheduleIds": ["4"],
  "toTime": ISO8601DateTime,
  "type": "PREFERRED_WORKING_TIME"
}

AvailabilityTypeEnum

Values
Enum Value Description

PREFERRED_WORKING_TIME

UNAVAILABILITY

Example
"PREFERRED_WORKING_TIME"

Boolean

Description

The Boolean scalar type represents true or false.

Example
true

BulkRejectTimesheetsInput

Description

Autogenerated input type of BulkRejectTimesheets

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
timesheetIds - [ID!]!
Example
{
  "clientMutationId": "xyz789",
  "timesheetIds": ["4"]
}

BulkRejectTimesheetsPayload

Description

Autogenerated return type of BulkRejectTimesheets

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - [Timesheet!]
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": [Timesheet]
}

CalendarEvent

Fields
Field Name Description
allDay - Boolean!
createdAt - ISO8601DateTime!
creator - User!
eventType - CalendarEventTypeEnum!
from - ISO8601DateTime!
id - ID!
note - String
recurrence - Recurrence
schedules - [Schedule!]
state - CalendarEventStateEnum!
timezone - String!
to - ISO8601DateTime!
updatedAt - ISO8601DateTime!
workspace - Workspace!
Example
{
  "allDay": false,
  "createdAt": ISO8601DateTime,
  "creator": User,
  "eventType": "CLOSED_BUSINESS",
  "from": ISO8601DateTime,
  "id": 4,
  "note": "xyz789",
  "recurrence": Recurrence,
  "schedules": [Schedule],
  "state": "ACTIVE",
  "timezone": "xyz789",
  "to": ISO8601DateTime,
  "updatedAt": ISO8601DateTime,
  "workspace": Workspace
}

CalendarEventConnection

Description

The connection type for CalendarEvent.

Fields
Field Name Description
edges - [CalendarEventEdge] A list of edges.
nodes - [CalendarEvent] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [CalendarEventEdge],
  "nodes": [CalendarEvent],
  "pageInfo": PageInfo,
  "totalCount": 123
}

CalendarEventEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - CalendarEvent The item at the end of the edge.
Example
{
  "cursor": "xyz789",
  "node": CalendarEvent
}

CalendarEventFilter

Fields
Input Field Description
_or - [CalendarEventFilter!]
eventType - CalendarEventTypeEnum
fromTime - ISO8601DateTime
scheduleIds - [ID!]
states - [CalendarEventStateEnum!]
toTime - ISO8601DateTime
Example
{
  "_or": [CalendarEventFilter],
  "eventType": "CLOSED_BUSINESS",
  "fromTime": ISO8601DateTime,
  "scheduleIds": [4],
  "states": ["ACTIVE"],
  "toTime": ISO8601DateTime
}

CalendarEventInput

Fields
Input Field Description
allDay - Boolean!
eventType - CalendarEventTypeEnum
from - ISO8601DateTime!
note - String
recurrenceRule - String
scheduleIds - [ID!]
state - CalendarEventStateEnum
timezone - String
to - ISO8601DateTime!
Example
{
  "allDay": false,
  "eventType": "CLOSED_BUSINESS",
  "from": ISO8601DateTime,
  "note": "xyz789",
  "recurrenceRule": "xyz789",
  "scheduleIds": ["4"],
  "state": "ACTIVE",
  "timezone": "abc123",
  "to": ISO8601DateTime
}

CalendarEventStateEnum

Values
Enum Value Description

ACTIVE

DRAFT

Example
"ACTIVE"

CalendarEventTypeEnum

Values
Enum Value Description

CLOSED_BUSINESS

NOTE

PUBLIC_HOLIDAY

Example
"CLOSED_BUSINESS"

CancelLeaveInput

Description

Autogenerated input type of CancelLeave

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
leaveId - ID!
Example
{
  "clientMutationId": "abc123",
  "leaveId": "4"
}

CancelLeavePayload

Description

Autogenerated return type of CancelLeave

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - LeaveRequest
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": LeaveRequest
}

CancelShiftClaimRequestInput

Description

Autogenerated input type of CancelShiftClaimRequest

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftClaimRequestId - ID!
Example
{
  "clientMutationId": "xyz789",
  "shiftClaimRequestId": 4
}

CancelShiftClaimRequestPayload

Description

Autogenerated return type of CancelShiftClaimRequest

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ShiftClaimRequest
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ShiftClaimRequest
}

CancelShiftOfferInput

Description

Autogenerated input type of CancelShiftOffer

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftOfferId - ID!
Example
{
  "clientMutationId": "xyz789",
  "shiftOfferId": "4"
}

CancelShiftOfferPayload

Description

Autogenerated return type of CancelShiftOffer

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ShiftOffer
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": ShiftOffer
}

CancelShiftSwapInput

Description

Autogenerated input type of CancelShiftSwap

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftSwapId - ID!
Example
{
  "clientMutationId": "abc123",
  "shiftSwapId": 4
}

CancelShiftSwapPayload

Description

Autogenerated return type of CancelShiftSwap

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ShiftSwap
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ShiftSwap
}

ChannelFilter

Fields
Input Field Description
_or - [ChannelFilter!]
archived - Boolean
channelType - ChannelTypeEnum
joined - Boolean! List joined channels only
nameContains - String
Example
{
  "_or": [ChannelFilter],
  "archived": true,
  "channelType": "DIRECT",
  "joined": true,
  "nameContains": "xyz789"
}

ChannelMember

Fields
Field Name Description
chatChannel - ChatChannel!
id - ID!
lastViewedAt - ISO8601DateTime!
lastViewedMessagesCount - Int!
mentionCount - Int!
notifyProps - ChannelMemberNotifyProps
role - ChannelMemberRoleEnum!
user - User!
workspace - Workspace!
Example
{
  "chatChannel": ChatChannel,
  "id": "4",
  "lastViewedAt": ISO8601DateTime,
  "lastViewedMessagesCount": 123,
  "mentionCount": 987,
  "notifyProps": ChannelMemberNotifyProps,
  "role": "ADMIN",
  "user": User,
  "workspace": Workspace
}

ChannelMemberAddedPayload

Description

Autogenerated return type of ChannelMemberAdded

Fields
Field Name Description
chatChannelMember - ChannelMember!
Example
{"chatChannelMember": ChannelMember}

ChannelMemberNotificationEnum

Values
Enum Value Description

ALL

MENTION

NONE

Example
"ALL"

ChannelMemberNotifyProps

Fields
Field Name Description
muted - Boolean!
notification - ChannelMemberNotificationEnum!
Example
{"muted": false, "notification": "ALL"}

ChannelMemberRoleEnum

Values
Enum Value Description

ADMIN

MEMBER

OBSERVER

Example
"ADMIN"

ChannelMemberUpdatedPayload

Description

Autogenerated return type of ChannelMemberUpdated

Fields
Field Name Description
chatChannelMember - ChannelMember!
Example
{"chatChannelMember": ChannelMember}

ChannelTypeEnum

Values
Enum Value Description

DIRECT

INBOX

OPEN

PRIVATE

Example
"DIRECT"

ChannelUpdatedPayload

Description

Autogenerated return type of ChannelUpdated

Fields
Field Name Description
chatChannel - ChatChannel!
Example
{"chatChannel": ChatChannel}

ChatAttachment

Fields
Field Name Description
createdAt - ISO8601DateTime!
id - ID!
metadata - ChatAttachmentMetadata
thumbUrl - String
type - ChatAttachmentEnum!
updatedAt - ISO8601DateTime!
url - String!
Example
{
  "createdAt": ISO8601DateTime,
  "id": "4",
  "metadata": ChatAttachmentMetadata,
  "thumbUrl": "abc123",
  "type": "DOCUMENT",
  "updatedAt": ISO8601DateTime,
  "url": "xyz789"
}

ChatAttachmentEnum

Values
Enum Value Description

DOCUMENT

PHOTO

VIDEO

Example
"DOCUMENT"

ChatAttachmentMetadata

Fields
Field Name Description
duration - Int
height - Float!
mime - String!
size - Int!
width - Float!
Example
{
  "duration": 987,
  "height": 987.65,
  "mime": "xyz789",
  "size": 123,
  "width": 987.65
}

ChatAttachmentMetadataInput

Fields
Input Field Description
duration - Int
height - Float!
mime - String!
size - Int!
width - Float!
Example
{
  "duration": 123,
  "height": 987.65,
  "mime": "abc123",
  "size": 123,
  "width": 987.65
}

ChatChannel

Fields
Field Name Description
archivedAt - ISO8601DateTime
channelType - ChannelTypeEnum!
chatMessagesCount - Int!
color - String
creator - User!
currentMember - ChannelMember
displayName - String!
emojiIcon - String
id - ID!
lastAddedMessageContent - String
lastMessageAt - ISO8601DateTime
members - [ChannelMember!]
Arguments
limit - Int
purpose - String
readOnly - Boolean!
suggested - Boolean!
users - [User!] Use :members instead. From 1.1.19
workspace - Workspace!
Example
{
  "archivedAt": ISO8601DateTime,
  "channelType": "DIRECT",
  "chatMessagesCount": 123,
  "color": "xyz789",
  "creator": User,
  "currentMember": ChannelMember,
  "displayName": "xyz789",
  "emojiIcon": "xyz789",
  "id": 4,
  "lastAddedMessageContent": "xyz789",
  "lastMessageAt": ISO8601DateTime,
  "members": [ChannelMember],
  "purpose": "xyz789",
  "readOnly": true,
  "suggested": true,
  "users": [User],
  "workspace": Workspace
}

ChatChannelConnection

Description

The connection type for ChatChannel.

Fields
Field Name Description
edges - [ChatChannelEdge] A list of edges.
nodes - [ChatChannel] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [ChatChannelEdge],
  "nodes": [ChatChannel],
  "pageInfo": PageInfo,
  "totalCount": 123
}

ChatChannelEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - ChatChannel The item at the end of the edge.
Example
{
  "cursor": "abc123",
  "node": ChatChannel
}

ChatMessage

Fields
Field Name Description
blocks - JSON
chatAttachments - [ChatAttachment!]!
chatReactions - [ChatReaction!]!
createdAt - ISO8601DateTime!
deletedAt - ISO8601DateTime
id - ID!
message - String
pinned - Boolean
read - Boolean! Used for inbox only
updatedAt - ISO8601DateTime!
user - User!
Example
{
  "blocks": {},
  "chatAttachments": [ChatAttachment],
  "chatReactions": [ChatReaction],
  "createdAt": ISO8601DateTime,
  "deletedAt": ISO8601DateTime,
  "id": 4,
  "message": "abc123",
  "pinned": false,
  "read": true,
  "updatedAt": ISO8601DateTime,
  "user": User
}

ChatMessageConnection

Description

The connection type for ChatMessage.

Fields
Field Name Description
edges - [ChatMessageEdge] A list of edges.
nodes - [ChatMessage] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [ChatMessageEdge],
  "nodes": [ChatMessage],
  "pageInfo": PageInfo,
  "totalCount": 987
}

ChatMessageEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - ChatMessage The item at the end of the edge.
Example
{
  "cursor": "abc123",
  "node": ChatMessage
}

ChatReaction

Fields
Field Name Description
createdAt - ISO8601DateTime!
emoji - String!
id - ID!
updatedAt - ISO8601DateTime!
user - User!
Example
{
  "createdAt": ISO8601DateTime,
  "emoji": "abc123",
  "id": "4",
  "updatedAt": ISO8601DateTime,
  "user": User
}

Checklist

Fields
Field Name Description
creator - User!
id - ID!
name - String!
tasks - [Task!]!
template - Boolean!
workspace - Workspace!
Example
{
  "creator": User,
  "id": 4,
  "name": "xyz789",
  "tasks": [Task],
  "template": false,
  "workspace": Workspace
}

ChecklistAssignable

Description

Properties of ChecklistAssignable

Types
Union Types

Group

JobSite

Schedule

Shift

Example
Group

ChecklistAssignment

Fields
Field Name Description
assignable - ChecklistAssignable!
checklist - Checklist!
collaborationMode - CollaborationModeEnum
completionPercentage - Int!
date - ISO8601DateTime
id - ID!
recurrence - Recurrence!
Example
{
  "assignable": Group,
  "checklist": Checklist,
  "collaborationMode": "COLLABORATIVE",
  "completionPercentage": 123,
  "date": ISO8601DateTime,
  "id": "4",
  "recurrence": Recurrence
}

ChecklistAssignmentAssignableTypeEnum

Values
Enum Value Description

GROUP

JOB_SITE

SCHEDULE

SHIFT

Example
"GROUP"

ChecklistAssignmentFilter

Fields
Input Field Description
_or - [ChecklistAssignmentFilter!]
assignableId - String
assignableType - ChecklistAssignmentAssignableTypeEnum
assigneeIds - [ID!]
fromTime - ISO8601DateTime
toTime - ISO8601DateTime
Example
{
  "_or": [ChecklistAssignmentFilter],
  "assignableId": "xyz789",
  "assignableType": "GROUP",
  "assigneeIds": [4],
  "fromTime": ISO8601DateTime,
  "toTime": ISO8601DateTime
}

ChecklistFilter

Fields
Input Field Description
_or - [ChecklistFilter!]
creatorIds - [ID!]
template - Boolean
Example
{
  "_or": [ChecklistFilter],
  "creatorIds": [4],
  "template": true
}

ClaimShiftInput

Description

Autogenerated input type of ClaimShift

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftId - ID!
Example
{"clientMutationId": "xyz789", "shiftId": 4}

ClaimShiftPayload

Description

Autogenerated return type of ClaimShift

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Shift
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Shift
}

Client

Fields
Field Name Description
clientNumber - String
createdAt - ISO8601DateTime!
email - String
id - ID!
name - String!
phoneNumber - String
updatedAt - ISO8601DateTime!
Example
{
  "clientNumber": "xyz789",
  "createdAt": ISO8601DateTime,
  "email": "abc123",
  "id": "4",
  "name": "abc123",
  "phoneNumber": "xyz789",
  "updatedAt": ISO8601DateTime
}

CollaborationModeEnum

Values
Enum Value Description

COLLABORATIVE

INDIVIDUAL

Example
"COLLABORATIVE"

Comment

Fields
Field Name Description
author - User!
commentableId - ID!
commentableType - CommentableTypeEnum!
content - String!
createdAt - ISO8601DateTime!
data - [CommentDataEntry!]
id - ID!
pinnedAt - ISO8601DateTime
reactions - [Reaction!]
systemGenerated - Boolean!
visibility - VisibilityEnum!
Example
{
  "author": User,
  "commentableId": 4,
  "commentableType": "CLIENT",
  "content": "abc123",
  "createdAt": ISO8601DateTime,
  "data": [CommentDataEntry],
  "id": 4,
  "pinnedAt": ISO8601DateTime,
  "reactions": [Reaction],
  "systemGenerated": false,
  "visibility": "PRIVATE"
}

CommentConnection

Description

The connection type for Comment.

Fields
Field Name Description
edges - [CommentEdge] A list of edges.
nodes - [Comment] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [CommentEdge],
  "nodes": [Comment],
  "pageInfo": PageInfo,
  "totalCount": 987
}

CommentDataEntry

Fields
Field Name Description
after - String!
before - String!
field - String!
Example
{
  "after": "abc123",
  "before": "xyz789",
  "field": "abc123"
}

CommentEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - Comment The item at the end of the edge.
Example
{
  "cursor": "abc123",
  "node": Comment
}

CommentableTypeEnum

Values
Enum Value Description

CLIENT

DOCUMENT

LEAVE_REQUEST

MESSAGE_BOARD_POST

TASK

TIMESHEET

Example
"CLIENT"

CompletedLog

Fields
Field Name Description
at - ISO8601DateTime!
by - User
type - CompletedLogTypeEnum!
Example
{
  "at": ISO8601DateTime,
  "by": User,
  "type": "FINISH"
}

CompletedLogTypeEnum

Values
Enum Value Description

FINISH

UNDO_FINISH

Example
"FINISH"

ConfirmMessageBoardPostInput

Description

Autogenerated input type of ConfirmMessageBoardPost

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
messageBoardPostId - ID!
Example
{
  "clientMutationId": "xyz789",
  "messageBoardPostId": 4
}

ConfirmMessageBoardPostPayload

Description

Autogenerated return type of ConfirmMessageBoardPost

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - MessageBoardPost
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": MessageBoardPost
}

ConfirmShiftInput

Description

Autogenerated input type of ConfirmShift

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftId - ID!
Example
{
  "clientMutationId": "xyz789",
  "shiftId": "4"
}

ConfirmShiftPayload

Description

Autogenerated return type of ConfirmShift

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Shift
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Shift
}

ConfirmShiftsInput

Description

Autogenerated input type of ConfirmShifts

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftIds - [ID!]!
Example
{
  "clientMutationId": "abc123",
  "shiftIds": [4]
}

ConfirmShiftsPayload

Description

Autogenerated return type of ConfirmShifts

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - [Shift!]
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": [Shift]
}

CopyShiftsInput

Description

Autogenerated input type of CopyShifts

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
fromWeek - ISO8601DateTime Start date of the week to copy from
scheduleId - ID ID of the schedule to copy from
states - [ShiftStateEnum!] States to filter copy shifts
toWeek - ISO8601DateTime! Start date of the week to copy to
Example
{
  "clientMutationId": "abc123",
  "fromWeek": ISO8601DateTime,
  "scheduleId": 4,
  "states": ["ABSENT"],
  "toWeek": ISO8601DateTime
}

CopyShiftsPayload

Description

Autogenerated return type of CopyShifts

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Boolean!
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": false
}

CreateAvailabilityInput

Description

Autogenerated input type of CreateAvailability

Fields
Input Field Description
allDay - Boolean!
clientMutationId - String A unique identifier for the client performing the mutation.
from - ISO8601DateTime!
note - String
recurrenceRule - String
timezone - String!
to - ISO8601DateTime!
type - AvailabilityTypeEnum!
userId - ID
Example
{
  "allDay": true,
  "clientMutationId": "xyz789",
  "from": ISO8601DateTime,
  "note": "abc123",
  "recurrenceRule": "xyz789",
  "timezone": "xyz789",
  "to": ISO8601DateTime,
  "type": "PREFERRED_WORKING_TIME",
  "userId": "4"
}

CreateAvailabilityPayload

Description

Autogenerated return type of CreateAvailability

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Availability
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Availability
}

CreateCalendarEventInput

Description

Autogenerated input type of CreateCalendarEvent

Fields
Input Field Description
allDay - Boolean!
clientMutationId - String A unique identifier for the client performing the mutation.
eventType - CalendarEventTypeEnum
from - ISO8601DateTime!
note - String
recurrenceRule - String
scheduleIds - [ID!]
state - CalendarEventStateEnum
timezone - String
to - ISO8601DateTime!
Example
{
  "allDay": false,
  "clientMutationId": "xyz789",
  "eventType": "CLOSED_BUSINESS",
  "from": ISO8601DateTime,
  "note": "xyz789",
  "recurrenceRule": "xyz789",
  "scheduleIds": [4],
  "state": "ACTIVE",
  "timezone": "abc123",
  "to": ISO8601DateTime
}

CreateCalendarEventPayload

Description

Autogenerated return type of CreateCalendarEvent

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - CalendarEvent
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": CalendarEvent
}

CreateCalendarEventsInput

Description

Autogenerated input type of CreateCalendarEvents

Fields
Input Field Description
calendarEventsInput - [CalendarEventInput!]!
clientMutationId - String A unique identifier for the client performing the mutation.
Example
{
  "calendarEventsInput": [CalendarEventInput],
  "clientMutationId": "xyz789"
}

CreateCalendarEventsPayload

Description

Autogenerated return type of CreateCalendarEvents

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - [CalendarEvent!]
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": [CalendarEvent]
}

CreateChannelInput

Description

Autogenerated input type of CreateChannel

Fields
Input Field Description
channelType - ChannelTypeEnum!
clientMutationId - String A unique identifier for the client performing the mutation.
color - String
displayName - String!
emojiIcon - String
memberIds - [ID!] List of User IDs that join this channel
purpose - String
sticky - Boolean
Example
{
  "channelType": "DIRECT",
  "clientMutationId": "abc123",
  "color": "xyz789",
  "displayName": "abc123",
  "emojiIcon": "abc123",
  "memberIds": ["4"],
  "purpose": "abc123",
  "sticky": true
}

CreateChannelPayload

Description

Autogenerated return type of CreateChannel

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ChatChannel
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ChatChannel
}

CreateChecklistInput

Description

Autogenerated input type of CreateChecklist

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
name - String!
tasks - [CreateChecklistTaskInput!]
template - Boolean
Example
{
  "clientMutationId": "xyz789",
  "name": "abc123",
  "tasks": [CreateChecklistTaskInput],
  "template": true
}

CreateChecklistPayload

Description

Autogenerated return type of CreateChecklist

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Checklist
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Checklist
}

CreateChecklistTaskInput

Fields
Input Field Description
code - String
completionCountTarget - Int
description - String
name - String!
subTasks - [CreateChecklistTaskInput!]
Example
{
  "code": "abc123",
  "completionCountTarget": 123,
  "description": "abc123",
  "name": "abc123",
  "subTasks": [CreateChecklistTaskInput]
}

CreateCheckoutSessionInput

Description

Autogenerated input type of CreateCheckoutSession

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
plan - String!
Example
{
  "clientMutationId": "xyz789",
  "plan": "xyz789"
}

CreateCheckoutSessionPayload

Description

Autogenerated return type of CreateCheckoutSession

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - String
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": "xyz789"
}

CreateCommentInput

Description

Autogenerated input type of CreateComment

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
commentableId - ID!
commentableType - CommentableTypeEnum!
content - String!
Example
{
  "clientMutationId": "abc123",
  "commentableId": "4",
  "commentableType": "CLIENT",
  "content": "abc123"
}

CreateCommentPayload

Description

Autogenerated return type of CreateComment

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Comment
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Comment
}

CreateDocumentInput

Description

Autogenerated input type of CreateDocument

Fields
Input Field Description
acknowledgementRequired - Boolean
allUsersAssigned - Boolean
assignedGroupIds - [ID!]
assigneeIds - [ID!]
assignmentType - DocumentAssignmentEnum
attachments - [DocumentAttachmentInput!]!
clientMutationId - String A unique identifier for the client performing the mutation.
color - String
expiredAt - ISO8601DateTime
folderId - ID
name - String!
notes - String
saveAsDraft - Boolean
shareWithNewHires - Boolean
tags - [TagInput!]
Example
{
  "acknowledgementRequired": true,
  "allUsersAssigned": true,
  "assignedGroupIds": [4],
  "assigneeIds": ["4"],
  "assignmentType": "PERSONAL",
  "attachments": [DocumentAttachmentInput],
  "clientMutationId": "xyz789",
  "color": "abc123",
  "expiredAt": ISO8601DateTime,
  "folderId": 4,
  "name": "abc123",
  "notes": "abc123",
  "saveAsDraft": true,
  "shareWithNewHires": false,
  "tags": [TagInput]
}

CreateDocumentPayload

Description

Autogenerated return type of CreateDocument

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Document
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Document
}

CreateFeedbackInput

Description

Autogenerated input type of CreateFeedback

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
comment - String!
mood - String
Example
{
  "clientMutationId": "xyz789",
  "comment": "abc123",
  "mood": "abc123"
}

CreateFeedbackPayload

Description

Autogenerated return type of CreateFeedback

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Boolean!
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": false
}

CreateFolderInput

Description

Autogenerated input type of CreateFolder

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
description - String
documentIds - [ID!]
name - String!
parentId - ID
private - Boolean
Example
{
  "clientMutationId": "abc123",
  "description": "xyz789",
  "documentIds": ["4"],
  "name": "abc123",
  "parentId": "4",
  "private": false
}

CreateFolderPayload

Description

Autogenerated return type of CreateFolder

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Folder
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Folder
}

CreateGroupsInput

Description

Autogenerated input type of CreateGroups

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
groupsInput - [GroupInput!]!
Example
{
  "clientMutationId": "abc123",
  "groupsInput": [GroupInput]
}

CreateGroupsPayload

Description

Autogenerated return type of CreateGroups

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - [Group!]
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": [Group]
}

CreateJobSiteInput

Description

Autogenerated input type of CreateJobSite

Fields
Input Field Description
address - String!
attachments - [JobSiteAttachmentInput!]
clientMutationId - String A unique identifier for the client performing the mutation.
color - String
geoLat - Float!
geoLong - Float!
name - String!
note - String
payRate - JobSitePayRateInput
scheduleIds - [ID!]!
wifiBssid - String
wifiSsid - String
Example
{
  "address": "abc123",
  "attachments": [JobSiteAttachmentInput],
  "clientMutationId": "xyz789",
  "color": "xyz789",
  "geoLat": 123.45,
  "geoLong": 123.45,
  "name": "abc123",
  "note": "abc123",
  "payRate": JobSitePayRateInput,
  "scheduleIds": [4],
  "wifiBssid": "xyz789",
  "wifiSsid": "abc123"
}

CreateJobSitePayload

Description

Autogenerated return type of CreateJobSite

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - JobSite
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": JobSite
}

CreateJoinCodeInput

Description

Autogenerated input type of CreateJoinCode

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
requireApproval - Boolean!
Example
{
  "clientMutationId": "abc123",
  "requireApproval": true
}

CreateJoinCodePayload

Description

Autogenerated return type of CreateJoinCode

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - JoinCode
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": JoinCode
}

CreateJoinRequestInput

Description

Autogenerated input type of CreateJoinRequest

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
email - String!
firstName - String!
joinCode - String!
lastName - String
phoneNumber - String
timezone - String
userId - ID
workspaceId - ID!
Example
{
  "clientMutationId": "xyz789",
  "email": "abc123",
  "firstName": "abc123",
  "joinCode": "xyz789",
  "lastName": "abc123",
  "phoneNumber": "abc123",
  "timezone": "abc123",
  "userId": 4,
  "workspaceId": "4"
}

CreateJoinRequestPayload

Description

Autogenerated return type of CreateJoinRequest

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - JoinRequest
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": JoinRequest
}

CreateLeaveCategoryInput

Description

Autogenerated input type of CreateLeaveCategory

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
name - String!
paidLeave - Boolean!
unpaidLeave - Boolean
Example
{
  "clientMutationId": "abc123",
  "name": "xyz789",
  "paidLeave": false,
  "unpaidLeave": false
}

CreateLeaveCategoryPayload

Description

Autogenerated return type of CreateLeaveCategory

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - LeaveCategory
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": LeaveCategory
}

CreateMessageBoardInput

Description

Autogenerated input type of CreateMessageBoard

Fields
Input Field Description
allUsersAccessed - Boolean
clientMutationId - String A unique identifier for the client performing the mutation.
description - String
memberIds - [ID!]
name - String
shareWithNewHires - Boolean
Example
{
  "allUsersAccessed": false,
  "clientMutationId": "xyz789",
  "description": "abc123",
  "memberIds": [4],
  "name": "xyz789",
  "shareWithNewHires": true
}

CreateMessageBoardPayload

Description

Autogenerated return type of CreateMessageBoard

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - MessageBoard
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": MessageBoard
}

CreateMessageBoardPostInput

Description

Autogenerated input type of CreateMessageBoardPost

Fields
Input Field Description
acknowledgementRequired - Boolean
blocks - JSON
categoryId - ID
clientMutationId - String A unique identifier for the client performing the mutation.
commentEnabled - Boolean
content - String
images - [MessageBoardPostImageInput!]
messageBoardId - ID!
notifyAllMembers - Boolean
notifyUserIds - [ID!]
pinnedAt - ISO8601DateTime
saveAsDraft - Boolean
scheduledPostAt - ISO8601DateTime
title - String!
Example
{
  "acknowledgementRequired": true,
  "blocks": {},
  "categoryId": 4,
  "clientMutationId": "abc123",
  "commentEnabled": false,
  "content": "abc123",
  "images": [MessageBoardPostImageInput],
  "messageBoardId": "4",
  "notifyAllMembers": true,
  "notifyUserIds": ["4"],
  "pinnedAt": ISO8601DateTime,
  "saveAsDraft": false,
  "scheduledPostAt": ISO8601DateTime,
  "title": "xyz789"
}

CreateMessageBoardPostPayload

Description

Autogenerated return type of CreateMessageBoardPost

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - MessageBoardPost
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": MessageBoardPost
}

CreateMessageInput

Description

Autogenerated input type of CreateMessage

Fields
Input Field Description
attachments - [MessageAttachmentInput!]
channelId - ID!
clientMutationId - String A unique identifier for the client performing the mutation.
message - String!
Example
{
  "attachments": [MessageAttachmentInput],
  "channelId": "4",
  "clientMutationId": "xyz789",
  "message": "abc123"
}

CreateMessagePayload

Description

Autogenerated return type of CreateMessage

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ChatMessage
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ChatMessage
}

CreateReactionInput

Description

Autogenerated input type of CreateReaction

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
emoji - String!
reactableId - ID!
reactableType - ReactableTypeEnum!
Example
{
  "clientMutationId": "abc123",
  "emoji": "abc123",
  "reactableId": "4",
  "reactableType": "COMMENT"
}

CreateReactionPayload

Description

Autogenerated return type of CreateReaction

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Reaction
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Reaction
}

CreateScheduleInput

Description

Autogenerated input type of CreateSchedule

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
defaultJobSiteId - ID
name - String!
schedulesUsers - [SchedulesUserInput!]
timezone - String
Example
{
  "clientMutationId": "xyz789",
  "defaultJobSiteId": "4",
  "name": "xyz789",
  "schedulesUsers": [SchedulesUserInput],
  "timezone": "xyz789"
}

CreateSchedulePayload

Description

Autogenerated return type of CreateSchedule

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Schedule
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Schedule
}

CreateShiftBatchInput

Description

Autogenerated input type of CreateShiftBatch

Fields
Input Field Description
assignees - [ShiftBatchAssigneeInput!]!
attachments - [ShiftAttachmentInput!]
breakDuration - Minute!
checklists - [CreateShiftChecklistInput!]
clientMutationId - String A unique identifier for the client performing the mutation.
color - String
endTime - ISO8601DateTime!
endType - ShiftEndTypeInputEnum
jobSiteId - ID
note - String
recurrenceRule - String
saveAsTemplate - Boolean
scheduleId - ID!
startTime - ISO8601DateTime!
timezone - String!
title - String
Example
{
  "assignees": [ShiftBatchAssigneeInput],
  "attachments": [ShiftAttachmentInput],
  "breakDuration": Minute,
  "checklists": [CreateShiftChecklistInput],
  "clientMutationId": "abc123",
  "color": "abc123",
  "endTime": ISO8601DateTime,
  "endType": "BUSINESS_DECLINE",
  "jobSiteId": "4",
  "note": "xyz789",
  "recurrenceRule": "abc123",
  "saveAsTemplate": false,
  "scheduleId": "4",
  "startTime": ISO8601DateTime,
  "timezone": "abc123",
  "title": "abc123"
}

CreateShiftBatchPayload

Description

Autogenerated return type of CreateShiftBatch

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ShiftBatch
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": ShiftBatch
}

CreateShiftChecklistInput

Fields
Input Field Description
name - String!
tasks - [CreateShiftTaskInput!]
Example
{
  "name": "abc123",
  "tasks": [CreateShiftTaskInput]
}

CreateShiftInput

Description

Autogenerated input type of CreateShift

Fields
Input Field Description
addGroupToAssignee - Boolean
assigneeId - ID
attachments - [ShiftAttachmentInput!]
breakDuration - Minute!
checklists - [CreateShiftChecklistInput!]
clientMutationId - String A unique identifier for the client performing the mutation.
color - String
endTime - ISO8601DateTime!
endType - ShiftEndTypeInputEnum
groupId - ID
jobSiteId - ID
note - String
numOfCopies - Int
recurrenceRule - String
requireClaimApproval - Boolean
saveAsTemplate - Boolean
scheduleId - ID!
startTime - ISO8601DateTime!
timezone - String!
title - String
Example
{
  "addGroupToAssignee": false,
  "assigneeId": 4,
  "attachments": [ShiftAttachmentInput],
  "breakDuration": Minute,
  "checklists": [CreateShiftChecklistInput],
  "clientMutationId": "xyz789",
  "color": "xyz789",
  "endTime": ISO8601DateTime,
  "endType": "BUSINESS_DECLINE",
  "groupId": "4",
  "jobSiteId": 4,
  "note": "xyz789",
  "numOfCopies": 987,
  "recurrenceRule": "abc123",
  "requireClaimApproval": true,
  "saveAsTemplate": false,
  "scheduleId": "4",
  "startTime": ISO8601DateTime,
  "timezone": "abc123",
  "title": "xyz789"
}

CreateShiftPayload

Description

Autogenerated return type of CreateShift

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Shift
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Shift
}

CreateShiftTaskInput

Fields
Input Field Description
code - String
completionCountTarget - Int
description - String
dueDate - ISO8601DateTime
name - String!
subTasks - [CreateShiftTaskInput!]
Example
{
  "code": "abc123",
  "completionCountTarget": 987,
  "description": "abc123",
  "dueDate": ISO8601DateTime,
  "name": "xyz789",
  "subTasks": [CreateShiftTaskInput]
}

CreateShiftTemplateInput

Description

Autogenerated input type of CreateShiftTemplate

Fields
Input Field Description
breakDuration - Minute
clientMutationId - String A unique identifier for the client performing the mutation.
color - String
endTime - ISO8601DateTime!
endType - ShiftEndTypeInputEnum
groupId - ID
jobSiteId - ID
name - String
note - String
scheduleId - ID!
startTime - ISO8601DateTime!
timezone - String
Example
{
  "breakDuration": Minute,
  "clientMutationId": "abc123",
  "color": "abc123",
  "endTime": ISO8601DateTime,
  "endType": "BUSINESS_DECLINE",
  "groupId": 4,
  "jobSiteId": "4",
  "name": "xyz789",
  "note": "xyz789",
  "scheduleId": "4",
  "startTime": ISO8601DateTime,
  "timezone": "abc123"
}

CreateShiftTemplatePayload

Description

Autogenerated return type of CreateShiftTemplate

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ShiftTemplate
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ShiftTemplate
}

CreateTagInput

Description

Autogenerated input type of CreateTag

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
color - String
name - String!
Example
{
  "clientMutationId": "abc123",
  "color": "xyz789",
  "name": "abc123"
}

CreateTagPayload

Description

Autogenerated return type of CreateTag

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Tag
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Tag
}

CreateTaskInput

Description

Autogenerated input type of CreateTask

Fields
Input Field Description
assigneeId - ID
clientMutationId - String A unique identifier for the client performing the mutation.
description - String!
dueDate - ISO8601DateTime
name - String!
Example
{
  "assigneeId": "4",
  "clientMutationId": "abc123",
  "description": "xyz789",
  "dueDate": ISO8601DateTime,
  "name": "xyz789"
}

CreateTaskPayload

Description

Autogenerated return type of CreateTask

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Task
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Task
}

CreateTimeCardInput

Description

Autogenerated input type of CreateTimeCard

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
groupId - ID
note - String
scheduleId - ID
timezone - String!
Example
{
  "clientMutationId": "abc123",
  "groupId": "4",
  "note": "xyz789",
  "scheduleId": "4",
  "timezone": "xyz789"
}

CreateTimeCardPayload

Description

Autogenerated return type of CreateTimeCard

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - TimeCard
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": TimeCard
}

CreateUsersInput

Description

Autogenerated input type of CreateUsers

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
usersInput - [UserInput!]!
Example
{
  "clientMutationId": "xyz789",
  "usersInput": [UserInput]
}

CreateUsersPayload

Description

Autogenerated return type of CreateUsers

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - [User!]
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": [User]
}

CreateWorkspaceSampleDataInput

Description

Autogenerated input type of CreateWorkspaceSampleData

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
Example
{"clientMutationId": "abc123"}

CreateWorkspaceSampleDataPayload

Description

Autogenerated return type of CreateWorkspaceSampleData

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Boolean!
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": false
}

Dashboard

Fields
Field Name Description
mostAbsent - User
mostLate - User
mostLeaveDays - User
mostReliable - User
Example
{
  "mostAbsent": User,
  "mostLate": User,
  "mostLeaveDays": User,
  "mostReliable": User
}

DashboardOverviewFilter

Fields
Input Field Description
_or - [DashboardOverviewFilter!]
fromTime - ISO8601DateTime!
scheduleIds - [ID!]
toTime - ISO8601DateTime!
Example
{
  "_or": [DashboardOverviewFilter],
  "fromTime": ISO8601DateTime,
  "scheduleIds": ["4"],
  "toTime": ISO8601DateTime
}

DeleteFilesInput

Description

Autogenerated input type of DeleteFiles

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
keys - [String!]!
Example
{
  "clientMutationId": "xyz789",
  "keys": ["xyz789"]
}

DeleteFilesPayload

Description

Autogenerated return type of DeleteFiles

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Boolean!
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": true
}

DestroyAvailabilityInput

Description

Autogenerated input type of DestroyAvailability

Fields
Input Field Description
availabilityId - ID!
clientMutationId - String A unique identifier for the client performing the mutation.
recurrenceEditType - RecurrenceEditTypeEnum
Example
{
  "availabilityId": "4",
  "clientMutationId": "xyz789",
  "recurrenceEditType": "ALL"
}

DestroyAvailabilityPayload

Description

Autogenerated return type of DestroyAvailability

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Availability
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Availability
}

DestroyCalendarEventInput

Description

Autogenerated input type of DestroyCalendarEvent

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
id - ID!
recurrenceEditType - RecurrenceEditTypeEnum
Example
{
  "clientMutationId": "xyz789",
  "id": 4,
  "recurrenceEditType": "ALL"
}

DestroyCalendarEventPayload

Description

Autogenerated return type of DestroyCalendarEvent

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - CalendarEvent
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": CalendarEvent
}

DestroyChecklistInput

Description

Autogenerated input type of DestroyChecklist

Fields
Input Field Description
checklistId - ID!
clientMutationId - String A unique identifier for the client performing the mutation.
Example
{
  "checklistId": 4,
  "clientMutationId": "abc123"
}

DestroyChecklistPayload

Description

Autogenerated return type of DestroyChecklist

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Checklist
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Checklist
}

DestroyCommentInput

Description

Autogenerated input type of DestroyComment

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
commentId - ID!
Example
{
  "clientMutationId": "xyz789",
  "commentId": 4
}

DestroyCommentPayload

Description

Autogenerated return type of DestroyComment

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Boolean
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": false
}

DestroyDocumentInput

Description

Autogenerated input type of DestroyDocument

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
documentId - ID!
Example
{
  "clientMutationId": "xyz789",
  "documentId": 4
}

DestroyDocumentPayload

Description

Autogenerated return type of DestroyDocument

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Document
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Document
}

DestroyFolderInput

Description

Autogenerated input type of DestroyFolder

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
folderId - ID!
Example
{
  "clientMutationId": "xyz789",
  "folderId": "4"
}

DestroyFolderPayload

Description

Autogenerated return type of DestroyFolder

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Folder
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Folder
}

DestroyGroupInput

Description

Autogenerated input type of DestroyGroup

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
groupId - ID!
Example
{
  "clientMutationId": "abc123",
  "groupId": "4"
}

DestroyGroupPayload

Description

Autogenerated return type of DestroyGroup

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Group
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Group
}

DestroyJobSiteInput

Description

Autogenerated input type of DestroyJobSite

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
jobSiteId - ID!
Example
{
  "clientMutationId": "abc123",
  "jobSiteId": 4
}

DestroyJobSitePayload

Description

Autogenerated return type of DestroyJobSite

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - JobSite
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": JobSite
}

DestroyJoinCodeInput

Description

Autogenerated input type of DestroyJoinCode

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
joinCodeId - ID!
Example
{
  "clientMutationId": "xyz789",
  "joinCodeId": "4"
}

DestroyJoinCodePayload

Description

Autogenerated return type of DestroyJoinCode

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - JoinCode
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": JoinCode
}

DestroyLeaveInput

Description

Autogenerated input type of DestroyLeave

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
leaveId - ID!
Example
{"clientMutationId": "xyz789", "leaveId": 4}

DestroyLeavePayload

Description

Autogenerated return type of DestroyLeave

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - LeaveRequest
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": LeaveRequest
}

DestroyMessageBoardInput

Description

Autogenerated input type of DestroyMessageBoard

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
messageBoardId - ID!
Example
{
  "clientMutationId": "xyz789",
  "messageBoardId": "4"
}

DestroyMessageBoardPayload

Description

Autogenerated return type of DestroyMessageBoard

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - MessageBoard
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": MessageBoard
}

DestroyMessageBoardPostInput

Description

Autogenerated input type of DestroyMessageBoardPost

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
messageBoardPostId - ID!
Example
{
  "clientMutationId": "xyz789",
  "messageBoardPostId": "4"
}

DestroyMessageBoardPostPayload

Description

Autogenerated return type of DestroyMessageBoardPost

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - MessageBoardPost
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": MessageBoardPost
}

DestroyMessageInput

Description

Autogenerated input type of DestroyMessage

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
messageId - ID!
Example
{
  "clientMutationId": "abc123",
  "messageId": 4
}

DestroyMessagePayload

Description

Autogenerated return type of DestroyMessage

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ChatMessage
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": ChatMessage
}

DestroyReactionInput

Description

Autogenerated input type of DestroyReaction

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
reactionId - ID!
Example
{
  "clientMutationId": "abc123",
  "reactionId": 4
}

DestroyReactionPayload

Description

Autogenerated return type of DestroyReaction

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Boolean
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": false
}

DestroyScheduleInput

Description

Autogenerated input type of DestroySchedule

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
scheduleId - ID!
Example
{
  "clientMutationId": "xyz789",
  "scheduleId": 4
}

DestroySchedulePayload

Description

Autogenerated return type of DestroySchedule

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Schedule
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Schedule
}

DestroySchedulePhotoInput

Description

Autogenerated input type of DestroySchedulePhoto

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
schedulePhotoId - ID!
Example
{
  "clientMutationId": "xyz789",
  "schedulePhotoId": 4
}

DestroySchedulePhotoPayload

Description

Autogenerated return type of DestroySchedulePhoto

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - SchedulePhoto
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": SchedulePhoto
}

DestroyShiftBatchInput

Description

Autogenerated input type of DestroyShiftBatch

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftBatchId - ID!
Example
{
  "clientMutationId": "abc123",
  "shiftBatchId": 4
}

DestroyShiftBatchPayload

Description

Autogenerated return type of DestroyShiftBatch

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ShiftBatch
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ShiftBatch
}

DestroyShiftInput

Description

Autogenerated input type of DestroyShift

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
recurrenceEditType - RecurrenceEditTypeEnum
shiftId - ID!
Example
{
  "clientMutationId": "xyz789",
  "recurrenceEditType": "ALL",
  "shiftId": "4"
}

DestroyShiftOfferInput

Description

Autogenerated input type of DestroyShiftOffer

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftOfferId - ID!
Example
{
  "clientMutationId": "abc123",
  "shiftOfferId": 4
}

DestroyShiftOfferPayload

Description

Autogenerated return type of DestroyShiftOffer

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ShiftOffer
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ShiftOffer
}

DestroyShiftPayload

Description

Autogenerated return type of DestroyShift

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Shift
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Shift
}

DestroyShiftSwapInput

Description

Autogenerated input type of DestroyShiftSwap

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftSwapId - ID!
Example
{
  "clientMutationId": "xyz789",
  "shiftSwapId": "4"
}

DestroyShiftSwapPayload

Description

Autogenerated return type of DestroyShiftSwap

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ShiftSwap
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": ShiftSwap
}

DestroyShiftTemplateInput

Description

Autogenerated input type of DestroyShiftTemplate

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftTemplateId - ID!
Example
{
  "clientMutationId": "abc123",
  "shiftTemplateId": "4"
}

DestroyShiftTemplatePayload

Description

Autogenerated return type of DestroyShiftTemplate

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ShiftTemplate
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": ShiftTemplate
}

DestroyShiftsInput

Description

Autogenerated input type of DestroyShifts

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftIds - [ID!]!
Example
{
  "clientMutationId": "abc123",
  "shiftIds": [4]
}

DestroyShiftsPayload

Description

Autogenerated return type of DestroyShifts

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - [Shift!]!
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": [Shift]
}

DestroyTaskInput

Description

Autogenerated input type of DestroyTask

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
taskId - ID!
Example
{"clientMutationId": "xyz789", "taskId": 4}

DestroyTaskPayload

Description

Autogenerated return type of DestroyTask

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Boolean
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": true
}

DestroyTimeCardInput

Description

Autogenerated input type of DestroyTimeCard

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
timeCardId - ID!
Example
{
  "clientMutationId": "abc123",
  "timeCardId": "4"
}

DestroyTimeCardPayload

Description

Autogenerated return type of DestroyTimeCard

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - TimeCard
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": TimeCard
}

DestroyTimesheetInput

Description

Autogenerated input type of DestroyTimesheet

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
timesheetId - ID!
Example
{
  "clientMutationId": "xyz789",
  "timesheetId": 4
}

DestroyTimesheetPayload

Description

Autogenerated return type of DestroyTimesheet

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Timesheet
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Timesheet
}

DestroyWorkspaceSampleDataInput

Description

Autogenerated input type of DestroyWorkspaceSampleData

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
Example
{"clientMutationId": "xyz789"}

DestroyWorkspaceSampleDataPayload

Description

Autogenerated return type of DestroyWorkspaceSampleData

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Boolean!
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": true
}

Device

Fields
Field Name Description
appVersion - String
buildVersion - String
id - ID!
name - String
token - String!
user - User!
Example
{
  "appVersion": "xyz789",
  "buildVersion": "xyz789",
  "id": "4",
  "name": "xyz789",
  "token": "abc123",
  "user": User
}

Document

Fields
Field Name Description
acknowledgementRequired - Boolean!
acknowledgements - [Acknowledgement!]
allUsersAssigned - Boolean!
archived - Boolean!
assignedGroups - [Group!]
assignees - [User!]
assignmentType - DocumentAssignmentEnum!
color - String
createdAt - ISO8601DateTime!
creator - User!
deletedAt - ISO8601DateTime
documentAttachments - [DocumentAttachment!]!
expiredAt - ISO8601DateTime
folder - Folder
id - ID!
name - String!
notes - String
pinnedAt - ISO8601DateTime
shareWithNewHires - Boolean!
state - DocumentStateEnum!
tags - [Tag!]
updatedAt - ISO8601DateTime!
workspace - Workspace!
Example
{
  "acknowledgementRequired": true,
  "acknowledgements": [Acknowledgement],
  "allUsersAssigned": false,
  "archived": true,
  "assignedGroups": [Group],
  "assignees": [User],
  "assignmentType": "PERSONAL",
  "color": "abc123",
  "createdAt": ISO8601DateTime,
  "creator": User,
  "deletedAt": ISO8601DateTime,
  "documentAttachments": [DocumentAttachment],
  "expiredAt": ISO8601DateTime,
  "folder": Folder,
  "id": "4",
  "name": "abc123",
  "notes": "xyz789",
  "pinnedAt": ISO8601DateTime,
  "shareWithNewHires": false,
  "state": "DRAFT",
  "tags": [Tag],
  "updatedAt": ISO8601DateTime,
  "workspace": Workspace
}

DocumentAssignmentEnum

Values
Enum Value Description

PERSONAL

TEAM

Example
"PERSONAL"

DocumentAttachment

Fields
Field Name Description
attachment - String!
createdAt - ISO8601DateTime!
documentId - ID!
id - ID!
updatedAt - ISO8601DateTime!
Example
{
  "attachment": "abc123",
  "createdAt": ISO8601DateTime,
  "documentId": 4,
  "id": "4",
  "updatedAt": ISO8601DateTime
}

DocumentAttachmentInput

Fields
Input Field Description
attachmentKey - String!
Example
{"attachmentKey": "xyz789"}

DocumentConnection

Description

The connection type for Document.

Fields
Field Name Description
edges - [DocumentEdge] A list of edges.
nodes - [Document] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [DocumentEdge],
  "nodes": [Document],
  "pageInfo": PageInfo,
  "totalCount": 987
}

DocumentEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - Document The item at the end of the edge.
Example
{
  "cursor": "xyz789",
  "node": Document
}

DocumentFilter

Fields
Input Field Description
_or - [DocumentFilter!]
archived - Boolean
assigneeIds - [ID!]
creatorIds - [ID!]
documentStates - [DocumentStateEnum!]
folderIds - [ID!]
tagIds - [ID!]
Example
{
  "_or": [DocumentFilter],
  "archived": true,
  "assigneeIds": [4],
  "creatorIds": ["4"],
  "documentStates": ["DRAFT"],
  "folderIds": ["4"],
  "tagIds": [4]
}

DocumentStateEnum

Values
Enum Value Description

DRAFT

EXPIRED

PUBLISHED

Example
"DRAFT"

DowngradeSubscriptionPlanInput

Description

Autogenerated input type of DowngradeSubscriptionPlan

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
planCode - String!
Example
{
  "clientMutationId": "xyz789",
  "planCode": "xyz789"
}

DowngradeSubscriptionPlanPayload

Description

Autogenerated return type of DowngradeSubscriptionPlan

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Boolean!
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": true
}

DownloadFileInput

Description

Autogenerated input type of DownloadFile

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
fileKey - String!
Example
{
  "clientMutationId": "abc123",
  "fileKey": "abc123"
}

DownloadFilePayload

Description

Autogenerated return type of DownloadFile

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - DownloadFileResult
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": DownloadFileResult
}

DownloadFileResult

Fields
Field Name Description
url - String!
Example
{"url": "abc123"}

DraftLeaveInput

Description

Autogenerated input type of DraftLeave

Fields
Input Field Description
allDay - Boolean!
approverId - ID!
clientMutationId - String A unique identifier for the client performing the mutation.
days - [LeaveDayInput!]!
employeeId - ID!
from - ISO8601DateTime!
leaveCategoryId - ID!
paid - Boolean
reason - String
timezone - String!
to - ISO8601DateTime!
Example
{
  "allDay": true,
  "approverId": 4,
  "clientMutationId": "xyz789",
  "days": [LeaveDayInput],
  "employeeId": 4,
  "from": ISO8601DateTime,
  "leaveCategoryId": "4",
  "paid": true,
  "reason": "abc123",
  "timezone": "abc123",
  "to": ISO8601DateTime
}

DraftLeavePayload

Description

Autogenerated return type of DraftLeave

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - LeaveRequest
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": LeaveRequest
}

DraftTimesheetInput

Description

Autogenerated input type of DraftTimesheet

Fields
Input Field Description
breaks - [TimesheetBreakInput!]
clientMutationId - String A unique identifier for the client performing the mutation.
employeeId - ID!
from - ISO8601DateTime!
groupId - ID
scheduleId - ID
timezone - String!
to - ISO8601DateTime!
Example
{
  "breaks": [TimesheetBreakInput],
  "clientMutationId": "xyz789",
  "employeeId": "4",
  "from": ISO8601DateTime,
  "groupId": "4",
  "scheduleId": "4",
  "timezone": "abc123",
  "to": ISO8601DateTime
}

DraftTimesheetPayload

Description

Autogenerated return type of DraftTimesheet

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Timesheet
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Timesheet
}

EmployeeAvailabilityEnum

Values
Enum Value Description

APPROVAL_REQUIRED

DISABLED

ENABLED

Example
"APPROVAL_REQUIRED"

EmployeeGetStartedStep

Fields
Field Name Description
id - ID!
name - EmployeeGetStartedStepNameEnum!
order - Int!
state - GetStartedStepStateEnum!
Example
{"id": 4, "name": "CLOCK_IN", "order": 123, "state": "FINISHED"}

EmployeeGetStartedStepNameEnum

Values
Enum Value Description

CLOCK_IN

TRY_WEB_APP

UPDATE_AVAILABILITY

UPDATE_PROFILE_PICTURE

VIEW_PRODUCT_GUIDE

Example
"CLOCK_IN"

EmployeeImportRequest

Fields
Field Name Description
createdAt - ISO8601DateTime!
csvFile - String
data - JSON!
id - ID!
requester - User!
state - ImportRequestStateEnum!
updatedAt - ISO8601DateTime!
Example
{
  "createdAt": ISO8601DateTime,
  "csvFile": "xyz789",
  "data": {},
  "id": "4",
  "requester": User,
  "state": "DONE",
  "updatedAt": ISO8601DateTime
}

ExportScheduleFormatEnum

Values
Enum Value Description

IMAGE

SPREADSHEET

Example
"IMAGE"

ExportScheduleInput

Description

Autogenerated input type of ExportSchedule

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
format - ExportScheduleFormatEnum
fromTime - ISO8601DateTime!
groupId - ID
scheduleId - ID
shiftStates - [ShiftStateEnum!]
toTime - ISO8601DateTime!
Example
{
  "clientMutationId": "xyz789",
  "format": "IMAGE",
  "fromTime": ISO8601DateTime,
  "groupId": "4",
  "scheduleId": "4",
  "shiftStates": ["ABSENT"],
  "toTime": ISO8601DateTime
}

ExportSchedulePayload

Description

Autogenerated return type of ExportSchedule

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Boolean
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": true
}

ExportTimesheetInput

Description

Autogenerated input type of ExportTimesheet

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
employeeIds - [ID!]
fromTime - ISO8601DateTime!
scheduleId - ID
toTime - ISO8601DateTime!
Example
{
  "clientMutationId": "xyz789",
  "employeeIds": ["4"],
  "fromTime": ISO8601DateTime,
  "scheduleId": "4",
  "toTime": ISO8601DateTime
}

ExportTimesheetPayload

Description

Autogenerated return type of ExportTimesheet

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Boolean!
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": false
}

FinishEmployeeGetStartedStepInput

Description

Autogenerated input type of FinishEmployeeGetStartedStep

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
getStartedStepId - ID!
Example
{
  "clientMutationId": "abc123",
  "getStartedStepId": 4
}

FinishEmployeeGetStartedStepPayload

Description

Autogenerated return type of FinishEmployeeGetStartedStep

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - EmployeeGetStartedStep
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": EmployeeGetStartedStep
}

FinishTaskInput

Description

Autogenerated input type of FinishTask

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
taskId - ID!
Example
{
  "clientMutationId": "abc123",
  "taskId": "4"
}

FinishTaskPayload

Description

Autogenerated return type of FinishTask

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Task
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Task
}

FinishWorkspaceGetStartedStepInput

Description

Autogenerated input type of FinishWorkspaceGetStartedStep

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
getStartedStepId - ID!
Example
{
  "clientMutationId": "abc123",
  "getStartedStepId": "4"
}

FinishWorkspaceGetStartedStepPayload

Description

Autogenerated return type of FinishWorkspaceGetStartedStep

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - WorkspaceGetStartedStep
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": WorkspaceGetStartedStep
}

Float

Description

The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.

Example
987.65

Folder

Fields
Field Name Description
createdAt - ISO8601DateTime!
creator - User!
deletedAt - ISO8601DateTime
description - String
documents - [Document!]
id - ID!
level - Int!
name - String!
parent - Folder
private - Boolean
subFolders - [Folder!]
updatedAt - ISO8601DateTime!
workspace - Workspace!
Example
{
  "createdAt": ISO8601DateTime,
  "creator": User,
  "deletedAt": ISO8601DateTime,
  "description": "xyz789",
  "documents": [Document],
  "id": 4,
  "level": 123,
  "name": "xyz789",
  "parent": Folder,
  "private": false,
  "subFolders": [Folder],
  "updatedAt": ISO8601DateTime,
  "workspace": Workspace
}

FolderFilter

Fields
Input Field Description
_or - [FolderFilter!]
creatorIds - [ID!]
ignoreSelfAndParent - ID
levels - [Int!]
Example
{
  "_or": [FolderFilter],
  "creatorIds": [4],
  "ignoreSelfAndParent": "4",
  "levels": [123]
}

GenerateDirectUploadUrlInput

Description

Autogenerated input type of GenerateDirectUploadUrl

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
uploader - UploaderEnum!
Example
{
  "clientMutationId": "abc123",
  "uploader": "AVATAR"
}

GenerateDirectUploadUrlPayload

Description

Autogenerated return type of GenerateDirectUploadUrl

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - AWS4Request
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": AWS4Request
}

GetStartedStepStateEnum

Values
Enum Value Description

FINISHED

PENDING

Example
"FINISHED"

Group

Fields
Field Name Description
color - String!
colorName - String!
createdAt - ISO8601DateTime!
default - Boolean
deletedAt - ISO8601DateTime
id - ID!
name - String!
updatedAt - ISO8601DateTime!
users - [User!]!
Arguments
first - Int
usersCount - Int!
Example
{
  "color": "xyz789",
  "colorName": "abc123",
  "createdAt": ISO8601DateTime,
  "default": false,
  "deletedAt": ISO8601DateTime,
  "id": "4",
  "name": "abc123",
  "updatedAt": ISO8601DateTime,
  "users": [User],
  "usersCount": 987
}

GroupFilter

Fields
Input Field Description
seed - Boolean
state - GroupFilterStateEnum
userId - ID
Example
{
  "seed": true,
  "state": "ACTIVE",
  "userId": "4"
}

GroupFilterStateEnum

Values
Enum Value Description

ACTIVE

ALL

ARCHIVED

Example
"ACTIVE"

GroupInput

Fields
Input Field Description
color - String
name - String!
Example
{
  "color": "xyz789",
  "name": "xyz789"
}

GroupSearchPayload

Fields
Field Name Description
seedGroups - [Group!] Seed groups
userGroups - [Group!] Groups that been assigned to that user
workspaceGroups - [Group!] Groups that been assigned to that workspace
Example
{
  "seedGroups": [Group],
  "userGroups": [Group],
  "workspaceGroups": [Group]
}

ID

Description

The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

Example
"4"

ISO8601DateTime

Description

An ISO 8601-encoded datetime

Example
ISO8601DateTime

ImportEmployeesInput

Description

Autogenerated input type of ImportEmployees

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
data - JSON!
fieldMappings - JSON!
Example
{
  "clientMutationId": "abc123",
  "data": {},
  "fieldMappings": {}
}

ImportEmployeesPayload

Description

Autogenerated return type of ImportEmployees

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - EmployeeImportRequest
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": EmployeeImportRequest
}

ImportRequestStateEnum

Values
Enum Value Description

DONE

PENDING

Example
"DONE"

Int

Description

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

Example
123

InviteToChannelInput

Description

Autogenerated input type of InviteToChannel

Fields
Input Field Description
channelId - ID!
clientMutationId - String A unique identifier for the client performing the mutation.
userIds - [ID!]!
Example
{
  "channelId": "4",
  "clientMutationId": "abc123",
  "userIds": [4]
}

InviteToChannelPayload

Description

Autogenerated return type of InviteToChannel

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ChatChannel
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": ChatChannel
}

JSON

Description

Represents untyped JSON

Example
{}

JobSite

Fields
Field Name Description
address - String!
attachments - [JobSiteAttachment!]
color - String
createdAt - ISO8601DateTime!
geoLat - Float!
geoLong - Float!
id - ID!
name - String!
note - String
payRate - JobSitePayRate
schedules - [Schedule!]!
updatedAt - ISO8601DateTime!
wifiBssid - String
wifiSsid - String
Example
{
  "address": "xyz789",
  "attachments": [JobSiteAttachment],
  "color": "xyz789",
  "createdAt": ISO8601DateTime,
  "geoLat": 987.65,
  "geoLong": 123.45,
  "id": "4",
  "name": "xyz789",
  "note": "xyz789",
  "payRate": JobSitePayRate,
  "schedules": [Schedule],
  "updatedAt": ISO8601DateTime,
  "wifiBssid": "xyz789",
  "wifiSsid": "xyz789"
}

JobSiteAttachment

Fields
Field Name Description
attachment - String!
createdAt - ISO8601DateTime!
id - ID!
jobSiteId - ID
updatedAt - ISO8601DateTime!
Example
{
  "attachment": "abc123",
  "createdAt": ISO8601DateTime,
  "id": "4",
  "jobSiteId": 4,
  "updatedAt": ISO8601DateTime
}

JobSiteAttachmentInput

Fields
Input Field Description
attachmentKey - String
Example
{"attachmentKey": "xyz789"}

JobSiteConnection

Description

The connection type for JobSite.

Fields
Field Name Description
edges - [JobSiteEdge] A list of edges.
nodes - [JobSite] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [JobSiteEdge],
  "nodes": [JobSite],
  "pageInfo": PageInfo,
  "totalCount": 123
}

JobSiteEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - JobSite The item at the end of the edge.
Example
{
  "cursor": "abc123",
  "node": JobSite
}

JobSiteFilter

Fields
Input Field Description
_or - [JobSiteFilter!]
color - String
keyword - String
scheduleIds - [ID!]
Example
{
  "_or": [JobSiteFilter],
  "color": "abc123",
  "keyword": "abc123",
  "scheduleIds": ["4"]
}

JobSitePayRate

Fields
Field Name Description
payUnit - String!
rate - Float!
Example
{"payUnit": "abc123", "rate": 123.45}

JobSitePayRateInput

Fields
Input Field Description
rate - Float!
Example
{"rate": 123.45}

JoinChannelInput

Description

Autogenerated input type of JoinChannel

Fields
Input Field Description
channelId - ID!
clientMutationId - String A unique identifier for the client performing the mutation.
Example
{
  "channelId": 4,
  "clientMutationId": "abc123"
}

JoinChannelPayload

Description

Autogenerated return type of JoinChannel

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ChannelMember
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": ChannelMember
}

JoinCode

Fields
Field Name Description
code - String!
effectiveUntil - ISO8601DateTime!
id - ID!
requireApproval - Boolean!
Example
{
  "code": "xyz789",
  "effectiveUntil": ISO8601DateTime,
  "id": 4,
  "requireApproval": false
}

JoinRequest

Fields
Field Name Description
id - ID!
state - JoinRequestStateEnum!
user - User!
userInfo - JSON
Example
{
  "id": "4",
  "state": "APPROVED",
  "user": User,
  "userInfo": {}
}

JoinRequestConnection

Description

The connection type for JoinRequest.

Fields
Field Name Description
edges - [JoinRequestEdge] A list of edges.
nodes - [JoinRequest] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [JoinRequestEdge],
  "nodes": [JoinRequest],
  "pageInfo": PageInfo,
  "totalCount": 987
}

JoinRequestEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - JoinRequest The item at the end of the edge.
Example
{
  "cursor": "abc123",
  "node": JoinRequest
}

JoinRequestFilter

Fields
Input Field Description
_or - [JoinRequestFilter!]
state - JoinRequestStateEnum
Example
{"_or": [JoinRequestFilter], "state": "APPROVED"}

JoinRequestStateEnum

Values
Enum Value Description

APPROVED

PENDING

REJECTED

Example
"APPROVED"

JwtPayload

Fields
Field Name Description
expiredAt - ISO8601DateTime!
jwtToken - String!
whoami - Whoami!
workspaces - [Workspace!]!
Example
{
  "expiredAt": ISO8601DateTime,
  "jwtToken": "xyz789",
  "whoami": Whoami,
  "workspaces": [Workspace]
}

KickFromChannelInput

Description

Autogenerated input type of KickFromChannel

Fields
Input Field Description
channelId - ID!
clientMutationId - String A unique identifier for the client performing the mutation.
userId - ID!
Example
{
  "channelId": "4",
  "clientMutationId": "abc123",
  "userId": "4"
}

KickFromChannelPayload

Description

Autogenerated return type of KickFromChannel

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ChatChannel
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": ChatChannel
}

KioskJwtPayload

Fields
Field Name Description
jwtToken - String!
whoami - Whoami!
workspaces - [Workspace!]!
Example
{
  "jwtToken": "xyz789",
  "whoami": Whoami,
  "workspaces": [Workspace]
}

KioskPunchAttachmentInput

Fields
Input Field Description
photoKey - String
Example
{"photoKey": "xyz789"}

KioskPunchData

Fields
Input Field Description
punchType - TimeCardPunchTypeEnum!
timeCardId - ID!
Example
{"punchType": "CLOCK_IN", "timeCardId": "4"}

KioskPunchInput

Description

Autogenerated input type of KioskPunch

Fields
Input Field Description
attachment - KioskPunchAttachmentInput
clientMutationId - String A unique identifier for the client performing the mutation.
data - KioskPunchData
Example
{
  "attachment": KioskPunchAttachmentInput,
  "clientMutationId": "abc123",
  "data": KioskPunchData
}

KioskPunchPayload

Description

Autogenerated return type of KioskPunch

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - KioskPunchResponse
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": KioskPunchResponse
}

KioskPunchResponse

Fields
Field Name Description
state - TimeCardStateEnum
timeCards - [KioskTimeCard!]!
whoami - Whoami!
Example
{
  "state": "CLOCKED_IN",
  "timeCards": [KioskTimeCard],
  "whoami": Whoami
}

KioskTimeCard

Fields
Field Name Description
autoDeductedUnpaidBreakDuration - Minute!
createdAt - ISO8601DateTime!
creator - User!
endTime - ISO8601DateTime
group - Group
hasWarning - Boolean!
id - ID!
note - String
punches - [TimeCardPunch!]!
schedule - Schedule
shift - Shift
startTime - ISO8601DateTime
state - TimeCardStateEnum!
timezone - String!
totalDuration - Minute!
Example
{
  "autoDeductedUnpaidBreakDuration": Minute,
  "createdAt": ISO8601DateTime,
  "creator": User,
  "endTime": ISO8601DateTime,
  "group": Group,
  "hasWarning": false,
  "id": "4",
  "note": "abc123",
  "punches": [TimeCardPunch],
  "schedule": Schedule,
  "shift": Shift,
  "startTime": ISO8601DateTime,
  "state": "CLOCKED_IN",
  "timezone": "xyz789",
  "totalDuration": Minute
}

LastViewedAtChannelInput

Description

Autogenerated input type of LastViewedAtChannel

Fields
Input Field Description
channelId - ID!
clientMutationId - String A unique identifier for the client performing the mutation.
lastMessageAt - ISO8601DateTime!
Example
{
  "channelId": "4",
  "clientMutationId": "xyz789",
  "lastMessageAt": ISO8601DateTime
}

LastViewedAtChannelPayload

Description

Autogenerated return type of LastViewedAtChannel

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ChannelMember
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ChannelMember
}

LeaveCategory

Fields
Field Name Description
enabled - Boolean!
id - ID!
name - String!
paidLeave - Boolean!
unpaidLeave - Boolean!
workspace - Workspace!
Example
{
  "enabled": true,
  "id": "4",
  "name": "xyz789",
  "paidLeave": false,
  "unpaidLeave": true,
  "workspace": Workspace
}

LeaveCategoryConnection

Description

The connection type for LeaveCategory.

Fields
Field Name Description
edges - [LeaveCategoryEdge] A list of edges.
nodes - [LeaveCategory] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [LeaveCategoryEdge],
  "nodes": [LeaveCategory],
  "pageInfo": PageInfo,
  "totalCount": 123
}

LeaveCategoryEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - LeaveCategory The item at the end of the edge.
Example
{
  "cursor": "abc123",
  "node": LeaveCategory
}

LeaveCategoryFilter

Fields
Input Field Description
includeDisabled - Boolean
Example
{"includeDisabled": false}

LeaveCategoryInput

Fields
Input Field Description
enabled - Boolean
id - ID!
name - String
paidLeave - Boolean
unpaidLeave - Boolean
Example
{
  "enabled": true,
  "id": "4",
  "name": "xyz789",
  "paidLeave": false,
  "unpaidLeave": false
}

LeaveChannelInput

Description

Autogenerated input type of LeaveChannel

Fields
Input Field Description
channelId - ID!
clientMutationId - String A unique identifier for the client performing the mutation.
Example
{
  "channelId": "4",
  "clientMutationId": "abc123"
}

LeaveChannelPayload

Description

Autogenerated return type of LeaveChannel

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ChannelMember
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ChannelMember
}

LeaveDayInput

Fields
Input Field Description
date - ISO8601DateTime!
minutes - Minute!
Example
{
  "date": ISO8601DateTime,
  "minutes": Minute
}

LeaveFilter

Fields
Input Field Description
_or - [LeaveFilter!]
approverIds - [ID!]
employeeIds - [ID!]
fromTime - ISO8601DateTime
leaveCategoryIds - [ID!]
leaveStates - [LeaveRequestStateEnum!]
scheduleIds - [ID!]
toTime - ISO8601DateTime
Example
{
  "_or": [LeaveFilter],
  "approverIds": ["4"],
  "employeeIds": [4],
  "fromTime": ISO8601DateTime,
  "leaveCategoryIds": [4],
  "leaveStates": ["APPROVED"],
  "scheduleIds": [4],
  "toTime": ISO8601DateTime
}

LeaveOrder

Fields
Input Field Description
column - LeaveOrderColumnsEnum!
direction - OrderOrientEnum!
Example
{"column": "FROM", "direction": "ASC"}

LeaveOrderColumnsEnum

Values
Enum Value Description

FROM

TO

Example
"FROM"

LeaveReportFilter

Fields
Input Field Description
_or - [LeaveReportFilter!]
fromTime - ISO8601DateTime
scheduleIds - [ID!]
toTime - ISO8601DateTime
Example
{
  "_or": [LeaveReportFilter],
  "fromTime": ISO8601DateTime,
  "scheduleIds": ["4"],
  "toTime": ISO8601DateTime
}

LeaveReportResult

Fields
Field Name Description
paidLeaves - Int!
unpaidLeaves - Int!
Example
{"paidLeaves": 123, "unpaidLeaves": 987}

LeaveRequest

Fields
Field Name Description
allDay - Boolean!
approvedAt - ISO8601DateTime
approver - User!
approverId - ID!
canceledAt - ISO8601DateTime
days - [LeaveRequestDay!]!
draftAt - ISO8601DateTime!
employee - User!
from - ISO8601DateTime!
id - ID!
leaveCategory - LeaveCategory!
paid - Boolean!
processedAt - ISO8601DateTime
reason - String
rejectedAt - ISO8601DateTime
requester - User!
state - LeaveRequestStateEnum!
submittedAt - ISO8601DateTime
timezone - String!
to - ISO8601DateTime!
totalDuration - Minute!
updatedAt - ISO8601DateTime!
workspace - Workspace!
Example
{
  "allDay": false,
  "approvedAt": ISO8601DateTime,
  "approver": User,
  "approverId": 4,
  "canceledAt": ISO8601DateTime,
  "days": [LeaveRequestDay],
  "draftAt": ISO8601DateTime,
  "employee": User,
  "from": ISO8601DateTime,
  "id": 4,
  "leaveCategory": LeaveCategory,
  "paid": true,
  "processedAt": ISO8601DateTime,
  "reason": "abc123",
  "rejectedAt": ISO8601DateTime,
  "requester": User,
  "state": "APPROVED",
  "submittedAt": ISO8601DateTime,
  "timezone": "abc123",
  "to": ISO8601DateTime,
  "totalDuration": Minute,
  "updatedAt": ISO8601DateTime,
  "workspace": Workspace
}

LeaveRequestConnection

Description

The connection type for LeaveRequest.

Fields
Field Name Description
edges - [LeaveRequestEdge] A list of edges.
nodes - [LeaveRequest] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [LeaveRequestEdge],
  "nodes": [LeaveRequest],
  "pageInfo": PageInfo,
  "totalCount": 123
}

LeaveRequestDay

Fields
Field Name Description
date - ISO8601DateTime!
minutes - Minute!
Example
{
  "date": ISO8601DateTime,
  "minutes": Minute
}

LeaveRequestEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - LeaveRequest The item at the end of the edge.
Example
{
  "cursor": "abc123",
  "node": LeaveRequest
}

LeaveRequestStateEnum

Values
Enum Value Description

APPROVED

CANCELED

DRAFT

PROCESSED

REJECTED

SUBMITTED

Example
"APPROVED"

LinkUserWithDeviceInput

Description

Autogenerated input type of LinkUserWithDevice

Fields
Input Field Description
appVersion - String!
buildVersion - String!
clientMutationId - String A unique identifier for the client performing the mutation.
name - String
platform - String
token - String!
Example
{
  "appVersion": "abc123",
  "buildVersion": "abc123",
  "clientMutationId": "abc123",
  "name": "abc123",
  "platform": "abc123",
  "token": "abc123"
}

LinkUserWithDevicePayload

Description

Autogenerated return type of LinkUserWithDevice

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Device
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Device
}

LoginSession

Fields
Field Name Description
id - ID!
uad - String
Example
{
  "id": "4",
  "uad": "xyz789"
}

MarkAllInboxAsReadInput

Description

Autogenerated input type of MarkAllInboxAsRead

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
Example
{"clientMutationId": "abc123"}

MarkAllInboxAsReadPayload

Description

Autogenerated return type of MarkAllInboxAsRead

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - [ChatMessage!]!
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": [ChatMessage]
}

MarkAllNotificationsAsReadInput

Description

Autogenerated input type of MarkAllNotificationsAsRead

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
Example
{"clientMutationId": "xyz789"}

MarkAllNotificationsAsReadPayload

Description

Autogenerated return type of MarkAllNotificationsAsRead

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Boolean!
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": true
}

MarkNotificationsAsReadInput

Description

Autogenerated input type of MarkNotificationsAsRead

Fields
Input Field Description
actedUpon - Boolean
clientMutationId - String A unique identifier for the client performing the mutation.
notificationIds - [ID!]!
Example
{
  "actedUpon": true,
  "clientMutationId": "abc123",
  "notificationIds": ["4"]
}

MarkNotificationsAsReadPayload

Description

Autogenerated return type of MarkNotificationsAsRead

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - [Notification!]
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": [Notification]
}

MembershipSetting

Fields
Field Name Description
emailLeaveRequest - Boolean!
emailManageAvailabilityRequest - Boolean!
emailManageDocument - Boolean!
emailManageLeaveRequest - Boolean!
emailManageMessageBoard - Boolean!
emailManageShiftOfferRequest - Boolean!
emailManageShiftSwapRequest - Boolean!
emailManageTimesheet - Boolean!
emailSchedulePosted - Boolean!
emailShiftOfferRequest - Boolean!
emailShiftReminder - Boolean!
emailShiftSwapRequest - Boolean!
emailSummary - Boolean!
emailTimesheet - Boolean!
id - ID!
maxDurationPerWeek - Minute
notificationShiftLate - Boolean!
typicalWorkDuration - Minute
Example
{
  "emailLeaveRequest": false,
  "emailManageAvailabilityRequest": false,
  "emailManageDocument": false,
  "emailManageLeaveRequest": true,
  "emailManageMessageBoard": false,
  "emailManageShiftOfferRequest": false,
  "emailManageShiftSwapRequest": false,
  "emailManageTimesheet": false,
  "emailSchedulePosted": false,
  "emailShiftOfferRequest": true,
  "emailShiftReminder": true,
  "emailShiftSwapRequest": false,
  "emailSummary": true,
  "emailTimesheet": true,
  "id": 4,
  "maxDurationPerWeek": Minute,
  "notificationShiftLate": true,
  "typicalWorkDuration": Minute
}

MessageActionInput

Description

Autogenerated input type of MessageAction

Fields
Input Field Description
actionId - String!
clientMutationId - String A unique identifier for the client performing the mutation.
messageId - ID!
value - String!
Example
{
  "actionId": "abc123",
  "clientMutationId": "xyz789",
  "messageId": "4",
  "value": "abc123"
}

MessageActionPayload

Description

Autogenerated return type of MessageAction

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - MessageActionResult
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": MessageActionResult
}

MessageActionResult

Fields
Field Name Description
blocks - JSON
message - String
responseType - MessageResponseTypeEnum!
Example
{
  "blocks": {},
  "message": "abc123",
  "responseType": "DELETE_ORIGINAL"
}

MessageAddedPayload

Description

Autogenerated return type of MessageAdded

Fields
Field Name Description
message - ChatMessage!
Example
{"message": ChatMessage}

MessageAttachmentInput

Fields
Input Field Description
attachmentKey - String!
localUrl - String For optimistic update on mobile
metadata - ChatAttachmentMetadataInput
type - ChatAttachmentEnum!
Example
{
  "attachmentKey": "xyz789",
  "localUrl": "abc123",
  "metadata": ChatAttachmentMetadataInput,
  "type": "DOCUMENT"
}

MessageBoard

Fields
Field Name Description
categories - [MessageBoardCategory!]
createdAt - ISO8601DateTime!
deletedAt - ISO8601DateTime
description - String
id - ID!
messageBoardsMembers - [MessageBoardsMember!]
name - String!
pinnedAt - ISO8601DateTime
shareWithNewHires - Boolean!
unreadMessagesCount - Int!
updatedAt - ISO8601DateTime!
workspace - Workspace!
Example
{
  "categories": [MessageBoardCategory],
  "createdAt": ISO8601DateTime,
  "deletedAt": ISO8601DateTime,
  "description": "xyz789",
  "id": 4,
  "messageBoardsMembers": [MessageBoardsMember],
  "name": "xyz789",
  "pinnedAt": ISO8601DateTime,
  "shareWithNewHires": false,
  "unreadMessagesCount": 123,
  "updatedAt": ISO8601DateTime,
  "workspace": Workspace
}

MessageBoardCategory

Fields
Field Name Description
createdAt - ISO8601DateTime!
deletedAt - ISO8601DateTime
id - ID!
messageBoard - [MessageBoard!]
name - String!
updatedAt - ISO8601DateTime!
Example
{
  "createdAt": ISO8601DateTime,
  "deletedAt": ISO8601DateTime,
  "id": 4,
  "messageBoard": [MessageBoard],
  "name": "xyz789",
  "updatedAt": ISO8601DateTime
}

MessageBoardFilter

Fields
Input Field Description
_or - [MessageBoardFilter!]
memberIds - [ID!]
pinnedBoard - Boolean
Example
{
  "_or": [MessageBoardFilter],
  "memberIds": [4],
  "pinnedBoard": true
}

MessageBoardPost

Fields
Field Name Description
acknowledgementRequired - Boolean
acknowledgements - [Acknowledgement!]
archivedAt - ISO8601DateTime
author - User!
blocks - JSON!
board - MessageBoard!
category - MessageBoardCategory
commentEnabled - Boolean
commentsCount - Int
confirmationRequiredUsers - [User!]
createdAt - ISO8601DateTime!
deletedAt - ISO8601DateTime
draftAt - ISO8601DateTime
id - ID!
images - [MessageBoardPostImage!]
messageBoardId - ID!
notifyUsers - [User!]
pinnedAt - ISO8601DateTime
publishedAt - ISO8601DateTime
reactions - [Reaction!]
readAt - ISO8601DateTime
scheduledPostAt - ISO8601DateTime
state - MessageBoardPostStateEnum!
title - String!
updatedAt - ISO8601DateTime!
Example
{
  "acknowledgementRequired": false,
  "acknowledgements": [Acknowledgement],
  "archivedAt": ISO8601DateTime,
  "author": User,
  "blocks": {},
  "board": MessageBoard,
  "category": MessageBoardCategory,
  "commentEnabled": true,
  "commentsCount": 987,
  "confirmationRequiredUsers": [User],
  "createdAt": ISO8601DateTime,
  "deletedAt": ISO8601DateTime,
  "draftAt": ISO8601DateTime,
  "id": "4",
  "images": [MessageBoardPostImage],
  "messageBoardId": "4",
  "notifyUsers": [User],
  "pinnedAt": ISO8601DateTime,
  "publishedAt": ISO8601DateTime,
  "reactions": [Reaction],
  "readAt": ISO8601DateTime,
  "scheduledPostAt": ISO8601DateTime,
  "state": "ARCHIVED",
  "title": "xyz789",
  "updatedAt": ISO8601DateTime
}

MessageBoardPostConnection

Description

The connection type for MessageBoardPost.

Fields
Field Name Description
edges - [MessageBoardPostEdge] A list of edges.
nodes - [MessageBoardPost] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [MessageBoardPostEdge],
  "nodes": [MessageBoardPost],
  "pageInfo": PageInfo,
  "totalCount": 123
}

MessageBoardPostEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - MessageBoardPost The item at the end of the edge.
Example
{
  "cursor": "abc123",
  "node": MessageBoardPost
}

MessageBoardPostFilter

Fields
Input Field Description
_or - [MessageBoardPostFilter!]
authorIds - [ID!]
categories - [ID!]
messageBoardIds - [ID!]
pinnedPost - Boolean
postDate - ISO8601DateTime
postStates - [MessageBoardPostStateEnum!]
viewedPost - Boolean
Example
{
  "_or": [MessageBoardPostFilter],
  "authorIds": ["4"],
  "categories": ["4"],
  "messageBoardIds": ["4"],
  "pinnedPost": true,
  "postDate": ISO8601DateTime,
  "postStates": ["ARCHIVED"],
  "viewedPost": true
}

MessageBoardPostImage

Fields
Field Name Description
createdAt - ISO8601DateTime!
id - ID!
image - String!
messageBoardPostId - ID!
updatedAt - ISO8601DateTime!
Example
{
  "createdAt": ISO8601DateTime,
  "id": "4",
  "image": "abc123",
  "messageBoardPostId": "4",
  "updatedAt": ISO8601DateTime
}

MessageBoardPostImageInput

Fields
Input Field Description
imageId - ID
imageKey - String
Example
{"imageId": 4, "imageKey": "abc123"}

MessageBoardPostStateEnum

Values
Enum Value Description

ARCHIVED

DRAFT

PUBLISHED

Example
"ARCHIVED"

MessageBoardsMember

Fields
Field Name Description
createdAt - ISO8601DateTime!
deletedAt - ISO8601DateTime
id - ID!
messageBoard - MessageBoard!
role - MessageBoardsMemberRoleEnum!
updatedAt - ISO8601DateTime!
user - User!
Example
{
  "createdAt": ISO8601DateTime,
  "deletedAt": ISO8601DateTime,
  "id": "4",
  "messageBoard": MessageBoard,
  "role": "ADMIN",
  "updatedAt": ISO8601DateTime,
  "user": User
}

MessageBoardsMemberInput

Fields
Input Field Description
_destroy - Boolean
messageBoardsMemberId - ID
role - MessageBoardsMemberRoleEnum!
userId - ID
Example
{
  "_destroy": true,
  "messageBoardsMemberId": "4",
  "role": "ADMIN",
  "userId": "4"
}

MessageBoardsMemberRoleEnum

Values
Enum Value Description

ADMIN

READ

WRITE

Example
"ADMIN"

MessageDeletedPayload

Description

Autogenerated return type of MessageDeleted

Fields
Field Name Description
message - ChatMessage!
Example
{"message": ChatMessage}

MessageResponseTypeEnum

Values
Enum Value Description

DELETE_ORIGINAL

EPHEMERAL

REPLACE_ORIGINAL

Example
"DELETE_ORIGINAL"

MessageUpdatedPayload

Description

Autogenerated return type of MessageUpdated

Fields
Field Name Description
message - ChatMessage!
Example
{"message": ChatMessage}

MeteredUsage

Fields
Field Name Description
createdAt - ISO8601DateTime!
id - ID!
type - String!
updatedAt - ISO8601DateTime!
usageCount - Float!
Example
{
  "createdAt": ISO8601DateTime,
  "id": 4,
  "type": "xyz789",
  "updatedAt": ISO8601DateTime,
  "usageCount": 123.45
}

Minute

Description

Minute, used for all kind of duration

Example
Minute

MutationError

Fields
Field Name Description
attribute - String
fullMessage - String
type - String!
Example
{
  "attribute": "abc123",
  "fullMessage": "xyz789",
  "type": "xyz789"
}

Notification

Fields
Field Name Description
actedUponAt - ISO8601DateTime
createdAt - ISO8601DateTime!
id - ID!
message - String
notificationType - NotificationTypeEnum!
readAt - ISO8601DateTime
recipient - User!
recipientId - ID!
referenceObject - ReferenceObject
sender - User!
senderId - ID!
title - String
updatedAt - ISO8601DateTime!
workspaceId - ID!
Example
{
  "actedUponAt": ISO8601DateTime,
  "createdAt": ISO8601DateTime,
  "id": 4,
  "message": "abc123",
  "notificationType": "DOCUMENT_ACKNOWLEDGED",
  "readAt": ISO8601DateTime,
  "recipient": User,
  "recipientId": "4",
  "referenceObject": Document,
  "sender": User,
  "senderId": 4,
  "title": "xyz789",
  "updatedAt": ISO8601DateTime,
  "workspaceId": "4"
}

NotificationAddedPayload

Description

Autogenerated return type of NotificationAdded

Fields
Field Name Description
notification - Notification!
Example
{"notification": Notification}

NotificationConnection

Description

The connection type for Notification.

Fields
Field Name Description
edges - [NotificationEdge] A list of edges.
nodes - [Notification] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [NotificationEdge],
  "nodes": [Notification],
  "pageInfo": PageInfo,
  "totalCount": 123
}

NotificationEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - Notification The item at the end of the edge.
Example
{
  "cursor": "xyz789",
  "node": Notification
}

NotificationFilter

Fields
Input Field Description
_or - [NotificationFilter!]
fromTime - ISO8601DateTime
toTime - ISO8601DateTime
type - NotificationTypeEnum
unread - Boolean
Example
{
  "_or": [NotificationFilter],
  "fromTime": ISO8601DateTime,
  "toTime": ISO8601DateTime,
  "type": "DOCUMENT_ACKNOWLEDGED",
  "unread": false
}

NotificationTypeEnum

Values
Enum Value Description

DOCUMENT_ACKNOWLEDGED

LEAVE_SUBMITTED

MESSAGE_BOARD_POST_ACKNOWLEDGED

NEW_FEATURES

SHIFT_CLAIM_REQUEST_CREATED

Example
"DOCUMENT_ACKNOWLEDGED"

OfferShiftInput

Description

Autogenerated input type of OfferShift

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
receiverIds - [ID!]!
shiftId - ID!
Example
{
  "clientMutationId": "abc123",
  "receiverIds": ["4"],
  "shiftId": "4"
}

OfferShiftPayload

Description

Autogenerated return type of OfferShift

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Shift
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Shift
}

OrderOrientEnum

Values
Enum Value Description

ASC

DESC

Example
"ASC"

OwnerInfoInput

Fields
Input Field Description
email - String!
name - String!
phoneNumber - String
Example
{
  "email": "xyz789",
  "name": "abc123",
  "phoneNumber": "abc123"
}

PageInfo

Description

Information about pagination in a connection.

Fields
Field Name Description
endCursor - String When paginating forwards, the cursor to continue.
hasNextPage - Boolean! When paginating forwards, are there more items?
hasPreviousPage - Boolean! When paginating backwards, are there more items?
startCursor - String When paginating backwards, the cursor to continue.
Example
{
  "endCursor": "abc123",
  "hasNextPage": false,
  "hasPreviousPage": true,
  "startCursor": "abc123"
}

PayRun

Fields
Field Name Description
id - ID!
Example
{"id": "4"}

PayRunConnection

Description

The connection type for PayRun.

Fields
Field Name Description
edges - [PayRunEdge] A list of edges.
nodes - [PayRun] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [PayRunEdge],
  "nodes": [PayRun],
  "pageInfo": PageInfo,
  "totalCount": 123
}

PayRunEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - PayRun The item at the end of the edge.
Example
{
  "cursor": "abc123",
  "node": PayRun
}

PayRunFilter

Fields
Input Field Description
_or - [PayRunFilter!]
fromTime - ISO8601DateTime
payCalendarIds - [ID!]
toTime - ISO8601DateTime
Example
{
  "_or": [PayRunFilter],
  "fromTime": ISO8601DateTime,
  "payCalendarIds": [4],
  "toTime": ISO8601DateTime
}

Payslip

Fields
Field Name Description
id - ID!
Example
{"id": 4}

PayslipConnection

Description

The connection type for Payslip.

Fields
Field Name Description
edges - [PayslipEdge] A list of edges.
nodes - [Payslip] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [PayslipEdge],
  "nodes": [Payslip],
  "pageInfo": PageInfo,
  "totalCount": 123
}

PayslipEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - Payslip The item at the end of the edge.
Example
{
  "cursor": "xyz789",
  "node": Payslip
}

PayslipFilter

Fields
Input Field Description
_or - [PayslipFilter!]
Example
{"_or": [PayslipFilter]}

PayslipOrder

Fields
Input Field Description
column - PayslipOrderColumnsEnum!
direction - OrderOrientEnum!
Example
{"column": "CREATED_AT", "direction": "ASC"}

PayslipOrderColumnsEnum

Values
Enum Value Description

CREATED_AT

EMPLOYEE_NAME

Example
"CREATED_AT"

PinDocumentInput

Description

Autogenerated input type of PinDocument

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
documentId - ID!
Example
{
  "clientMutationId": "abc123",
  "documentId": 4
}

PinDocumentPayload

Description

Autogenerated return type of PinDocument

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Document
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Document
}

PinMessageBoardInput

Description

Autogenerated input type of PinMessageBoard

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
messageBoardId - ID!
Example
{
  "clientMutationId": "xyz789",
  "messageBoardId": "4"
}

PinMessageBoardPayload

Description

Autogenerated return type of PinMessageBoard

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - MessageBoard
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": MessageBoard
}

PinMessageBoardPostInput

Description

Autogenerated input type of PinMessageBoardPost

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
messageBoardPostId - ID!
Example
{
  "clientMutationId": "abc123",
  "messageBoardPostId": "4"
}

PinMessageBoardPostPayload

Description

Autogenerated return type of PinMessageBoardPost

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - MessageBoardPost
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": MessageBoardPost
}

PlanIntervalEnum

Values
Enum Value Description

DAY

MONTH

WEEK

YEAR

Example
"DAY"

PlatformEnum

Values
Enum Value Description

MOBILE

WEB

Example
"MOBILE"

PolicyMatrixItem

Fields
Field Name Description
evaluator - String!
id - String!
policy - String!
Example
{
  "evaluator": "xyz789",
  "id": "abc123",
  "policy": "abc123"
}

PublishShift

Values
Enum Value Description

NOTIFY_AND_REQUIRE_CONFIRMATION

NOTIFY_ONLY

NO_NOTIFY

Example
"NOTIFY_AND_REQUIRE_CONFIRMATION"

PublishShiftsInput

Description

Autogenerated input type of PublishShifts

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
publishShiftType - PublishShift
shiftIds - [ID!]!
Example
{
  "clientMutationId": "xyz789",
  "publishShiftType": "NOTIFY_AND_REQUIRE_CONFIRMATION",
  "shiftIds": ["4"]
}

PublishShiftsPayload

Description

Autogenerated return type of PublishShifts

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - [Shift!]
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": [Shift]
}

Reactable

Description

Properties of Reactable

Types
Union Types

Comment

MessageBoardPost

Example
Comment

ReactableTypeEnum

Values
Enum Value Description

COMMENT

MESSAGE_BOARD_POST

Example
"COMMENT"

Reaction

Fields
Field Name Description
createdAt - ISO8601DateTime!
creator - User!
emoji - String!
id - ID!
reactable - Reactable!
updatedAt - ISO8601DateTime!
Example
{
  "createdAt": ISO8601DateTime,
  "creator": User,
  "emoji": "abc123",
  "id": 4,
  "reactable": Comment,
  "updatedAt": ISO8601DateTime
}

ReadInboxMessageInput

Description

Autogenerated input type of ReadInboxMessage

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
messageId - ID!
Example
{
  "clientMutationId": "abc123",
  "messageId": 4
}

ReadInboxMessagePayload

Description

Autogenerated return type of ReadInboxMessage

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ChatMessage
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ChatMessage
}

ReassignShiftInput

Description

Autogenerated input type of ReassignShift

Fields
Input Field Description
assigneeId - ID
breakDuration - Minute
clientMutationId - String A unique identifier for the client performing the mutation.
color - String
endTime - ISO8601DateTime
endType - ShiftEndTypeInputEnum
groupId - ID
jobSiteId - ID
note - String
requireClaimApproval - Boolean
scheduleId - ID
shiftId - ID!
startTime - ISO8601DateTime
timezone - String
Example
{
  "assigneeId": 4,
  "breakDuration": Minute,
  "clientMutationId": "abc123",
  "color": "xyz789",
  "endTime": ISO8601DateTime,
  "endType": "BUSINESS_DECLINE",
  "groupId": 4,
  "jobSiteId": 4,
  "note": "abc123",
  "requireClaimApproval": true,
  "scheduleId": "4",
  "shiftId": 4,
  "startTime": ISO8601DateTime,
  "timezone": "xyz789"
}

ReassignShiftPayload

Description

Autogenerated return type of ReassignShift

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Shift
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Shift
}

Recurrence

Fields
Field Name Description
id - ID!
rrule - String!
timezone - String!
Example
{
  "id": 4,
  "rrule": "abc123",
  "timezone": "abc123"
}

RecurrenceEditTypeEnum

Values
Enum Value Description

ALL

THIS

THIS_AND_FOLLOWING

Example
"ALL"

RedeemCodeInput

Description

Autogenerated input type of RedeemCode

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
code - String!
workspaceId - ID!
Example
{
  "clientMutationId": "xyz789",
  "code": "xyz789",
  "workspaceId": 4
}

RedeemCodePayload

Description

Autogenerated return type of RedeemCode

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Redemption
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Redemption
}

Redemption

Fields
Field Name Description
id - ID!
redeemedAt - ISO8601DateTime
Example
{"id": 4, "redeemedAt": ISO8601DateTime}

ReferenceObject

Description

Properties of ReferenceObject

Example
Document

ReferenceObjectTypeEnum

Values
Enum Value Description

LEAVE_REQUEST

SHIFT

TIME_CARD

Example
"LEAVE_REQUEST"

RefuseShiftOfferRequestInput

Description

Autogenerated input type of RefuseShiftOfferRequest

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftOfferRequestId - ID!
Example
{
  "clientMutationId": "xyz789",
  "shiftOfferRequestId": 4
}

RefuseShiftOfferRequestPayload

Description

Autogenerated return type of RefuseShiftOfferRequest

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ShiftOfferRequest
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ShiftOfferRequest
}

RefuseShiftSwapRequestInput

Description

Autogenerated input type of RefuseShiftSwapRequest

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftSwapRequestId - ID!
Example
{
  "clientMutationId": "xyz789",
  "shiftSwapRequestId": "4"
}

RefuseShiftSwapRequestPayload

Description

Autogenerated return type of RefuseShiftSwapRequest

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ShiftSwapRequest
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": ShiftSwapRequest
}

RejectJoinRequestInput

Description

Autogenerated input type of RejectJoinRequest

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
joinRequestId - ID!
Example
{
  "clientMutationId": "abc123",
  "joinRequestId": "4"
}

RejectJoinRequestPayload

Description

Autogenerated return type of RejectJoinRequest

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - JoinRequest
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": JoinRequest
}

RejectLeaveInput

Description

Autogenerated input type of RejectLeave

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
leaveId - ID!
Example
{"clientMutationId": "abc123", "leaveId": 4}

RejectLeavePayload

Description

Autogenerated return type of RejectLeave

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - LeaveRequest
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": LeaveRequest
}

RejectShiftClaimRequestInput

Description

Autogenerated input type of RejectShiftClaimRequest

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftClaimRequestId - ID!
Example
{
  "clientMutationId": "xyz789",
  "shiftClaimRequestId": 4
}

RejectShiftClaimRequestPayload

Description

Autogenerated return type of RejectShiftClaimRequest

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ShiftClaimRequest
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ShiftClaimRequest
}

RejectShiftInput

Description

Autogenerated input type of RejectShift

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftId - ID!
Example
{"clientMutationId": "abc123", "shiftId": 4}

RejectShiftPayload

Description

Autogenerated return type of RejectShift

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Shift
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Shift
}

RejectTimesheetInput

Description

Autogenerated input type of RejectTimesheet

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
timesheetId - ID!
Example
{
  "clientMutationId": "abc123",
  "timesheetId": 4
}

RejectTimesheetPayload

Description

Autogenerated return type of RejectTimesheet

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Timesheet
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Timesheet
}

RequestKioskLoginSessionInput

Description

Autogenerated input type of RequestKioskLoginSession

Fields
Input Field Description
authenticationMethod - AuthenticationMethod!
authenticationValue - String!
clientMutationId - String A unique identifier for the client performing the mutation.
uad - String
Example
{
  "authenticationMethod": "EMAIL",
  "authenticationValue": "xyz789",
  "clientMutationId": "xyz789",
  "uad": "abc123"
}

RequestKioskLoginSessionPayload

Description

Autogenerated return type of RequestKioskLoginSession

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - LoginSession
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": LoginSession
}

RequestLoginSessionInput

Description

Autogenerated input type of RequestLoginSession

Fields
Input Field Description
authenticationMethod - AuthenticationMethod!
authenticationValue - String!
clientMutationId - String A unique identifier for the client performing the mutation.
source - PlatformEnum
uad - String
Example
{
  "authenticationMethod": "EMAIL",
  "authenticationValue": "xyz789",
  "clientMutationId": "xyz789",
  "source": "MOBILE",
  "uad": "abc123"
}

RequestLoginSessionPayload

Description

Autogenerated return type of RequestLoginSession

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - LoginSession
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": LoginSession
}

RequestServiceTokenInput

Description

Autogenerated input type of RequestServiceToken

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
serviceId - SupportedServiceEnum!
Example
{
  "clientMutationId": "xyz789",
  "serviceId": "KIOSK"
}

RequestServiceTokenPayload

Description

Autogenerated return type of RequestServiceToken

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - String
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": "xyz789"
}

RequestToDestroyUserInput

Description

Autogenerated input type of RequestToDestroyUser

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
note - String
reasons - [String!]
Example
{
  "clientMutationId": "xyz789",
  "note": "xyz789",
  "reasons": ["xyz789"]
}

RequestToDestroyUserPayload

Description

Autogenerated return type of RequestToDestroyUser

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Boolean
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": true
}

RestoreDocumentInput

Description

Autogenerated input type of RestoreDocument

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
documentId - ID!
Example
{
  "clientMutationId": "abc123",
  "documentId": 4
}

RestoreDocumentPayload

Description

Autogenerated return type of RestoreDocument

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Document
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Document
}

RestoreGroupInput

Description

Autogenerated input type of RestoreGroup

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
groupId - ID!
Example
{"clientMutationId": "abc123", "groupId": 4}

RestoreGroupPayload

Description

Autogenerated return type of RestoreGroup

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Group
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Group
}

ResubmitLeaveInput

Description

Autogenerated input type of ResubmitLeave

Fields
Input Field Description
allDay - Boolean
approverId - ID
clientMutationId - String A unique identifier for the client performing the mutation.
days - [LeaveDayInput!]
employeeId - ID
from - ISO8601DateTime
leaveCategoryId - ID
leaveId - ID!
paid - Boolean
reason - String
timezone - String
to - ISO8601DateTime
Example
{
  "allDay": true,
  "approverId": 4,
  "clientMutationId": "xyz789",
  "days": [LeaveDayInput],
  "employeeId": "4",
  "from": ISO8601DateTime,
  "leaveCategoryId": 4,
  "leaveId": "4",
  "paid": false,
  "reason": "abc123",
  "timezone": "xyz789",
  "to": ISO8601DateTime
}

ResubmitLeavePayload

Description

Autogenerated return type of ResubmitLeave

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - LeaveRequest
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": LeaveRequest
}

ResubmitTimesheetInput

Description

Autogenerated input type of ResubmitTimesheet

Fields
Input Field Description
breaks - [TimesheetBreakInput!]
clientMutationId - String A unique identifier for the client performing the mutation.
employeeId - ID
from - ISO8601DateTime
groupId - ID
scheduleId - ID
timesheetId - ID!
timezone - String
to - ISO8601DateTime
Example
{
  "breaks": [TimesheetBreakInput],
  "clientMutationId": "xyz789",
  "employeeId": "4",
  "from": ISO8601DateTime,
  "groupId": 4,
  "scheduleId": "4",
  "timesheetId": "4",
  "timezone": "xyz789",
  "to": ISO8601DateTime
}

ResubmitTimesheetPayload

Description

Autogenerated return type of ResubmitTimesheet

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Timesheet
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Timesheet
}

Role

Fields
Field Name Description
code - RoleCodeEnum!
description - String
id - ID!
name - String!
rolesUsers - [RolesUser!]!
Example
{
  "code": "CONTRACTOR",
  "description": "xyz789",
  "id": 4,
  "name": "xyz789",
  "rolesUsers": [RolesUser]
}

RoleCodeEnum

Values
Enum Value Description

CONTRACTOR

EMPLOYEE

OWNER

PAYROLL_ADMIN

SCHEDULE_MANAGER

Example
"CONTRACTOR"

RoleConnection

Description

The connection type for Role.

Fields
Field Name Description
edges - [RoleEdge] A list of edges.
nodes - [Role] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [RoleEdge],
  "nodes": [Role],
  "pageInfo": PageInfo,
  "totalCount": 123
}

RoleEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - Role The item at the end of the edge.
Example
{
  "cursor": "xyz789",
  "node": Role
}

RoleManagingSchedule

Fields
Field Name Description
manageJobSites - Boolean!
manageMembers - Boolean!
scheduleId - String!
Example
{
  "manageJobSites": true,
  "manageMembers": false,
  "scheduleId": "xyz789"
}

RoleManagingScheduleInput

Fields
Input Field Description
manageJobSites - Boolean
manageMembers - Boolean
scheduleId - String!
Example
{
  "manageJobSites": true,
  "manageMembers": true,
  "scheduleId": "abc123"
}

RoleMetaData

Fields
Field Name Description
managingSchedules - [RoleManagingSchedule!]
scheduleIds - [String!] Use managing_schedules instead. From 1.1.25
schedules - [Schedule!]
Example
{
  "managingSchedules": [RoleManagingSchedule],
  "scheduleIds": ["xyz789"],
  "schedules": [Schedule]
}

RoleUserInput

Fields
Input Field Description
id - ID!
metaData - RoleUserMetadataInput
Example
{"id": 4, "metaData": RoleUserMetadataInput}

RoleUserMetadataInput

Fields
Input Field Description
managingSchedules - [RoleManagingScheduleInput!]
Example
{"managingSchedules": [RoleManagingScheduleInput]}

RolesUser

Fields
Field Name Description
id - ID!
metaData - RoleMetaData
role - Role!
user - User!
Example
{
  "id": "4",
  "metaData": RoleMetaData,
  "role": Role,
  "user": User
}

RoundTimesheetInput

Description

Autogenerated input type of RoundTimesheet

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
timesheetId - ID!
Example
{
  "clientMutationId": "abc123",
  "timesheetId": "4"
}

RoundTimesheetPayload

Description

Autogenerated return type of RoundTimesheet

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Timesheet
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Timesheet
}

SaveTrialPersonalizationInput

Description

Autogenerated input type of SaveTrialPersonalization

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
companySize - String!
industry - String!
prospectId - ID!
purposes - String
workspaceId - ID!
Example
{
  "clientMutationId": "xyz789",
  "companySize": "abc123",
  "industry": "abc123",
  "prospectId": "4",
  "purposes": "abc123",
  "workspaceId": 4
}

SaveTrialPersonalizationPayload

Description

Autogenerated return type of SaveTrialPersonalization

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ID
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": 4
}

Schedule

Fields
Field Name Description
color - String!
createdAt - ISO8601DateTime!
default - Boolean!
defaultJobSite - JobSite
id - ID!
name - String!
schedulesUsers - [ScheduleUser!]!
timezone - String!
updatedAt - ISO8601DateTime!
users - [User!]! Use schedule_users instead. From 1.1.25
Example
{
  "color": "xyz789",
  "createdAt": ISO8601DateTime,
  "default": true,
  "defaultJobSite": JobSite,
  "id": "4",
  "name": "abc123",
  "schedulesUsers": [ScheduleUser],
  "timezone": "xyz789",
  "updatedAt": ISO8601DateTime,
  "users": [User]
}

ScheduleConnection

Description

The connection type for Schedule.

Fields
Field Name Description
edges - [ScheduleEdge] A list of edges.
nodes - [Schedule] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [ScheduleEdge],
  "nodes": [Schedule],
  "pageInfo": PageInfo,
  "totalCount": 987
}

ScheduleData

Fields
Field Name Description
availabilities - [Availability!]!
groups - [Group!]!
jobSites - [JobSite!]!
leaveRequests - [LeaveRequest!]!
shifts - [Shift!]!
Example
{
  "availabilities": [Availability],
  "groups": [Group],
  "jobSites": [JobSite],
  "leaveRequests": [LeaveRequest],
  "shifts": [Shift]
}

ScheduleDataFilter

Fields
Input Field Description
fromTime - ISO8601DateTime!
scheduleIds - [ID!]!
toTime - ISO8601DateTime!
Example
{
  "fromTime": ISO8601DateTime,
  "scheduleIds": [4],
  "toTime": ISO8601DateTime
}

ScheduleEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - Schedule The item at the end of the edge.
Example
{
  "cursor": "abc123",
  "node": Schedule
}

ScheduleFilter

Fields
Input Field Description
scheduleIds - [ID!]
userIds - [ID!]
Example
{
  "scheduleIds": ["4"],
  "userIds": ["4"]
}

SchedulePhoto

Fields
Field Name Description
from - ISO8601DateTime!
id - ID!
photo - String!
schedule - Schedule
timezone - String!
to - ISO8601DateTime!
workspace - Workspace!
Example
{
  "from": ISO8601DateTime,
  "id": 4,
  "photo": "xyz789",
  "schedule": Schedule,
  "timezone": "xyz789",
  "to": ISO8601DateTime,
  "workspace": Workspace
}

SchedulePhotoConnection

Description

The connection type for SchedulePhoto.

Fields
Field Name Description
edges - [SchedulePhotoEdge] A list of edges.
nodes - [SchedulePhoto] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [SchedulePhotoEdge],
  "nodes": [SchedulePhoto],
  "pageInfo": PageInfo,
  "totalCount": 987
}

SchedulePhotoEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - SchedulePhoto The item at the end of the edge.
Example
{
  "cursor": "abc123",
  "node": SchedulePhoto
}

SchedulePhotoFilter

Fields
Input Field Description
fromTime - ISO8601DateTime
scheduleId - ID
toTime - ISO8601DateTime
Example
{
  "fromTime": ISO8601DateTime,
  "scheduleId": 4,
  "toTime": ISO8601DateTime
}

ScheduleUser

Fields
Field Name Description
id - ID!
rank - Int!
user - User!
Example
{
  "id": "4",
  "rank": 123,
  "user": User
}

ScheduledActualPerDay

Fields
Field Name Description
actual - Minute!
date - ISO8601DateTime!
scheduled - Minute!
Example
{
  "actual": Minute,
  "date": ISO8601DateTime,
  "scheduled": Minute
}

ScheduledActualReportFilter

Fields
Input Field Description
fromTime - ISO8601DateTime!
scheduleIds - [ID!]
toTime - ISO8601DateTime!
Example
{
  "fromTime": ISO8601DateTime,
  "scheduleIds": ["4"],
  "toTime": ISO8601DateTime
}

ScheduledActualResponse

Fields
Field Name Description
days - [ScheduledActualPerDay!]!
user - User
Example
{
  "days": [ScheduledActualPerDay],
  "user": User
}

ScheduledStaffingReportFilter

Fields
Input Field Description
fromTime - ISO8601DateTime!
scheduleIds - [ID!]
toTime - ISO8601DateTime!
Example
{
  "fromTime": ISO8601DateTime,
  "scheduleIds": ["4"],
  "toTime": ISO8601DateTime
}

SchedulesUserInput

Fields
Input Field Description
_destroy - Boolean
id - ID
rank - Int
userId - ID!
Example
{
  "_destroy": true,
  "id": "4",
  "rank": 987,
  "userId": 4
}

Shift

Fields
Field Name Description
approvedTargetedShiftSwapRequests - [ShiftSwapRequest!]!
assignee - User
attachments - [ShiftAttachment!]
breakDuration - Minute!
checklistAssignments - [ChecklistAssignment!]
client - Client
color - String
endTime - ISO8601DateTime!
endType - ShiftEndTypeEnum
group - Group
id - ID!
jobSite - JobSite
note - String
recurrence - Recurrence
requester - User!
requireClaimApproval - Boolean!
schedule - Schedule!
shiftBatchId - ID
shiftClaimRequests - [ShiftClaimRequest!]!
shiftPartners - [Shift!]
shiftRequests - [ShiftRequest!]!
startTime - ISO8601DateTime!
state - ShiftStateEnum!
systemNote - String
timeCard - TimeCard
timezone - String!
title - String
updatedAt - ISO8601DateTime!
workspace - Workspace!
Example
{
  "approvedTargetedShiftSwapRequests": [ShiftSwapRequest],
  "assignee": User,
  "attachments": [ShiftAttachment],
  "breakDuration": Minute,
  "checklistAssignments": [ChecklistAssignment],
  "client": Client,
  "color": "xyz789",
  "endTime": ISO8601DateTime,
  "endType": "BUSINESS_DECLINE",
  "group": Group,
  "id": "4",
  "jobSite": JobSite,
  "note": "xyz789",
  "recurrence": Recurrence,
  "requester": User,
  "requireClaimApproval": true,
  "schedule": Schedule,
  "shiftBatchId": 4,
  "shiftClaimRequests": [ShiftClaimRequest],
  "shiftPartners": [Shift],
  "shiftRequests": [ShiftRequest],
  "startTime": ISO8601DateTime,
  "state": "ABSENT",
  "systemNote": "xyz789",
  "timeCard": TimeCard,
  "timezone": "xyz789",
  "title": "abc123",
  "updatedAt": ISO8601DateTime,
  "workspace": Workspace
}

ShiftAttachment

Fields
Field Name Description
attachment - String
createdAt - ISO8601DateTime!
id - ID!
jobSiteAttachment - JobSiteAttachment
shiftId - ID!
updatedAt - ISO8601DateTime!
Example
{
  "attachment": "abc123",
  "createdAt": ISO8601DateTime,
  "id": "4",
  "jobSiteAttachment": JobSiteAttachment,
  "shiftId": 4,
  "updatedAt": ISO8601DateTime
}

ShiftAttachmentInput

Fields
Input Field Description
attachmentKey - String
jobSiteAttachmentId - String
Example
{
  "attachmentKey": "abc123",
  "jobSiteAttachmentId": "xyz789"
}

ShiftBatch

Fields
Field Name Description
id - ID!
requester - User!
shifts - [Shift!]
workspace - Workspace!
Example
{
  "id": 4,
  "requester": User,
  "shifts": [Shift],
  "workspace": Workspace
}

ShiftBatchAssigneeInput

Fields
Input Field Description
_destroy - Boolean
addGroupToAssignee - Boolean
assigneeId - ID
groupId - ID
id - ID
requireClaimApproval - Boolean
Example
{
  "_destroy": false,
  "addGroupToAssignee": true,
  "assigneeId": "4",
  "groupId": 4,
  "id": "4",
  "requireClaimApproval": true
}

ShiftClaimRequest

Fields
Field Name Description
createdAt - ISO8601DateTime!
id - ID!
requester - User!
shift - Shift!
state - ShiftClaimRequestStateEnum!
Example
{
  "createdAt": ISO8601DateTime,
  "id": 4,
  "requester": User,
  "shift": Shift,
  "state": "APPROVED"
}

ShiftClaimRequestConnection

Description

The connection type for ShiftClaimRequest.

Fields
Field Name Description
edges - [ShiftClaimRequestEdge] A list of edges.
nodes - [ShiftClaimRequest] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [ShiftClaimRequestEdge],
  "nodes": [ShiftClaimRequest],
  "pageInfo": PageInfo,
  "totalCount": 987
}

ShiftClaimRequestEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - ShiftClaimRequest The item at the end of the edge.
Example
{
  "cursor": "xyz789",
  "node": ShiftClaimRequest
}

ShiftClaimRequestFilter

Fields
Input Field Description
_or - [ShiftClaimRequestFilter!]
requesterIds - [ID!]
scheduleIds - [ID!]
shiftClaimRequestStates - [ShiftClaimRequestStateEnum!]
Example
{
  "_or": [ShiftClaimRequestFilter],
  "requesterIds": ["4"],
  "scheduleIds": ["4"],
  "shiftClaimRequestStates": ["APPROVED"]
}

ShiftClaimRequestStateEnum

Values
Enum Value Description

APPROVED

CANCELED

PENDING

REJECTED

Example
"APPROVED"

ShiftConnection

Description

The connection type for Shift.

Fields
Field Name Description
edges - [ShiftEdge] A list of edges.
nodes - [Shift] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [ShiftEdge],
  "nodes": [Shift],
  "pageInfo": PageInfo,
  "totalCount": 123
}

ShiftEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - Shift The item at the end of the edge.
Example
{
  "cursor": "abc123",
  "node": Shift
}

ShiftEndTypeEnum

Values
Enum Value Description

BUSINESS_DECLINE

CLOSE

Example
"BUSINESS_DECLINE"

ShiftEndTypeInputEnum

Values
Enum Value Description

BUSINESS_DECLINE

CLOSE

NONE

Example
"BUSINESS_DECLINE"

ShiftFilter

Fields
Input Field Description
_or - [ShiftFilter!]
fromTime - ISO8601DateTime
groupIds - [ID!]
scheduleIds - [ID!]
shiftStates - [ShiftStateEnum!]
toTime - ISO8601DateTime
userIds - [ID!]
Example
{
  "_or": [ShiftFilter],
  "fromTime": ISO8601DateTime,
  "groupIds": [4],
  "scheduleIds": [4],
  "shiftStates": ["ABSENT"],
  "toTime": ISO8601DateTime,
  "userIds": [4]
}

ShiftOffer

Fields
Field Name Description
createdAt - ISO8601DateTime!
id - ID!
requester - User!
shift - Shift!
shiftOfferRequests - [ShiftOfferRequest!]!
state - ShiftRequestStateEnum!
workspace - Workspace!
Example
{
  "createdAt": ISO8601DateTime,
  "id": 4,
  "requester": User,
  "shift": Shift,
  "shiftOfferRequests": [ShiftOfferRequest],
  "state": "ACCEPTED",
  "workspace": Workspace
}

ShiftOfferRequest

Fields
Field Name Description
acceptedAt - ISO8601DateTime
approvedAt - ISO8601DateTime
approver - User
createdAt - ISO8601DateTime!
id - ID!
receiver - User!
refusedAt - ISO8601DateTime
rejectedAt - ISO8601DateTime
shiftOffer - ShiftOffer!
state - ShiftRequestStateEnum!
workspace - Workspace!
Example
{
  "acceptedAt": ISO8601DateTime,
  "approvedAt": ISO8601DateTime,
  "approver": User,
  "createdAt": ISO8601DateTime,
  "id": "4",
  "receiver": User,
  "refusedAt": ISO8601DateTime,
  "rejectedAt": ISO8601DateTime,
  "shiftOffer": ShiftOffer,
  "state": "ACCEPTED",
  "workspace": Workspace
}

ShiftRequest

Fields
Field Name Description
createdAt - ISO8601DateTime!
id - ID!
requester - User!
shift - Shift!
shiftOfferRequests - [ShiftOfferRequest!]!
shiftSwapRequests - [ShiftSwapRequest!]!
state - ShiftRequestStateEnum!
type - ShiftRequestTypeEnum!
workspace - Workspace!
Example
{
  "createdAt": ISO8601DateTime,
  "id": 4,
  "requester": User,
  "shift": Shift,
  "shiftOfferRequests": [ShiftOfferRequest],
  "shiftSwapRequests": [ShiftSwapRequest],
  "state": "ACCEPTED",
  "type": "SHIFT_OFFER",
  "workspace": Workspace
}

ShiftRequestConnection

Description

The connection type for ShiftRequest.

Fields
Field Name Description
edges - [ShiftRequestEdge] A list of edges.
nodes - [ShiftRequest] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [ShiftRequestEdge],
  "nodes": [ShiftRequest],
  "pageInfo": PageInfo,
  "totalCount": 123
}

ShiftRequestEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - ShiftRequest The item at the end of the edge.
Example
{
  "cursor": "abc123",
  "node": ShiftRequest
}

ShiftRequestFilter

Fields
Input Field Description
_or - [ShiftRequestFilter!]
approverIds - [ID!]
creatorIds - [ID!]
excludeSelfCreated - Boolean
receiverIds - [ID!]
scheduleIds - [ID!]
shiftRequestStates - [ShiftRequestStateEnum!]
Example
{
  "_or": [ShiftRequestFilter],
  "approverIds": ["4"],
  "creatorIds": ["4"],
  "excludeSelfCreated": false,
  "receiverIds": ["4"],
  "scheduleIds": [4],
  "shiftRequestStates": ["ACCEPTED"]
}

ShiftRequestStateEnum

Values
Enum Value Description

ACCEPTED

APPROVED

CANCELED

PENDING

REFUSED

REJECTED

Example
"ACCEPTED"

ShiftRequestTypeEnum

Values
Enum Value Description

SHIFT_OFFER

SHIFT_SWAP

Example
"SHIFT_OFFER"

ShiftStateEnum

Values
Enum Value Description

ABSENT

ASSIGNED

CONFIRMED

DRAFT

FINISHED

LATE

ON_BREAK

ON_SHIFT

OPENING

PROCESSED

READY

REJECTED

UNFINISHED

Example
"ABSENT"

ShiftSwap

Fields
Field Name Description
createdAt - ISO8601DateTime!
id - ID!
requester - User!
shift - Shift!
shiftSwapRequests - [ShiftSwapRequest!]!
state - ShiftRequestStateEnum!
workspace - Workspace!
Example
{
  "createdAt": ISO8601DateTime,
  "id": "4",
  "requester": User,
  "shift": Shift,
  "shiftSwapRequests": [ShiftSwapRequest],
  "state": "ACCEPTED",
  "workspace": Workspace
}

ShiftSwapRequest

Fields
Field Name Description
acceptedAt - ISO8601DateTime
approvedAt - ISO8601DateTime
approver - User
createdAt - ISO8601DateTime!
id - ID!
receiver - User!
refusedAt - ISO8601DateTime
rejectedAt - ISO8601DateTime
shiftSwap - ShiftSwap!
state - ShiftRequestStateEnum!
targetShift - Shift!
workspace - Workspace!
Example
{
  "acceptedAt": ISO8601DateTime,
  "approvedAt": ISO8601DateTime,
  "approver": User,
  "createdAt": ISO8601DateTime,
  "id": 4,
  "receiver": User,
  "refusedAt": ISO8601DateTime,
  "rejectedAt": ISO8601DateTime,
  "shiftSwap": ShiftSwap,
  "state": "ACCEPTED",
  "targetShift": Shift,
  "workspace": Workspace
}

ShiftTemplate

Fields
Field Name Description
breakDuration - Minute!
endTime - ISO8601DateTime!
endType - ShiftEndTypeEnum
group - Group
id - ID!
jobSite - JobSite
name - String
note - String
schedule - Schedule
startTime - ISO8601DateTime!
timezone - String!
Example
{
  "breakDuration": Minute,
  "endTime": ISO8601DateTime,
  "endType": "BUSINESS_DECLINE",
  "group": Group,
  "id": 4,
  "jobSite": JobSite,
  "name": "xyz789",
  "note": "xyz789",
  "schedule": Schedule,
  "startTime": ISO8601DateTime,
  "timezone": "abc123"
}

ShiftTemplateFilter

Fields
Input Field Description
_or - [ShiftTemplateFilter!]
employeeId - ID
scheduleIds - [ID!]
Example
{
  "_or": [ShiftTemplateFilter],
  "employeeId": 4,
  "scheduleIds": ["4"]
}

SignUpInput

Description

Autogenerated input type of SignUp

Fields
Input Field Description
businessName - String!
clientMutationId - String A unique identifier for the client performing the mutation.
fullName - String!
phoneNumber - String!
timezone - String!
workEmail - String!
Example
{
  "businessName": "xyz789",
  "clientMutationId": "xyz789",
  "fullName": "xyz789",
  "phoneNumber": "abc123",
  "timezone": "xyz789",
  "workEmail": "abc123"
}

SignUpPayload

Description

Autogenerated return type of SignUp

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - SignupProspectResult
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": SignupProspectResult
}

SignupProspectResult

Fields
Field Name Description
prospectId - ID!
workspaceId - ID!
Example
{"prospectId": 4, "workspaceId": "4"}

SignupWorkspaceInput

Description

Autogenerated input type of SignupWorkspace

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
owner - OwnerInfoInput!
platform - PlatformEnum
workspace - WorkspaceInfoInput!
Example
{
  "clientMutationId": "xyz789",
  "owner": OwnerInfoInput,
  "platform": "MOBILE",
  "workspace": WorkspaceInfoInput
}

SignupWorkspacePayload

Description

Autogenerated return type of SignupWorkspace

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - SignupWorkspaceResult
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": SignupWorkspaceResult
}

SignupWorkspaceResult

Fields
Field Name Description
jwtPayload - JwtPayload!
workspace - Workspace!
Example
{
  "jwtPayload": JwtPayload,
  "workspace": Workspace
}

StartTaskInput

Description

Autogenerated input type of StartTask

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
taskId - ID!
Example
{"clientMutationId": "abc123", "taskId": 4}

StartTaskPayload

Description

Autogenerated return type of StartTask

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Task
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Task
}

String

Description

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Example
"xyz789"

SubmitDraftLeaveInput

Description

Autogenerated input type of SubmitDraftLeave

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
leaveId - ID!
Example
{
  "clientMutationId": "abc123",
  "leaveId": "4"
}

SubmitDraftLeavePayload

Description

Autogenerated return type of SubmitDraftLeave

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - LeaveRequest
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": LeaveRequest
}

SubmitDraftTimesheetInput

Description

Autogenerated input type of SubmitDraftTimesheet

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
timesheetId - ID!
Example
{
  "clientMutationId": "xyz789",
  "timesheetId": "4"
}

SubmitDraftTimesheetPayload

Description

Autogenerated return type of SubmitDraftTimesheet

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Timesheet
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Timesheet
}

SubmitDraftTimesheetsInput

Description

Autogenerated input type of SubmitDraftTimesheets

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
timesheetIds - [ID!]!
Example
{
  "clientMutationId": "xyz789",
  "timesheetIds": ["4"]
}

SubmitDraftTimesheetsPayload

Description

Autogenerated return type of SubmitDraftTimesheets

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - [Timesheet!]
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": [Timesheet]
}

SubmitLeaveInput

Description

Autogenerated input type of SubmitLeave

Fields
Input Field Description
allDay - Boolean!
approverId - ID!
clientMutationId - String A unique identifier for the client performing the mutation.
days - [LeaveDayInput!]!
employeeId - ID!
from - ISO8601DateTime!
leaveCategoryId - ID!
paid - Boolean
reason - String
timezone - String!
to - ISO8601DateTime!
Example
{
  "allDay": true,
  "approverId": "4",
  "clientMutationId": "xyz789",
  "days": [LeaveDayInput],
  "employeeId": "4",
  "from": ISO8601DateTime,
  "leaveCategoryId": "4",
  "paid": false,
  "reason": "xyz789",
  "timezone": "abc123",
  "to": ISO8601DateTime
}

SubmitLeavePayload

Description

Autogenerated return type of SubmitLeave

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - LeaveRequest
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": LeaveRequest
}

SubmitTimesheetInput

Description

Autogenerated input type of SubmitTimesheet

Fields
Input Field Description
breaks - [TimesheetBreakInput!]
clientMutationId - String A unique identifier for the client performing the mutation.
employeeId - ID!
from - ISO8601DateTime!
groupId - ID
scheduleId - ID
timezone - String!
to - ISO8601DateTime!
Example
{
  "breaks": [TimesheetBreakInput],
  "clientMutationId": "xyz789",
  "employeeId": 4,
  "from": ISO8601DateTime,
  "groupId": "4",
  "scheduleId": 4,
  "timezone": "abc123",
  "to": ISO8601DateTime
}

SubmitTimesheetPayload

Description

Autogenerated return type of SubmitTimesheet

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Timesheet
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Timesheet
}

SubscriptionBillingModeEnum

Values
Enum Value Description

FLEXI

STANDARD

Example
"FLEXI"

SubscriptionItem

Fields
Field Name Description
addons - [WorkspaceFeatureEnum!]!
billingMode - SubscriptionBillingModeEnum!
features - [WorkspaceFeatureEnum!]!
id - ID!
quantity - Int!
subscriptionPlan - SubscriptionPlan!
subscriptionPlanPrice - SubscriptionPlanPrice!
Example
{
  "addons": ["ADVANCED_SCHEDULING"],
  "billingMode": "FLEXI",
  "features": ["ADVANCED_SCHEDULING"],
  "id": "4",
  "quantity": 987,
  "subscriptionPlan": SubscriptionPlan,
  "subscriptionPlanPrice": SubscriptionPlanPrice
}

SubscriptionModel

Fields
Field Name Description
features - [WorkspaceFeatureEnum!] Use features + addons in subscription_items. From 1.1.18
id - ID!
state - SubscriptionStateEnum!
subscriptionItems - [SubscriptionItem!]!
subscriptionPlans - [SubscriptionPlan!] subscription_items. From 1.1.18
trialEndAt - ISO8601DateTime
Example
{
  "features": ["ADVANCED_SCHEDULING"],
  "id": 4,
  "state": "ACTIVE",
  "subscriptionItems": [SubscriptionItem],
  "subscriptionPlans": [SubscriptionPlan],
  "trialEndAt": ISO8601DateTime
}

SubscriptionPlan

Fields
Field Name Description
code - String!
features - [WorkspaceFeatureEnum!]
id - ID!
name - String!
Example
{
  "code": "xyz789",
  "features": ["ADVANCED_SCHEDULING"],
  "id": "4",
  "name": "abc123"
}

SubscriptionPlanPrice

Fields
Field Name Description
id - ID!
interval - PlanIntervalEnum!
intervalCount - Int!
unitAmount - Int!
usageType - SubscriptionUsageTypeEnum!
Example
{
  "id": 4,
  "interval": "DAY",
  "intervalCount": 987,
  "unitAmount": 123,
  "usageType": "LICENSED"
}

SubscriptionStateEnum

Values
Enum Value Description

ACTIVE

CANCELED

INCOMPLETE

INCOMPLETE_EXPIRED

PAST_DUE

PAUSED

TRIALING

UNPAID

Example
"ACTIVE"

SubscriptionUsageTypeEnum

Values
Enum Value Description

LICENSED

METERED

Example
"LICENSED"

SupportedServiceEnum

Values
Enum Value Description

KIOSK

Example
"KIOSK"

SurveyAnswerInput

Fields
Input Field Description
answer - String!
question - String!
Example
{
  "answer": "abc123",
  "question": "xyz789"
}

SwapShiftInput

Description

Autogenerated input type of SwapShift

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
shiftId - ID!
targetShiftIds - [ID!]!
Example
{
  "clientMutationId": "abc123",
  "shiftId": "4",
  "targetShiftIds": ["4"]
}

SwapShiftPayload

Description

Autogenerated return type of SwapShift

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Shift
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Shift
}

SyncTimeCardPunchAttachmentInput

Description

Autogenerated input type of SyncTimeCardPunchAttachment

Fields
Input Field Description
atTime - ISO8601DateTime!
clientMutationId - String A unique identifier for the client performing the mutation.
photoKey - String!
timeCardId - ID!
Example
{
  "atTime": ISO8601DateTime,
  "clientMutationId": "abc123",
  "photoKey": "abc123",
  "timeCardId": 4
}

SyncTimeCardPunchAttachmentPayload

Description

Autogenerated return type of SyncTimeCardPunchAttachment

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - TimeCardPunchAttachment
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": TimeCardPunchAttachment
}

SyncTimeCardPunchesInput

Description

Autogenerated input type of SyncTimeCardPunches

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
punches - [TimeCardPunchInput!]! Punches sorted ascending in timeline
Example
{
  "clientMutationId": "xyz789",
  "punches": [TimeCardPunchInput]
}

SyncTimeCardPunchesPayload

Description

Autogenerated return type of SyncTimeCardPunches

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - [TimeCardPunch!]
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": [TimeCardPunch]
}

Tag

Fields
Field Name Description
color - String!
colorName - String!
createdAt - ISO8601DateTime!
default - Boolean
deletedAt - ISO8601DateTime
id - ID!
name - String!
updatedAt - ISO8601DateTime!
Example
{
  "color": "xyz789",
  "colorName": "xyz789",
  "createdAt": ISO8601DateTime,
  "default": false,
  "deletedAt": ISO8601DateTime,
  "id": "4",
  "name": "xyz789",
  "updatedAt": ISO8601DateTime
}

TagConnection

Description

The connection type for Tag.

Fields
Field Name Description
edges - [TagEdge] A list of edges.
nodes - [Tag] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [TagEdge],
  "nodes": [Tag],
  "pageInfo": PageInfo,
  "totalCount": 987
}

TagEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - Tag The item at the end of the edge.
Example
{
  "cursor": "abc123",
  "node": Tag
}

TagInput

Fields
Input Field Description
color - String!
name - String!
Example
{
  "color": "abc123",
  "name": "xyz789"
}

Task

Fields
Field Name Description
assignee - User
checklist - Checklist
code - String
comments - [Comment!]
completedLog - [CompletedLog!]
completionCountTarget - Int
description - String!
doneAt - ISO8601DateTime
dueDate - ISO8601DateTime
id - ID!
inProgressAt - ISO8601DateTime
lastCompletedAt - ISO8601DateTime
name - String!
notStartedAt - ISO8601DateTime
parent - Task
requester - User!
state - TaskStateEnum!
subTasks - [Task!]
workspace - Workspace!
Example
{
  "assignee": User,
  "checklist": Checklist,
  "code": "abc123",
  "comments": [Comment],
  "completedLog": [CompletedLog],
  "completionCountTarget": 987,
  "description": "abc123",
  "doneAt": ISO8601DateTime,
  "dueDate": ISO8601DateTime,
  "id": 4,
  "inProgressAt": ISO8601DateTime,
  "lastCompletedAt": ISO8601DateTime,
  "name": "abc123",
  "notStartedAt": ISO8601DateTime,
  "parent": Task,
  "requester": User,
  "state": "DONE",
  "subTasks": [Task],
  "workspace": Workspace
}

TaskConnection

Description

The connection type for Task.

Fields
Field Name Description
edges - [TaskEdge] A list of edges.
nodes - [Task] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [TaskEdge],
  "nodes": [Task],
  "pageInfo": PageInfo,
  "totalCount": 987
}

TaskEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - Task The item at the end of the edge.
Example
{
  "cursor": "xyz789",
  "node": Task
}

TaskFilter

Fields
Input Field Description
_or - [TaskFilter!]
assigneeIds - [ID!]
fromTime - ISO8601DateTime
requesterIds - [ID!]
taskState - TaskStateEnum
toTime - ISO8601DateTime
Example
{
  "_or": [TaskFilter],
  "assigneeIds": [4],
  "fromTime": ISO8601DateTime,
  "requesterIds": [4],
  "taskState": "DONE",
  "toTime": ISO8601DateTime
}

TaskStateEnum

Values
Enum Value Description

DONE

IN_PROGRESS

NOT_STARTED

Example
"DONE"

ThisWeekSnapshot

Fields
Field Name Description
assignedShifts - Int!
id - ID!
openShifts - Int!
pendingTimesheets - Int!
scheduledShifts - Int!
unfinishedShifts - Int!
Example
{
  "assignedShifts": 987,
  "id": 4,
  "openShifts": 123,
  "pendingTimesheets": 987,
  "scheduledShifts": 987,
  "unfinishedShifts": 987
}

ThisWeekSnapshotFilter

Fields
Input Field Description
fromTime - ISO8601DateTime
scheduleIds - [ID!]
toTime - ISO8601DateTime
Example
{
  "fromTime": ISO8601DateTime,
  "scheduleIds": [4],
  "toTime": ISO8601DateTime
}

TimeCard

Fields
Field Name Description
autoDeductedUnpaidBreakDuration - Minute!
createdAt - ISO8601DateTime!
creator - User!
endTime - ISO8601DateTime
group - Group
hasWarning - Boolean!
id - ID!
note - String
punches - [TimeCardPunch!]!
schedule - Schedule
shift - Shift
shiftId - ID
startTime - ISO8601DateTime
state - TimeCardStateEnum!
timezone - String!
totalDuration - Minute!
Example
{
  "autoDeductedUnpaidBreakDuration": Minute,
  "createdAt": ISO8601DateTime,
  "creator": User,
  "endTime": ISO8601DateTime,
  "group": Group,
  "hasWarning": false,
  "id": 4,
  "note": "abc123",
  "punches": [TimeCardPunch],
  "schedule": Schedule,
  "shift": Shift,
  "shiftId": 4,
  "startTime": ISO8601DateTime,
  "state": "CLOCKED_IN",
  "timezone": "xyz789",
  "totalDuration": Minute
}

TimeCardConnection

Description

The connection type for TimeCard.

Fields
Field Name Description
edges - [TimeCardEdge] A list of edges.
nodes - [TimeCard] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [TimeCardEdge],
  "nodes": [TimeCard],
  "pageInfo": PageInfo,
  "totalCount": 123
}

TimeCardEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - TimeCard The item at the end of the edge.
Example
{
  "cursor": "xyz789",
  "node": TimeCard
}

TimeCardFilter

Fields
Input Field Description
_or - [TimeCardFilter!]
date - ISO8601DateTime
timeCardStates - [TimeCardStateEnum!]
unscheduled - Boolean
userIds - [ID!]
Example
{
  "_or": [TimeCardFilter],
  "date": ISO8601DateTime,
  "timeCardStates": ["CLOCKED_IN"],
  "unscheduled": true,
  "userIds": ["4"]
}

TimeCardPunch

Fields
Field Name Description
atTime - ISO8601DateTime!
attachment - TimeCardPunchAttachment
createdAt - ISO8601DateTime!
id - ID!
note - String
punchType - TimeCardPunchTypeEnum!
timeCardId - ID!
updatedAt - ISO8601DateTime!
warnings - [TimeCardPunchWarning!]
Example
{
  "atTime": ISO8601DateTime,
  "attachment": TimeCardPunchAttachment,
  "createdAt": ISO8601DateTime,
  "id": "4",
  "note": "xyz789",
  "punchType": "CLOCK_IN",
  "timeCardId": "4",
  "updatedAt": ISO8601DateTime,
  "warnings": [TimeCardPunchWarning]
}

TimeCardPunchAttachment

Fields
Field Name Description
atTime - ISO8601DateTime!
createdAt - ISO8601DateTime!
geoLat - Float
geoLong - Float
id - ID!
photo - String
photoToken - String
timeCardId - ID!
updatedAt - ISO8601DateTime!
wifiBssid - String
wifiSsid - String
Example
{
  "atTime": ISO8601DateTime,
  "createdAt": ISO8601DateTime,
  "geoLat": 123.45,
  "geoLong": 123.45,
  "id": "4",
  "photo": "xyz789",
  "photoToken": "abc123",
  "timeCardId": 4,
  "updatedAt": ISO8601DateTime,
  "wifiBssid": "abc123",
  "wifiSsid": "xyz789"
}

TimeCardPunchAttachmentInput

Fields
Input Field Description
geoLat - Float
geoLong - Float
photoToken - String
wifiBssid - String
wifiSsid - String
Example
{
  "geoLat": 123.45,
  "geoLong": 987.65,
  "photoToken": "abc123",
  "wifiBssid": "xyz789",
  "wifiSsid": "abc123"
}

TimeCardPunchInput

Fields
Input Field Description
atTime - ISO8601DateTime!
attachment - TimeCardPunchAttachmentInput
note - String
punchType - TimeCardPunchTypeEnum!
timeCardId - ID!
Example
{
  "atTime": ISO8601DateTime,
  "attachment": TimeCardPunchAttachmentInput,
  "note": "xyz789",
  "punchType": "CLOCK_IN",
  "timeCardId": "4"
}

TimeCardPunchTypeEnum

Values
Enum Value Description

CLOCK_IN

CLOCK_OUT

FINISH

Example
"CLOCK_IN"

TimeCardPunchWarning

Fields
Field Name Description
type - TimeCardPunchWarningTypeEnum!
value - Int!
Example
{"type": "EARLY_CLOCKED_IN", "value": 123}

TimeCardPunchWarningTypeEnum

Values
Enum Value Description

EARLY_CLOCKED_IN

EARLY_FINISHED

LATE_CLOCKED_IN

OFFSITE

Example
"EARLY_CLOCKED_IN"

TimeCardStateEnum

Values
Enum Value Description

CLOCKED_IN

CLOCKED_OUT

FINISHED

READY

Example
"CLOCKED_IN"

Timesheet

Fields
Field Name Description
approvedAt - ISO8601DateTime
approver - User
comments - Int
creator - User!
draftAt - ISO8601DateTime!
employee - User!
from - ISO8601DateTime!
group - Group
id - ID!
processedAt - ISO8601DateTime
referenceObject - ReferenceObject
rejectedAt - ISO8601DateTime
schedule - Schedule
state - TimesheetStateEnum!
submittedAt - ISO8601DateTime
timezone - String!
to - ISO8601DateTime!
totalDuration - Minute!
unpaidBreaks - [TimesheetUnpaidBreak!]!
updatedAt - ISO8601DateTime!
workspace - Workspace!
Example
{
  "approvedAt": ISO8601DateTime,
  "approver": User,
  "comments": 123,
  "creator": User,
  "draftAt": ISO8601DateTime,
  "employee": User,
  "from": ISO8601DateTime,
  "group": Group,
  "id": "4",
  "processedAt": ISO8601DateTime,
  "referenceObject": Document,
  "rejectedAt": ISO8601DateTime,
  "schedule": Schedule,
  "state": "APPROVED",
  "submittedAt": ISO8601DateTime,
  "timezone": "abc123",
  "to": ISO8601DateTime,
  "totalDuration": Minute,
  "unpaidBreaks": [TimesheetAutoDeductBreak],
  "updatedAt": ISO8601DateTime,
  "workspace": Workspace
}

TimesheetAutoDeductBreak

Fields
Field Name Description
duration - Minute!
id - ID!
note - String
Example
{
  "duration": Minute,
  "id": "4",
  "note": "abc123"
}

TimesheetBreakInput

Fields
Input Field Description
_destroy - Boolean
duration - Minute!
id - ID
note - String
Example
{
  "_destroy": true,
  "duration": Minute,
  "id": 4,
  "note": "xyz789"
}

TimesheetConnection

Description

The connection type for Timesheet.

Fields
Field Name Description
edges - [TimesheetEdge] A list of edges.
nodes - [Timesheet] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [TimesheetEdge],
  "nodes": [Timesheet],
  "pageInfo": PageInfo,
  "totalCount": 123
}

TimesheetEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - Timesheet The item at the end of the edge.
Example
{
  "cursor": "xyz789",
  "node": Timesheet
}

TimesheetFilter

Fields
Input Field Description
_or - [TimesheetFilter!]
approverIds - [ID!]
creatorIds - [ID!]
employeeIds - [ID!]
fromTime - ISO8601DateTime
groupIds - [ID!]
referenceObjectTypes - [TimesheetFilterReferenceObject!]
scheduleIds - [ID!]
timesheetStates - [TimesheetStateEnum!]
toTime - ISO8601DateTime
Example
{
  "_or": [TimesheetFilter],
  "approverIds": ["4"],
  "creatorIds": [4],
  "employeeIds": ["4"],
  "fromTime": ISO8601DateTime,
  "groupIds": ["4"],
  "referenceObjectTypes": ["LEAVE_REQUEST"],
  "scheduleIds": ["4"],
  "timesheetStates": ["APPROVED"],
  "toTime": ISO8601DateTime
}

TimesheetFilterReferenceObject

Values
Enum Value Description

LEAVE_REQUEST

NONE

SHIFT

TIME_CARD

Example
"LEAVE_REQUEST"

TimesheetManualBreak

Fields
Field Name Description
duration - Minute!
id - ID!
note - String
Example
{
  "duration": Minute,
  "id": "4",
  "note": "abc123"
}

TimesheetOrder

Fields
Input Field Description
column - TimesheetOrderColumnsEnum!
direction - OrderOrientEnum!
Example
{"column": "FROM", "direction": "ASC"}

TimesheetOrderColumnsEnum

Values
Enum Value Description

FROM

Example
"FROM"

TimesheetPunchBreak

Fields
Field Name Description
data - TimesheetPunchBreakData!
duration - Minute!
id - ID!
note - String
Example
{
  "data": TimesheetPunchBreakData,
  "duration": Minute,
  "id": "4",
  "note": "abc123"
}

TimesheetPunchBreakData

Fields
Field Name Description
inPunchTime - ISO8601DateTime!
outPunchTime - ISO8601DateTime!
Example
{
  "inPunchTime": ISO8601DateTime,
  "outPunchTime": ISO8601DateTime
}

TimesheetReportFilter

Fields
Input Field Description
_or - [TimesheetReportFilter!]
fromTime - ISO8601DateTime
scheduleIds - [ID!]
toTime - ISO8601DateTime
Example
{
  "_or": [TimesheetReportFilter],
  "fromTime": ISO8601DateTime,
  "scheduleIds": [4],
  "toTime": ISO8601DateTime
}

TimesheetReportResult

Fields
Field Name Description
workingHoursApproved - Minute!
workingHoursSubmitted - Minute!
Example
{
  "workingHoursApproved": Minute,
  "workingHoursSubmitted": Minute
}

TimesheetRoundBreakTypeEnum

Values
Enum Value Description

CLOSER

LONGER

NONE

SHORTER

Example
"CLOSER"

TimesheetRoundTimeTypeEnum

Values
Enum Value Description

CLOSER

EARLIER

LATER

NONE

Example
"CLOSER"

TimesheetStateEnum

Values
Enum Value Description

APPROVED

DRAFT

PROCESSED

REJECTED

SUBMITTED

Example
"APPROVED"

TimesheetSummaryFilter

Fields
Input Field Description
fromTime - ISO8601DateTime
groupIds - [ID!]
scheduleIds - [ID!]
timesheetStates - [TimesheetStateEnum!]
toTime - ISO8601DateTime
Example
{
  "fromTime": ISO8601DateTime,
  "groupIds": ["4"],
  "scheduleIds": [4],
  "timesheetStates": ["APPROVED"],
  "toTime": ISO8601DateTime
}

TimesheetSummaryResponse

Fields
Field Name Description
doubleOvertime - Minute!
overtime - Minute!
regular - Minute!
timeOff - Minute!
total - Minute!
totalApproved - Minute!
totalScheduled - Minute!
user - User
Example
{
  "doubleOvertime": Minute,
  "overtime": Minute,
  "regular": Minute,
  "timeOff": Minute,
  "total": Minute,
  "totalApproved": Minute,
  "totalScheduled": Minute,
  "user": User
}

TimesheetUnpaidBreak

Description

Properties of TimesheetBreak

Example
TimesheetAutoDeductBreak

TodaySnapshot

Fields
Field Name Description
checklistAssignments - TodaySnapshotChecklistAssignment!
currentlyClockedIn - Int!
currentlyLate - Int!
currentlyOnBreak - Int!
id - ID!
timeOffs - Int!
Example
{
  "checklistAssignments": TodaySnapshotChecklistAssignment,
  "currentlyClockedIn": 123,
  "currentlyLate": 987,
  "currentlyOnBreak": 987,
  "id": 4,
  "timeOffs": 123
}

TodaySnapshotChecklistAssignment

Fields
Field Name Description
done - Int!
total - Int!
Example
{"done": 123, "total": 987}

TodaySnapshotFilter

Fields
Input Field Description
scheduleIds - [ID!]
Example
{"scheduleIds": [4]}

ToggleReactionInput

Description

Autogenerated input type of ToggleReaction

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
emoji - String!
messageId - ID!
Example
{
  "clientMutationId": "xyz789",
  "emoji": "abc123",
  "messageId": 4
}

ToggleReactionPayload

Description

Autogenerated return type of ToggleReaction

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ChatMessage
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ChatMessage
}

UnacknowledgeDocumentInput

Description

Autogenerated input type of UnacknowledgeDocument

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
documentId - ID!
Example
{
  "clientMutationId": "abc123",
  "documentId": 4
}

UnacknowledgeDocumentPayload

Description

Autogenerated return type of UnacknowledgeDocument

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Document
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Document
}

UnarchiveChannelInput

Description

Autogenerated input type of UnarchiveChannel

Fields
Input Field Description
channelId - ID!
clientMutationId - String A unique identifier for the client performing the mutation.
Example
{
  "channelId": "4",
  "clientMutationId": "xyz789"
}

UnarchiveChannelPayload

Description

Autogenerated return type of UnarchiveChannel

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ChatChannel
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": ChatChannel
}

UnarchiveMemberInput

Description

Autogenerated input type of UnarchiveMember

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
userId - ID!
Example
{"clientMutationId": "xyz789", "userId": 4}

UnarchiveMemberPayload

Description

Autogenerated return type of UnarchiveMember

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - String
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": "abc123"
}

UnconfirmMessageBoardPostInput

Description

Autogenerated input type of UnconfirmMessageBoardPost

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
messageBoardPostId - ID!
Example
{
  "clientMutationId": "abc123",
  "messageBoardPostId": "4"
}

UnconfirmMessageBoardPostPayload

Description

Autogenerated return type of UnconfirmMessageBoardPost

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - MessageBoardPost
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": MessageBoardPost
}

UndoFinishTaskInput

Description

Autogenerated input type of UndoFinishTask

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
taskId - ID!
Example
{
  "clientMutationId": "xyz789",
  "taskId": "4"
}

UndoFinishTaskPayload

Description

Autogenerated return type of UndoFinishTask

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Task
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Task
}

UnlinkUserFromDeviceInput

Description

Autogenerated input type of UnlinkUserFromDevice

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
token - String!
Example
{
  "clientMutationId": "xyz789",
  "token": "abc123"
}

UnlinkUserFromDevicePayload

Description

Autogenerated return type of UnlinkUserFromDevice

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Boolean
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": false
}

UnpinDocumentInput

Description

Autogenerated input type of UnpinDocument

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
documentId - ID!
Example
{
  "clientMutationId": "xyz789",
  "documentId": "4"
}

UnpinDocumentPayload

Description

Autogenerated return type of UnpinDocument

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Document
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Document
}

UnpinMessageBoardInput

Description

Autogenerated input type of UnpinMessageBoard

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
messageBoardId - ID!
Example
{
  "clientMutationId": "abc123",
  "messageBoardId": 4
}

UnpinMessageBoardPayload

Description

Autogenerated return type of UnpinMessageBoard

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - MessageBoard
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": MessageBoard
}

UnpinMessageBoardPostInput

Description

Autogenerated input type of UnpinMessageBoardPost

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
messageBoardPostId - ID!
Example
{
  "clientMutationId": "abc123",
  "messageBoardPostId": "4"
}

UnpinMessageBoardPostPayload

Description

Autogenerated return type of UnpinMessageBoardPost

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - MessageBoardPost
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": MessageBoardPost
}

UpdateAvailabilityInput

Description

Autogenerated input type of UpdateAvailability

Fields
Input Field Description
allDay - Boolean
availabilityId - ID!
clientMutationId - String A unique identifier for the client performing the mutation.
from - ISO8601DateTime
note - String
recurrenceEditType - RecurrenceEditTypeEnum
recurrenceRule - String
timezone - String
to - ISO8601DateTime
type - AvailabilityTypeEnum
Example
{
  "allDay": true,
  "availabilityId": 4,
  "clientMutationId": "xyz789",
  "from": ISO8601DateTime,
  "note": "xyz789",
  "recurrenceEditType": "ALL",
  "recurrenceRule": "abc123",
  "timezone": "xyz789",
  "to": ISO8601DateTime,
  "type": "PREFERRED_WORKING_TIME"
}

UpdateAvailabilityPayload

Description

Autogenerated return type of UpdateAvailability

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Availability
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Availability
}

UpdateCalendarEventInput

Description

Autogenerated input type of UpdateCalendarEvent

Fields
Input Field Description
allDay - Boolean
clientMutationId - String A unique identifier for the client performing the mutation.
eventType - CalendarEventTypeEnum
from - ISO8601DateTime
id - ID!
note - String
recurrenceEditType - RecurrenceEditTypeEnum
recurrenceRule - String
scheduleIds - [ID!]
state - CalendarEventStateEnum
timezone - String
to - ISO8601DateTime
Example
{
  "allDay": true,
  "clientMutationId": "xyz789",
  "eventType": "CLOSED_BUSINESS",
  "from": ISO8601DateTime,
  "id": 4,
  "note": "xyz789",
  "recurrenceEditType": "ALL",
  "recurrenceRule": "abc123",
  "scheduleIds": ["4"],
  "state": "ACTIVE",
  "timezone": "xyz789",
  "to": ISO8601DateTime
}

UpdateCalendarEventPayload

Description

Autogenerated return type of UpdateCalendarEvent

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - CalendarEvent
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": CalendarEvent
}

UpdateChannelInput

Description

Autogenerated input type of UpdateChannel

Fields
Input Field Description
channelId - ID!
channelType - ChannelTypeEnum
clientMutationId - String A unique identifier for the client performing the mutation.
color - String
displayName - String
emojiIcon - String
purpose - String
sticky - Boolean
userIds - [ID!]
Example
{
  "channelId": 4,
  "channelType": "DIRECT",
  "clientMutationId": "xyz789",
  "color": "xyz789",
  "displayName": "xyz789",
  "emojiIcon": "xyz789",
  "purpose": "abc123",
  "sticky": true,
  "userIds": ["4"]
}

UpdateChannelMemberInput

Description

Autogenerated input type of UpdateChannelMember

Fields
Input Field Description
channelMemberId - ID!
clientMutationId - String A unique identifier for the client performing the mutation.
muted - Boolean
notification - ChannelMemberNotificationEnum
role - ChannelMemberRoleEnum
Example
{
  "channelMemberId": "4",
  "clientMutationId": "xyz789",
  "muted": true,
  "notification": "ALL",
  "role": "ADMIN"
}

UpdateChannelMemberPayload

Description

Autogenerated return type of UpdateChannelMember

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ChannelMember
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ChannelMember
}

UpdateChannelPayload

Description

Autogenerated return type of UpdateChannel

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ChatChannel
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ChatChannel
}

UpdateCommentInput

Description

Autogenerated input type of UpdateComment

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
commentId - ID!
content - String!
Example
{
  "clientMutationId": "xyz789",
  "commentId": 4,
  "content": "abc123"
}

UpdateCommentPayload

Description

Autogenerated return type of UpdateComment

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Comment
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Comment
}

UpdateDocumentInput

Description

Autogenerated input type of UpdateDocument

Fields
Input Field Description
acknowledgementRequired - Boolean
allUsersAssigned - Boolean
assignedGroupIds - [ID!]
assigneeIds - [ID!]
assignmentType - DocumentAssignmentEnum
attachments - [DocumentAttachmentInput!]
clientMutationId - String A unique identifier for the client performing the mutation.
color - String
documentId - ID!
expiredAt - ISO8601DateTime
folderId - ID
name - String
notes - String
saveAsDraft - Boolean
shareWithNewHires - Boolean
tags - [TagInput!]
Example
{
  "acknowledgementRequired": true,
  "allUsersAssigned": true,
  "assignedGroupIds": ["4"],
  "assigneeIds": [4],
  "assignmentType": "PERSONAL",
  "attachments": [DocumentAttachmentInput],
  "clientMutationId": "xyz789",
  "color": "xyz789",
  "documentId": "4",
  "expiredAt": ISO8601DateTime,
  "folderId": "4",
  "name": "xyz789",
  "notes": "abc123",
  "saveAsDraft": false,
  "shareWithNewHires": false,
  "tags": [TagInput]
}

UpdateDocumentPayload

Description

Autogenerated return type of UpdateDocument

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Document
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Document
}

UpdateFolderInput

Description

Autogenerated input type of UpdateFolder

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
description - String
documentIds - [ID!]
folderId - ID!
name - String
parentId - ID
private - Boolean
Example
{
  "clientMutationId": "xyz789",
  "description": "abc123",
  "documentIds": [4],
  "folderId": "4",
  "name": "xyz789",
  "parentId": 4,
  "private": false
}

UpdateFolderPayload

Description

Autogenerated return type of UpdateFolder

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Folder
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Folder
}

UpdateGroupInput

Description

Autogenerated input type of UpdateGroup

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
color - String!
groupId - ID!
name - String!
userIds - [ID!]!
Example
{
  "clientMutationId": "xyz789",
  "color": "xyz789",
  "groupId": 4,
  "name": "abc123",
  "userIds": ["4"]
}

UpdateGroupPayload

Description

Autogenerated return type of UpdateGroup

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Group
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Group
}

UpdateJobSiteInput

Description

Autogenerated input type of UpdateJobSite

Fields
Input Field Description
address - String
attachments - [JobSiteAttachmentInput!]
clientMutationId - String A unique identifier for the client performing the mutation.
color - String
geoLat - Float
geoLong - Float
jobSiteId - ID!
name - String
note - String
payRate - JobSitePayRateInput
scheduleIds - [ID!]
wifiBssid - String
wifiSsid - String
Example
{
  "address": "xyz789",
  "attachments": [JobSiteAttachmentInput],
  "clientMutationId": "xyz789",
  "color": "xyz789",
  "geoLat": 123.45,
  "geoLong": 123.45,
  "jobSiteId": 4,
  "name": "abc123",
  "note": "abc123",
  "payRate": JobSitePayRateInput,
  "scheduleIds": [4],
  "wifiBssid": "abc123",
  "wifiSsid": "xyz789"
}

UpdateJobSitePayload

Description

Autogenerated return type of UpdateJobSite

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - JobSite
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": JobSite
}

UpdateJoinCodeInput

Description

Autogenerated input type of UpdateJoinCode

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
joinCodeId - ID!
requireApproval - Boolean!
Example
{
  "clientMutationId": "abc123",
  "joinCodeId": 4,
  "requireApproval": false
}

UpdateJoinCodePayload

Description

Autogenerated return type of UpdateJoinCode

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - JoinCode
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": JoinCode
}

UpdateLeaveCategoriesInput

Description

Autogenerated input type of UpdateLeaveCategories

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
leaveCategoriesInput - [LeaveCategoryInput!]!
Example
{
  "clientMutationId": "abc123",
  "leaveCategoriesInput": [LeaveCategoryInput]
}

UpdateLeaveCategoriesPayload

Description

Autogenerated return type of UpdateLeaveCategories

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - [LeaveCategory!]
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": [LeaveCategory]
}

UpdateLeaveInput

Description

Autogenerated input type of UpdateLeave

Fields
Input Field Description
allDay - Boolean
approverId - ID
clientMutationId - String A unique identifier for the client performing the mutation.
days - [LeaveDayInput!]
employeeId - ID
from - ISO8601DateTime
leaveCategoryId - ID
leaveId - String!
paid - Boolean
reason - String
timezone - String
to - ISO8601DateTime
Example
{
  "allDay": true,
  "approverId": 4,
  "clientMutationId": "abc123",
  "days": [LeaveDayInput],
  "employeeId": 4,
  "from": ISO8601DateTime,
  "leaveCategoryId": "4",
  "leaveId": "abc123",
  "paid": false,
  "reason": "abc123",
  "timezone": "abc123",
  "to": ISO8601DateTime
}

UpdateLeavePayload

Description

Autogenerated return type of UpdateLeave

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - LeaveRequest
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": LeaveRequest
}

UpdateMembershipSettingsInput

Description

Autogenerated input type of UpdateMembershipSettings

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
emailLeaveRequest - Boolean
emailManageAvailabilityRequest - Boolean
emailManageDocument - Boolean
emailManageLeaveRequest - Boolean
emailManageMessageBoard - Boolean
emailManageShiftOfferRequest - Boolean
emailManageShiftSwapRequest - Boolean
emailManageTimesheet - Boolean
emailSchedulePosted - Boolean
emailShiftOfferRequest - Boolean
emailShiftReminder - Boolean
emailShiftSwapRequest - Boolean
emailSummary - Boolean
emailTimesheet - Boolean
maxDurationPerWeek - Minute
notificationShiftLate - Boolean
typicalWorkDuration - Minute
userId - ID!
Example
{
  "clientMutationId": "xyz789",
  "emailLeaveRequest": false,
  "emailManageAvailabilityRequest": false,
  "emailManageDocument": false,
  "emailManageLeaveRequest": true,
  "emailManageMessageBoard": true,
  "emailManageShiftOfferRequest": true,
  "emailManageShiftSwapRequest": true,
  "emailManageTimesheet": false,
  "emailSchedulePosted": true,
  "emailShiftOfferRequest": false,
  "emailShiftReminder": false,
  "emailShiftSwapRequest": false,
  "emailSummary": true,
  "emailTimesheet": false,
  "maxDurationPerWeek": Minute,
  "notificationShiftLate": false,
  "typicalWorkDuration": Minute,
  "userId": "4"
}

UpdateMembershipSettingsPayload

Description

Autogenerated return type of UpdateMembershipSettings

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - MembershipSetting
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": MembershipSetting
}

UpdateMessageBoardInput

Description

Autogenerated input type of UpdateMessageBoard

Fields
Input Field Description
allUsersAccessed - Boolean
clientMutationId - String A unique identifier for the client performing the mutation.
description - String
memberIds - [ID!]
messageBoardId - ID!
messageBoardsMembers - [MessageBoardsMemberInput!]
name - String
shareWithNewHires - Boolean
Example
{
  "allUsersAccessed": true,
  "clientMutationId": "xyz789",
  "description": "xyz789",
  "memberIds": ["4"],
  "messageBoardId": "4",
  "messageBoardsMembers": [MessageBoardsMemberInput],
  "name": "xyz789",
  "shareWithNewHires": true
}

UpdateMessageBoardPayload

Description

Autogenerated return type of UpdateMessageBoard

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - MessageBoard
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": MessageBoard
}

UpdateMessageBoardPostInput

Description

Autogenerated input type of UpdateMessageBoardPost

Fields
Input Field Description
acknowledgementRequired - Boolean
blocks - JSON
categoryId - ID
clientMutationId - String A unique identifier for the client performing the mutation.
commentEnabled - Boolean
content - String
images - [MessageBoardPostImageInput!]
messageBoardId - ID
messageBoardPostId - ID!
notifyAllMembers - Boolean
notifyUserIds - [ID!]
pinnedAt - ISO8601DateTime
saveAsDraft - Boolean
scheduledPostAt - ISO8601DateTime
title - String
Example
{
  "acknowledgementRequired": true,
  "blocks": {},
  "categoryId": "4",
  "clientMutationId": "abc123",
  "commentEnabled": false,
  "content": "abc123",
  "images": [MessageBoardPostImageInput],
  "messageBoardId": "4",
  "messageBoardPostId": 4,
  "notifyAllMembers": true,
  "notifyUserIds": [4],
  "pinnedAt": ISO8601DateTime,
  "saveAsDraft": true,
  "scheduledPostAt": ISO8601DateTime,
  "title": "xyz789"
}

UpdateMessageBoardPostPayload

Description

Autogenerated return type of UpdateMessageBoardPost

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - MessageBoardPost
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": MessageBoardPost
}

UpdateReactionInput

Description

Autogenerated input type of UpdateReaction

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
emoji - String!
reactionId - ID!
Example
{
  "clientMutationId": "abc123",
  "emoji": "abc123",
  "reactionId": 4
}

UpdateReactionPayload

Description

Autogenerated return type of UpdateReaction

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Reaction
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Reaction
}

UpdateRoleInput

Description

Autogenerated input type of UpdateRole

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
roleId - ID!
users - [RoleUserInput!]!
Example
{
  "clientMutationId": "xyz789",
  "roleId": "4",
  "users": [RoleUserInput]
}

UpdateRolePayload

Description

Autogenerated return type of UpdateRole

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Role
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Role
}

UpdateScheduleInput

Description

Autogenerated input type of UpdateSchedule

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
defaultJobSiteId - ID
name - String
scheduleId - ID!
schedulesUsers - [SchedulesUserInput!]
timezone - String
Example
{
  "clientMutationId": "xyz789",
  "defaultJobSiteId": 4,
  "name": "abc123",
  "scheduleId": 4,
  "schedulesUsers": [SchedulesUserInput],
  "timezone": "xyz789"
}

UpdateSchedulePayload

Description

Autogenerated return type of UpdateSchedule

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Schedule
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Schedule
}

UpdateSchedulePhotoInput

Description

Autogenerated input type of UpdateSchedulePhoto

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
photo - String!
schedulePhotoId - ID!
Example
{
  "clientMutationId": "abc123",
  "photo": "xyz789",
  "schedulePhotoId": 4
}

UpdateSchedulePhotoPayload

Description

Autogenerated return type of UpdateSchedulePhoto

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - SchedulePhoto
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": SchedulePhoto
}

UpdateShiftBatchInput

Description

Autogenerated input type of UpdateShiftBatch

Fields
Input Field Description
assignees - [ShiftBatchAssigneeInput!]!
attachments - [ShiftAttachmentInput!]
breakDuration - Minute
clientMutationId - String A unique identifier for the client performing the mutation.
color - String
endTime - ISO8601DateTime
jobSiteId - ID
note - String
scheduleId - ID
shiftBatchId - ID!
startTime - ISO8601DateTime
timezone - String
title - String
Example
{
  "assignees": [ShiftBatchAssigneeInput],
  "attachments": [ShiftAttachmentInput],
  "breakDuration": Minute,
  "clientMutationId": "xyz789",
  "color": "abc123",
  "endTime": ISO8601DateTime,
  "jobSiteId": 4,
  "note": "abc123",
  "scheduleId": "4",
  "shiftBatchId": "4",
  "startTime": ISO8601DateTime,
  "timezone": "xyz789",
  "title": "xyz789"
}

UpdateShiftBatchPayload

Description

Autogenerated return type of UpdateShiftBatch

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ShiftBatch
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ShiftBatch
}

UpdateShiftChecklistInput

Fields
Input Field Description
_destroy - Boolean
checklistId - ID
name - String
tasks - [UpdateShiftTaskInput!]
Example
{
  "_destroy": false,
  "checklistId": "4",
  "name": "xyz789",
  "tasks": [UpdateShiftTaskInput]
}

UpdateShiftInput

Description

Autogenerated input type of UpdateShift

Fields
Input Field Description
assigneeId - ID
attachments - [ShiftAttachmentInput!]
breakDuration - Minute
checklists - [UpdateShiftChecklistInput!]
clientMutationId - String A unique identifier for the client performing the mutation.
color - String
endTime - ISO8601DateTime
endType - ShiftEndTypeInputEnum
groupId - ID
jobSiteId - ID
note - String
recurrenceEditType - RecurrenceEditTypeEnum
recurrenceRule - String
requireClaimApproval - Boolean
scheduleId - ID
shiftId - ID!
startTime - ISO8601DateTime
timezone - String
title - String
Example
{
  "assigneeId": 4,
  "attachments": [ShiftAttachmentInput],
  "breakDuration": Minute,
  "checklists": [UpdateShiftChecklistInput],
  "clientMutationId": "abc123",
  "color": "abc123",
  "endTime": ISO8601DateTime,
  "endType": "BUSINESS_DECLINE",
  "groupId": 4,
  "jobSiteId": 4,
  "note": "xyz789",
  "recurrenceEditType": "ALL",
  "recurrenceRule": "abc123",
  "requireClaimApproval": false,
  "scheduleId": "4",
  "shiftId": 4,
  "startTime": ISO8601DateTime,
  "timezone": "abc123",
  "title": "xyz789"
}

UpdateShiftPayload

Description

Autogenerated return type of UpdateShift

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Shift
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Shift
}

UpdateShiftTaskInput

Fields
Input Field Description
_destroy - Boolean
code - String
completionCountTarget - Int
description - String
dueDate - ISO8601DateTime
name - String
subTasks - [UpdateShiftTaskInput!]
taskId - ID
Example
{
  "_destroy": true,
  "code": "xyz789",
  "completionCountTarget": 987,
  "description": "abc123",
  "dueDate": ISO8601DateTime,
  "name": "abc123",
  "subTasks": [UpdateShiftTaskInput],
  "taskId": "4"
}

UpdateShiftTemplateInput

Description

Autogenerated input type of UpdateShiftTemplate

Fields
Input Field Description
breakDuration - Minute
clientMutationId - String A unique identifier for the client performing the mutation.
color - String
endTime - ISO8601DateTime
endType - ShiftEndTypeInputEnum
groupId - ID
jobSiteId - ID
name - String
note - String
scheduleId - ID
shiftTemplateId - ID!
startTime - ISO8601DateTime
timezone - String
Example
{
  "breakDuration": Minute,
  "clientMutationId": "abc123",
  "color": "abc123",
  "endTime": ISO8601DateTime,
  "endType": "BUSINESS_DECLINE",
  "groupId": "4",
  "jobSiteId": 4,
  "name": "abc123",
  "note": "abc123",
  "scheduleId": "4",
  "shiftTemplateId": "4",
  "startTime": ISO8601DateTime,
  "timezone": "xyz789"
}

UpdateShiftTemplatePayload

Description

Autogenerated return type of UpdateShiftTemplate

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - ShiftTemplate
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": ShiftTemplate
}

UpdateTaskInput

Description

Autogenerated input type of UpdateTask

Fields
Input Field Description
assigneeId - ID
clientMutationId - String A unique identifier for the client performing the mutation.
description - String
dueDate - ISO8601DateTime
name - String
taskId - ID!
Example
{
  "assigneeId": 4,
  "clientMutationId": "xyz789",
  "description": "xyz789",
  "dueDate": ISO8601DateTime,
  "name": "abc123",
  "taskId": "4"
}

UpdateTaskPayload

Description

Autogenerated return type of UpdateTask

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Task
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Task
}

UpdateTimesheetInput

Description

Autogenerated input type of UpdateTimesheet

Fields
Input Field Description
breaks - [TimesheetBreakInput!]
clientMutationId - String A unique identifier for the client performing the mutation.
employeeId - ID
from - ISO8601DateTime
groupId - ID
scheduleId - ID
timesheetId - String!
timezone - String
to - ISO8601DateTime
Example
{
  "breaks": [TimesheetBreakInput],
  "clientMutationId": "xyz789",
  "employeeId": "4",
  "from": ISO8601DateTime,
  "groupId": 4,
  "scheduleId": 4,
  "timesheetId": "abc123",
  "timezone": "xyz789",
  "to": ISO8601DateTime
}

UpdateTimesheetPayload

Description

Autogenerated return type of UpdateTimesheet

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Timesheet
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Timesheet
}

UpdateUserInput

Description

Autogenerated input type of UpdateUser

Fields
Input Field Description
address - String
avatarKey - String
birthday - ISO8601DateTime
clientMutationId - String A unique identifier for the client performing the mutation.
email - String
firstName - String
groupIds - [ID!]
language - String
lastName - String
phoneNumber - String
roles - [RoleCodeEnum!]
scheduleIds - [ID!]
timezone - String
userId - ID!
Example
{
  "address": "abc123",
  "avatarKey": "xyz789",
  "birthday": ISO8601DateTime,
  "clientMutationId": "xyz789",
  "email": "abc123",
  "firstName": "xyz789",
  "groupIds": ["4"],
  "language": "abc123",
  "lastName": "abc123",
  "phoneNumber": "xyz789",
  "roles": ["CONTRACTOR"],
  "scheduleIds": ["4"],
  "timezone": "abc123",
  "userId": "4"
}

UpdateUserPayload

Description

Autogenerated return type of UpdateUser

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - User
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": User
}

UpdateUserSettingsInput

Description

Autogenerated input type of UpdateUserSettings

Fields
Input Field Description
_24HourTime - Boolean
clientMutationId - String A unique identifier for the client performing the mutation.
personalizedData - [UserPersonalizedDataItemInput!]
Example
{
  "_24HourTime": false,
  "clientMutationId": "xyz789",
  "personalizedData": [UserPersonalizedDataItemInput]
}

UpdateUserSettingsPayload

Description

Autogenerated return type of UpdateUserSettings

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Whoami
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Whoami
}

UpdateWorkspaceGroupsInput

Description

Autogenerated input type of UpdateWorkspaceGroups

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
groupIds - [ID!]! An array of group ids to add to the current workspace
Example
{
  "clientMutationId": "abc123",
  "groupIds": [4]
}

UpdateWorkspaceGroupsPayload

Description

Autogenerated return type of UpdateWorkspaceGroups

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - [Group!]
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": [Group]
}

UpdateWorkspaceInput

Description

Autogenerated input type of UpdateWorkspace

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
industry - WorkspaceIndustryEnum
logoKey - String
metadata - JSON
name - String
size - WorkspaceSizeEnum
timezone - String
workspaceId - ID!
Example
{
  "clientMutationId": "xyz789",
  "industry": "CLEANING",
  "logoKey": "xyz789",
  "metadata": {},
  "name": "xyz789",
  "size": "LESS_THAN_TEN",
  "timezone": "xyz789",
  "workspaceId": "4"
}

UpdateWorkspacePayload

Description

Autogenerated return type of UpdateWorkspace

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Workspace
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Workspace
}

UpdateWorkspaceSettingsInput

Description

Autogenerated input type of UpdateWorkspaceSettings

Fields
Input Field Description
_24HourTime - Boolean
autoApproveTimeoffRequest - Boolean
autoClockOutAfterShiftEndTimeDuration - Minute
autoDeductUnpaidBreaks - Boolean
birthdayReminder - Boolean
clientMutationId - String A unique identifier for the client performing the mutation.
disabledFeatures - [WorkspaceFeatureEnum!]
employeeAvailability - EmployeeAvailabilityEnum
facialClockIn - Boolean
kioskAttendance - Boolean
locationClockIn - Boolean
locationClockInPreventIfExceeded - Boolean
locationClockInRadius - Int
missedClockEventsEmployeeNotiDelay - Minute
missedClockEventsManagerNotiDelay - Minute
mobileAttendance - Boolean
preventFinishShiftsWhenHavingUncompletedTasks - Boolean
privateScheduling - Boolean
publicApprovedTimeoffRequest - Boolean
shiftClockInEarlyThreshold - Minute
shiftClockOutEarlyThreshold - Minute
shiftEndTimeOffset - Minute
shiftStartTimeOffset - Minute
timesheetAutoRound - Boolean
timesheetRoundBreakIncrement - Minute
timesheetRoundBreakToScheduledBreakIfShorter - Boolean
timesheetRoundBreakType - TimesheetRoundBreakTypeEnum
timesheetRoundEndTimeIncrement - Minute
timesheetRoundEndTimeToScheduledTimeIfAfter - Boolean
timesheetRoundEndTimeToScheduledTimeIfEarlier - Boolean
timesheetRoundEndTimeType - TimesheetRoundTimeTypeEnum
timesheetRoundStartTimeIncrement - Minute
timesheetRoundStartTimeToScheduledTimeIfEarlier - Boolean
timesheetRoundStartTimeType - TimesheetRoundTimeTypeEnum
typicalWorkDuration - Minute
unscheduledShifts - Boolean
weekStartsOn - Int
wifiClockIn - Boolean
workAniversaryReminder - Boolean
workspaceId - ID!
Example
{
  "_24HourTime": true,
  "autoApproveTimeoffRequest": true,
  "autoClockOutAfterShiftEndTimeDuration": Minute,
  "autoDeductUnpaidBreaks": true,
  "birthdayReminder": false,
  "clientMutationId": "xyz789",
  "disabledFeatures": ["ADVANCED_SCHEDULING"],
  "employeeAvailability": "APPROVAL_REQUIRED",
  "facialClockIn": true,
  "kioskAttendance": true,
  "locationClockIn": false,
  "locationClockInPreventIfExceeded": false,
  "locationClockInRadius": 123,
  "missedClockEventsEmployeeNotiDelay": Minute,
  "missedClockEventsManagerNotiDelay": Minute,
  "mobileAttendance": true,
  "preventFinishShiftsWhenHavingUncompletedTasks": false,
  "privateScheduling": false,
  "publicApprovedTimeoffRequest": true,
  "shiftClockInEarlyThreshold": Minute,
  "shiftClockOutEarlyThreshold": Minute,
  "shiftEndTimeOffset": Minute,
  "shiftStartTimeOffset": Minute,
  "timesheetAutoRound": false,
  "timesheetRoundBreakIncrement": Minute,
  "timesheetRoundBreakToScheduledBreakIfShorter": false,
  "timesheetRoundBreakType": "CLOSER",
  "timesheetRoundEndTimeIncrement": Minute,
  "timesheetRoundEndTimeToScheduledTimeIfAfter": false,
  "timesheetRoundEndTimeToScheduledTimeIfEarlier": false,
  "timesheetRoundEndTimeType": "CLOSER",
  "timesheetRoundStartTimeIncrement": Minute,
  "timesheetRoundStartTimeToScheduledTimeIfEarlier": true,
  "timesheetRoundStartTimeType": "CLOSER",
  "typicalWorkDuration": Minute,
  "unscheduledShifts": false,
  "weekStartsOn": 123,
  "wifiClockIn": false,
  "workAniversaryReminder": true,
  "workspaceId": 4
}

UpdateWorkspaceSettingsPayload

Description

Autogenerated return type of UpdateWorkspaceSettings

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Workspace
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": Workspace
}

UploadSchedulePhotoInput

Description

Autogenerated input type of UploadSchedulePhoto

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
endTime - ISO8601DateTime!
photos - [String!]!
scheduleId - ID
startTime - ISO8601DateTime!
Example
{
  "clientMutationId": "abc123",
  "endTime": ISO8601DateTime,
  "photos": ["abc123"],
  "scheduleId": 4,
  "startTime": ISO8601DateTime
}

UploadSchedulePhotoPayload

Description

Autogenerated return type of UploadSchedulePhoto

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - [SchedulePhoto!]
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": [SchedulePhoto]
}

UploaderEnum

Values
Enum Value Description

AVATAR

CHAT_ATTACHMENT

DOCUMENT_ATTACHMENT

IMPORT_REQUEST

JOB_SITE_ATTACHMENT

MESSAGE_BOARD_POST_IMAGE

PHOTO

SCHEDULE_PHOTO

SHIFT_ATTACHMENT

WORKSPACE_LOGO

Example
"AVATAR"

User

Fields
Field Name Description
address - String
avatarUrl - String
birthday - ISO8601DateTime
dataState - UserDataStateEnum
email - String
firstName - String!
groups - [Group!]
id - ID!
kioskPinCode - String
lastName - String
membershipSettings - MembershipSetting
name - String!
phoneNumber - String
roles - [RoleCodeEnum!]
sampleUser - Boolean!
schedules - [Schedule!]
state - UserStateEnum!
updatedAt - ISO8601DateTime!
Example
{
  "address": "xyz789",
  "avatarUrl": "abc123",
  "birthday": ISO8601DateTime,
  "dataState": "COMPLETE",
  "email": "xyz789",
  "firstName": "abc123",
  "groups": [Group],
  "id": 4,
  "kioskPinCode": "xyz789",
  "lastName": "abc123",
  "membershipSettings": MembershipSetting,
  "name": "abc123",
  "phoneNumber": "xyz789",
  "roles": ["CONTRACTOR"],
  "sampleUser": true,
  "schedules": [Schedule],
  "state": "ACTIVE",
  "updatedAt": ISO8601DateTime
}

UserConnection

Description

The connection type for User.

Fields
Field Name Description
edges - [UserEdge] A list of edges.
nodes - [User] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [UserEdge],
  "nodes": [User],
  "pageInfo": PageInfo,
  "totalCount": 987
}

UserDataStateEnum

Values
Enum Value Description

COMPLETE

EMAIL_MISSING

Example
"COMPLETE"

UserEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - User The item at the end of the edge.
Example
{
  "cursor": "abc123",
  "node": User
}

UserFilter

Fields
Input Field Description
_or - [UserFilter!]
groupIds - [ID!]
keyword - String
offOnDate - ISO8601DateTime
scheduleIds - [ID!]
userDataStates - [UserDataStateEnum!]
userStates - [UserStateEnum!]
workingOnDate - ISO8601DateTime
Example
{
  "_or": [UserFilter],
  "groupIds": ["4"],
  "keyword": "xyz789",
  "offOnDate": ISO8601DateTime,
  "scheduleIds": ["4"],
  "userDataStates": ["COMPLETE"],
  "userStates": ["ACTIVE"],
  "workingOnDate": ISO8601DateTime
}

UserInput

Fields
Input Field Description
address - String
avatarKey - String
birthday - ISO8601DateTime
email - String!
firstName - String
groupIds - [ID!]
lastName - String
phoneNumber - String
roles - [RoleCodeEnum!]
scheduleIds - [ID!]
settings - UserSettingsInput
timezone - String
Example
{
  "address": "abc123",
  "avatarKey": "abc123",
  "birthday": ISO8601DateTime,
  "email": "abc123",
  "firstName": "abc123",
  "groupIds": [4],
  "lastName": "xyz789",
  "phoneNumber": "abc123",
  "roles": ["CONTRACTOR"],
  "scheduleIds": ["4"],
  "settings": UserSettingsInput,
  "timezone": "xyz789"
}

UserOrder

Fields
Input Field Description
column - UserOrderColumnsEnum!
direction - OrderOrientEnum!
Example
{"column": "NAME", "direction": "ASC"}

UserOrderColumnsEnum

Values
Enum Value Description

NAME

Example
"NAME"

UserPersonalizedDataItem

Fields
Field Name Description
createdAt - ISO8601DateTime!
key - String!
updatedAt - ISO8601DateTime!
value - String!
Example
{
  "createdAt": ISO8601DateTime,
  "key": "abc123",
  "updatedAt": ISO8601DateTime,
  "value": "abc123"
}

UserPersonalizedDataItemInput

Fields
Input Field Description
key - String
value - String
Example
{
  "key": "xyz789",
  "value": "xyz789"
}

UserSetting

Fields
Field Name Description
_24HourTime - Boolean!
personalizedData - [UserPersonalizedDataItem!]!
Example
{
  "_24HourTime": true,
  "personalizedData": [UserPersonalizedDataItem]
}

UserSettingsInput

Fields
Input Field Description
maxDurationPerWeek - Minute
typicalWorkDuration - Minute
Example
{
  "maxDurationPerWeek": Minute,
  "typicalWorkDuration": Minute
}

UserStateEnum

Values
Enum Value Description

ACTIVE

DEACTIVATED

Example
"ACTIVE"

VerifyJoinCodeInput

Description

Autogenerated input type of VerifyJoinCode

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
code - String!
Example
{
  "clientMutationId": "xyz789",
  "code": "xyz789"
}

VerifyJoinCodePayload

Description

Autogenerated return type of VerifyJoinCode

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - VerifyJoinCodeResult
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": VerifyJoinCodeResult
}

VerifyJoinCodeResult

Fields
Field Name Description
requireApproval - Boolean!
users - [User!]!
workspaceId - String!
workspaceName - String!
Example
{
  "requireApproval": false,
  "users": [User],
  "workspaceId": "xyz789",
  "workspaceName": "xyz789"
}

VerifyKioskOtpInput

Description

Autogenerated input type of VerifyKioskOtp

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
loginSessionId - ID!
otpCode - String!
Example
{
  "clientMutationId": "abc123",
  "loginSessionId": 4,
  "otpCode": "abc123"
}

VerifyKioskOtpPayload

Description

Autogenerated return type of VerifyKioskOtp

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - KioskJwtPayload
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": KioskJwtPayload
}

VerifyOtpInput

Description

Autogenerated input type of VerifyOtp

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
loginSessionId - ID!
otpCode - String!
Example
{
  "clientMutationId": "abc123",
  "loginSessionId": "4",
  "otpCode": "abc123"
}

VerifyOtpPayload

Description

Autogenerated return type of VerifyOtp

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - JwtPayload
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": JwtPayload
}

ViewMessageBoardPostInput

Description

Autogenerated input type of ViewMessageBoardPost

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
messageBoardPostId - ID!
Example
{
  "clientMutationId": "abc123",
  "messageBoardPostId": 4
}

ViewMessageBoardPostPayload

Description

Autogenerated return type of ViewMessageBoardPost

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - MessageBoardPost
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": MessageBoardPost
}

VisibilityEnum

Values
Enum Value Description

PRIVATE

PUBLIC

Example
"PRIVATE"

Whoami

Fields
Field Name Description
address - String
avatarUrl - String
birthday - ISO8601DateTime
createdAt - ISO8601DateTime!
email - String
firstName - String
id - ID!
kioskPinCode - String
language - String!
lastName - String
membershipSettings - MembershipSetting
name - String!
phoneNumber - String
roles - [Role!]!
settings - UserSetting
timezone - String!
Example
{
  "address": "xyz789",
  "avatarUrl": "xyz789",
  "birthday": ISO8601DateTime,
  "createdAt": ISO8601DateTime,
  "email": "abc123",
  "firstName": "abc123",
  "id": "4",
  "kioskPinCode": "xyz789",
  "language": "xyz789",
  "lastName": "abc123",
  "membershipSettings": MembershipSetting,
  "name": "xyz789",
  "phoneNumber": "abc123",
  "roles": [Role],
  "settings": UserSetting,
  "timezone": "abc123"
}

WithdrawLeaveInput

Description

Autogenerated input type of WithdrawLeave

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
leaveId - ID!
Example
{"clientMutationId": "xyz789", "leaveId": 4}

WithdrawLeavePayload

Description

Autogenerated return type of WithdrawLeave

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - LeaveRequest
Example
{
  "clientMutationId": "abc123",
  "errors": [MutationError],
  "result": LeaveRequest
}

WithdrawTimesheetInput

Description

Autogenerated input type of WithdrawTimesheet

Fields
Input Field Description
clientMutationId - String A unique identifier for the client performing the mutation.
timesheetId - ID!
Example
{
  "clientMutationId": "abc123",
  "timesheetId": "4"
}

WithdrawTimesheetPayload

Description

Autogenerated return type of WithdrawTimesheet

Fields
Field Name Description
clientMutationId - String A unique identifier for the client performing the mutation.
errors - [MutationError!]!
result - Timesheet
Example
{
  "clientMutationId": "xyz789",
  "errors": [MutationError],
  "result": Timesheet
}

Workspace

Fields
Field Name Description
createdAt - ISO8601DateTime!
id - ID!
industry - WorkspaceIndustryEnum
logoUrl - String
metadata - JSON
meteredUsages - [MeteredUsage!]!
name - String!
settings - WorkspaceSetting!
size - WorkspaceSizeEnum
timezone - String!
Example
{
  "createdAt": ISO8601DateTime,
  "id": 4,
  "industry": "CLEANING",
  "logoUrl": "abc123",
  "metadata": {},
  "meteredUsages": [MeteredUsage],
  "name": "abc123",
  "settings": WorkspaceSetting,
  "size": "LESS_THAN_TEN",
  "timezone": "abc123"
}

WorkspaceConnection

Description

The connection type for Workspace.

Fields
Field Name Description
edges - [WorkspaceEdge] A list of edges.
nodes - [Workspace] A list of nodes.
pageInfo - PageInfo! Information to aid in pagination.
totalCount - Int!
Example
{
  "edges": [WorkspaceEdge],
  "nodes": [Workspace],
  "pageInfo": PageInfo,
  "totalCount": 123
}

WorkspaceEdge

Description

An edge in a connection.

Fields
Field Name Description
cursor - String! A cursor for use in pagination.
node - Workspace The item at the end of the edge.
Example
{
  "cursor": "xyz789",
  "node": Workspace
}

WorkspaceFeatureEnum

Values
Enum Value Description

ADVANCED_SCHEDULING

CRM

DOCUMENT

MESSAGE_BOARD

MESSAGING

PAID_TIME_OFF

REPORTS

SCHEDULING

STANDARD_SCHEDULING

TASKING

TIMESHEET

TIME_ATTENDANCE

Example
"ADVANCED_SCHEDULING"

WorkspaceGetStartedStep

Fields
Field Name Description
id - ID!
name - WorkspaceGetStartedStepNameEnum!
order - Int!
state - GetStartedStepStateEnum!
Example
{"id": 4, "name": "ADD_YOUR_TEAM", "order": 987, "state": "FINISHED"}

WorkspaceGetStartedStepNameEnum

Values
Enum Value Description

ADD_YOUR_TEAM

BUILD_YOUR_FIRST_SCHEDULE

TRY_WEB_APP

VIEW_PRODUCT_GUIDE

WORKSPACE_DETAILS

Example
"ADD_YOUR_TEAM"

WorkspaceIndustryEnum

Values
Enum Value Description

CLEANING

CONSTRUCTION

ENTERTAINMENT

FIELD_SERVICES

FOOD_BEVERAGES

HEALTHCARE

HOSPITALITY

LOGISTICS

OTHER

RETAIL

Example
"CLEANING"

WorkspaceInfoInput

Fields
Input Field Description
industry - WorkspaceIndustryEnum
metadata - JSON
name - String!
redemptionCode - String
size - WorkspaceSizeEnum
timezone - String!
Example
{
  "industry": "CLEANING",
  "metadata": {},
  "name": "abc123",
  "redemptionCode": "xyz789",
  "size": "LESS_THAN_TEN",
  "timezone": "abc123"
}

WorkspaceSetting

Fields
Field Name Description
_24HourTime - Boolean!
autoApproveTimeoffRequest - Boolean!
autoClockOutAfterShiftEndTimeDuration - Minute!
autoDeductUnpaidBreaks - Boolean!
birthdayReminder - Boolean!
disabledFeatures - [WorkspaceFeatureEnum!]!
employeeAvailability - EmployeeAvailabilityEnum!
facialClockIn - Boolean!
hadDemo - Boolean!
hasSampleData - Boolean!
kioskAttendance - Boolean!
locationClockIn - Boolean!
locationClockInPreventIfExceeded - Boolean!
locationClockInRadius - Int!
missedClockEventsEmployeeNotiDelay - Minute!
missedClockEventsManagerNotiDelay - Minute!
mobileAttendance - Boolean!
preventFinishShiftsWhenHavingUncompletedTasks - Boolean!
privateScheduling - Boolean!
publicApprovedTimeoffRequest - Boolean!
shiftClockInEarlyThreshold - Minute!
shiftClockOutEarlyThreshold - Minute!
shiftEndTimeOffset - Minute!
shiftStartTimeOffset - Minute!
timesheetAutoRound - Boolean!
timesheetRoundBreakIncrement - Minute!
timesheetRoundBreakToScheduledBreakIfShorter - Boolean!
timesheetRoundBreakType - TimesheetRoundBreakTypeEnum!
timesheetRoundEndTimeIncrement - Minute!
timesheetRoundEndTimeToScheduledTimeIfAfter - Boolean!
timesheetRoundEndTimeToScheduledTimeIfEarlier - Boolean!
timesheetRoundEndTimeType - TimesheetRoundTimeTypeEnum!
timesheetRoundStartTimeIncrement - Minute!
timesheetRoundStartTimeToScheduledTimeIfEarlier - Boolean!
timesheetRoundStartTimeType - TimesheetRoundTimeTypeEnum!
typicalWorkDuration - Minute!
unscheduledShifts - Boolean!
weekStartsOn - Int!
wifiClockIn - Boolean!
workAniversaryReminder - Boolean!
Example
{
  "_24HourTime": true,
  "autoApproveTimeoffRequest": true,
  "autoClockOutAfterShiftEndTimeDuration": Minute,
  "autoDeductUnpaidBreaks": false,
  "birthdayReminder": false,
  "disabledFeatures": ["ADVANCED_SCHEDULING"],
  "employeeAvailability": "APPROVAL_REQUIRED",
  "facialClockIn": false,
  "hadDemo": false,
  "hasSampleData": false,
  "kioskAttendance": true,
  "locationClockIn": true,
  "locationClockInPreventIfExceeded": false,
  "locationClockInRadius": 123,
  "missedClockEventsEmployeeNotiDelay": Minute,
  "missedClockEventsManagerNotiDelay": Minute,
  "mobileAttendance": true,
  "preventFinishShiftsWhenHavingUncompletedTasks": true,
  "privateScheduling": false,
  "publicApprovedTimeoffRequest": false,
  "shiftClockInEarlyThreshold": Minute,
  "shiftClockOutEarlyThreshold": Minute,
  "shiftEndTimeOffset": Minute,
  "shiftStartTimeOffset": Minute,
  "timesheetAutoRound": true,
  "timesheetRoundBreakIncrement": Minute,
  "timesheetRoundBreakToScheduledBreakIfShorter": true,
  "timesheetRoundBreakType": "CLOSER",
  "timesheetRoundEndTimeIncrement": Minute,
  "timesheetRoundEndTimeToScheduledTimeIfAfter": false,
  "timesheetRoundEndTimeToScheduledTimeIfEarlier": false,
  "timesheetRoundEndTimeType": "CLOSER",
  "timesheetRoundStartTimeIncrement": Minute,
  "timesheetRoundStartTimeToScheduledTimeIfEarlier": true,
  "timesheetRoundStartTimeType": "CLOSER",
  "typicalWorkDuration": Minute,
  "unscheduledShifts": false,
  "weekStartsOn": 987,
  "wifiClockIn": false,
  "workAniversaryReminder": false
}

WorkspaceSizeEnum

Values
Enum Value Description

LESS_THAN_TEN

MORE_THAN_FIFTY

TEN_TO_TWENTY

TWENTY_TO_FIFTY

Example
"LESS_THAN_TEN"