Factbird GraphQL API

The Factbird API is a GraphQL API which, unlike REST, is served at the same endpoint and uses a query to request specific fields in a nested JSON structure. The following documentation lists the different queries and mutations that we support including examples of how such data would look like.

To communicate with our API the following headers must be provided:

Accept: application/json
Content-Type: application/json
Authorization: <api-token>

To request an API token, contact our support on the mail listed to the right.

This is the same API that is used by the Factbird application and you may inspect the network requests there to find concrete examples of possible queries and/or mutations. Any HTTP client supporting TLS 1+ may be used to communicate with the API, but may require custom configurations in setups like PowerBI, Alteryx, SAP, etc.

On the left hand side, you may expand the available queries in order to fetch specific information from the system. Mutations are changes you may make to the system, e.g. create a batch, register stop etc.

HTTP GET and -POST requests are used to perform queries and mutations, respectively. For GET requests, variables must be supplied as query parameters and be URL encoded.

A GraphQL request payload takes the following JSON shape:

{
  "query": "<GraphQL Query>",
  "variables": {
    "argument": "value"
  }
}

To learn more about GraphQL, see https://graphql.org/.

Contact

Support

support@factbird.com

API Endpoints
https://api.cloud.factbird.com

Queries

_entities

Response

Returns [_Entity]!

Arguments
Name Description
representations - [_Any!]!

Example

Query
query _entities($representations: [_Any!]!) {
  _entities(representations: $representations) {
    ... on Line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{"representations": [_Any]}
Response
{"data": {"_entities": [Line]}}

_service

Response

Returns a _Service!

Example

Query
query _service {
  _service {
    sdl
  }
}
Response
{"data": {"_service": {"sdl": "abc123"}}}

actionPlanCategories

Internal use only
Response

Returns [ActionPlanCategory!]!

Example

Query
query ActionPlanCategories {
  actionPlanCategories {
    id
    meta {
      name
      languageCode
    }
    color
    version
    nodeId
  }
}
Response
{
  "data": {
    "actionPlanCategories": [
      {
        "id": "abc123",
        "meta": [ActionPlanCategoryMeta],
        "color": "xyz789",
        "version": 123,
        "nodeId": "xyz789"
      }
    ]
  }
}

activities

Response

Returns an ActivityConnection!

Arguments
Name Description
after - String
before - String
first - Int
last - Int
filter - ActivityFilter
orderBy - ActivityOrdering

Example

Query
query Activities(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int,
  $filter: ActivityFilter,
  $orderBy: ActivityOrdering
) {
  activities(
    after: $after,
    before: $before,
    first: $first,
    last: $last,
    filter: $filter,
    orderBy: $orderBy
  ) {
    pageInfo {
      hasPreviousPage
      hasNextPage
      startCursor
      endCursor
    }
    edges {
      node {
        ...ActivityFragment
      }
      cursor
    }
    nodes {
      id
      status
      activityTemplate {
        ...ActivityTemplateFragment
      }
      trigger {
        ...TriggerFragment
      }
      customFormData {
        ...CustomFormDataFragment
      }
      stopRegistration {
        ...ActivityStopRegistrationFragment
      }
      createdAt
      archivedAt
      version
      locationId
      isPassing
      batch {
        ...BatchFragment
      }
      line {
        ...LineFragment
      }
    }
  }
}
Variables
{
  "after": "abc123",
  "before": "abc123",
  "first": 123,
  "last": 987,
  "filter": ActivityFilter,
  "orderBy": ActivityOrdering
}
Response
{
  "data": {
    "activities": {
      "pageInfo": PageInfo,
      "edges": [ActivityEdge],
      "nodes": [Activity]
    }
  }
}

activity

Response

Returns an Activity!

Arguments
Name Description
id - ActivityId!

Example

Query
query Activity($id: ActivityId!) {
  activity(id: $id) {
    id
    status
    activityTemplate {
      id
      title
      description
      translations {
        ...ActivityTemplateTranslationFragment
      }
      customFormId
      customFormVersion
      triggers {
        ...TriggerFragment
      }
      expiresAfterMinutes
      locationIds
      version
      createdAt
      deletedAt
      versions {
        ...VersionedActivityTemplatesConnectionFragment
      }
      customForm {
        ...CustomFormFragment
      }
      tags {
        ...ActivityTagFragment
      }
    }
    trigger {
      id
      type {
        ...ActivityTriggerTypeFragment
      }
      conditions {
        ...TriggerConditionsFragment
      }
      isActive
    }
    customFormData {
      formId
      formVersion
      values {
        ...CustomFieldValueFragment
      }
      initials
      form {
        ...CustomFormFragment
      }
      schema
    }
    stopRegistration {
      start
      end
      comment
      initials
      stopCause {
        ...ActivityStopCauseFragment
      }
    }
    createdAt
    archivedAt
    version
    locationId
    isPassing
    batch {
      actualStart
      actualStop
      amount
      batchId
      batchNumber
      comment
      lineId
      manualScrap
      plannedStart
      produced
      product {
        ...ProductFragment
      }
      sorting
      state
      tags
      controls {
        ...BatchControlFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
      scrap {
        ...SampleFragment
      }
      createdBy {
        ...UserFragment
      }
      line {
        ...LineFragment
      }
      plannedEtc
      actualEtc
    }
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{"id": ActivityId}
Response
{
  "data": {
    "activity": {
      "id": ActivityId,
      "status": "PENDING",
      "activityTemplate": ActivityTemplate,
      "trigger": Trigger,
      "customFormData": CustomFormData,
      "stopRegistration": ActivityStopRegistration,
      "createdAt": "2007-12-03T10:15:30Z",
      "archivedAt": "2007-12-03T10:15:30Z",
      "version": 987,
      "locationId": NodeId,
      "isPassing": true,
      "batch": Batch,
      "line": Line
    }
  }
}

activityCountByStatus

Internal use only
Response

Returns a CountByStatus!

Arguments
Name Description
filter - ActivityFilter

Example

Query
query ActivityCountByStatus($filter: ActivityFilter) {
  activityCountByStatus(filter: $filter) {
    passed
    failed
    noValidation
    pending
    skipped
  }
}
Variables
{"filter": ActivityFilter}
Response
{
  "data": {
    "activityCountByStatus": {
      "passed": 987,
      "failed": 987,
      "noValidation": 987,
      "pending": 987,
      "skipped": 987
    }
  }
}

activityTag

Internal use only
Response

Returns an ActivityTag!

Arguments
Name Description
id - ActivityTagId!

Example

Query
query ActivityTag($id: ActivityTagId!) {
  activityTag(id: $id) {
    id
    name
    createdAt
    modifiedAt
    deletedAt
    templateCount
  }
}
Variables
{"id": ActivityTagId}
Response
{
  "data": {
    "activityTag": {
      "id": ActivityTagId,
      "name": "abc123",
      "createdAt": "2007-12-03T10:15:30Z",
      "modifiedAt": "2007-12-03T10:15:30Z",
      "deletedAt": "2007-12-03T10:15:30Z",
      "templateCount": 123
    }
  }
}

activityTags

Internal use only
Response

Returns [ActivityTag!]!

Example

Query
query ActivityTags {
  activityTags {
    id
    name
    createdAt
    modifiedAt
    deletedAt
    templateCount
  }
}
Response
{
  "data": {
    "activityTags": [
      {
        "id": ActivityTagId,
        "name": "abc123",
        "createdAt": "2007-12-03T10:15:30Z",
        "modifiedAt": "2007-12-03T10:15:30Z",
        "deletedAt": "2007-12-03T10:15:30Z",
        "templateCount": 987
      }
    ]
  }
}

activityTemplate

Internal use only
Response

Returns an ActivityTemplate!

Arguments
Name Description
id - ActivityTemplateId!
version - Int

Example

Query
query ActivityTemplate(
  $id: ActivityTemplateId!,
  $version: Int
) {
  activityTemplate(
    id: $id,
    version: $version
  ) {
    id
    title
    description
    translations {
      title
      description
      languageCode
    }
    customFormId
    customFormVersion
    triggers {
      id
      type {
        ...ActivityTriggerTypeFragment
      }
      conditions {
        ...TriggerConditionsFragment
      }
      isActive
    }
    expiresAfterMinutes
    locationIds
    version
    createdAt
    deletedAt
    versions {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...VersionedActivityTemplateEdgeFragment
      }
      nodes {
        ...ActivityTemplateFragment
      }
    }
    customForm {
      id
      title
      description
      translations {
        ...CustomFormTranslationFragment
      }
      fields {
        ...CustomFormFieldFragment
      }
      requireInitials
      version
      createdAt
      deletedAt
    }
    tags {
      id
      name
      createdAt
      modifiedAt
      deletedAt
      templateCount
    }
  }
}
Variables
{"id": ActivityTemplateId, "version": 987}
Response
{
  "data": {
    "activityTemplate": {
      "id": ActivityTemplateId,
      "title": "abc123",
      "description": "abc123",
      "translations": [ActivityTemplateTranslation],
      "customFormId": CustomFormId,
      "customFormVersion": 987,
      "triggers": [Trigger],
      "expiresAfterMinutes": 123,
      "locationIds": [NodeId],
      "version": 987,
      "createdAt": "2007-12-03T10:15:30Z",
      "deletedAt": "2007-12-03T10:15:30Z",
      "versions": VersionedActivityTemplatesConnection,
      "customForm": CustomForm,
      "tags": [ActivityTag]
    }
  }
}

activityTemplateCount

Internal use only
Response

Returns an Int!

Arguments
Name Description
filter - ActivityTemplateFilter

Example

Query
query ActivityTemplateCount($filter: ActivityTemplateFilter) {
  activityTemplateCount(filter: $filter)
}
Variables
{"filter": ActivityTemplateFilter}
Response
{"data": {"activityTemplateCount": 987}}

activityTemplates

Internal use only
Response

Returns an ActivityTemplateConnection!

Arguments
Name Description
filter - ActivityTemplateFilter
after - String
before - String
first - Int
last - Int

Example

Query
query ActivityTemplates(
  $filter: ActivityTemplateFilter,
  $after: String,
  $before: String,
  $first: Int,
  $last: Int
) {
  activityTemplates(
    filter: $filter,
    after: $after,
    before: $before,
    first: $first,
    last: $last
  ) {
    pageInfo {
      hasPreviousPage
      hasNextPage
      startCursor
      endCursor
    }
    edges {
      node {
        ...ActivityTemplateFragment
      }
      cursor
    }
    nodes {
      id
      title
      description
      translations {
        ...ActivityTemplateTranslationFragment
      }
      customFormId
      customFormVersion
      triggers {
        ...TriggerFragment
      }
      expiresAfterMinutes
      locationIds
      version
      createdAt
      deletedAt
      versions {
        ...VersionedActivityTemplatesConnectionFragment
      }
      customForm {
        ...CustomFormFragment
      }
      tags {
        ...ActivityTagFragment
      }
    }
  }
}
Variables
{
  "filter": ActivityTemplateFilter,
  "after": "abc123",
  "before": "xyz789",
  "first": 123,
  "last": 123
}
Response
{
  "data": {
    "activityTemplates": {
      "pageInfo": PageInfo,
      "edges": [ActivityTemplateEdge],
      "nodes": [ActivityTemplate]
    }
  }
}

andon

Description

Andon is the operator-technician communication maintenance module of Factbird. See the Andon type for more details.

Response

Returns [Andon!]!

Arguments
Name Description
companyId - [ID!]

Example

Query
query Andon($companyId: [ID!]) {
  andon(companyId: $companyId) {
    calls {
      id
      urgency
      requestedSupport
      role {
        ...AndonRoleFragment
      }
      tags {
        ...TagFragment
      }
      lineId
      workOrder {
        ...WorkOrderFragment
      }
      action {
        ...ActionMapFragment
      }
      lastMessage
      line {
        ...LineFragment
      }
    }
    companyId
    extensions {
      type
      service
    }
    schedule {
      events {
        ...MaintenanceEventFragment
      }
    }
    tags {
      id
      lineId
      value
    }
    supportTypes {
      id
      name
    }
    workOrderKeys {
      tagId
      key
    }
    workers {
      id
      name
      email
      phoneNumber
      userSub
      role {
        ...AndonRoleFragment
      }
      roles {
        ...AndonRoleFragment
      }
      preferredSchedules {
        ...AndonScheduleFragment
      }
    }
    roles {
      id
      name
      escalationConfiguration {
        ...EscalationConfigurationFragment
      }
    }
    schedules {
      id
      name
      lineIds
      shifts {
        ...AndonShiftFragment
      }
      shift {
        ...AndonShiftFragment
      }
      lines {
        ...LineFragment
      }
    }
    _schedule {
      id
      name
      lineIds
      shifts {
        ...AndonShiftFragment
      }
      shift {
        ...AndonShiftFragment
      }
      lines {
        ...LineFragment
      }
    }
  }
}
Variables
{"companyId": [4]}
Response
{
  "data": {
    "andon": [
      {
        "calls": [Call],
        "companyId": 4,
        "extensions": [Extension],
        "schedule": MaintenanceSchedule,
        "tags": [Tag],
        "supportTypes": [SupportType],
        "workOrderKeys": [WorkOrderKey],
        "workers": [Worker],
        "roles": [AndonRole],
        "schedules": [AndonSchedule],
        "_schedule": AndonSchedule
      }
    ]
  }
}

apiTokens

Description

Lists API tokens issued for the whole company if permitted to do so.

Response

Returns [APIToken!]!

Arguments
Name Description
userSub - ID

Example

Query
query ApiTokens($userSub: ID) {
  apiTokens(userSub: $userSub) {
    tokenId
    name
    description
    generatedAt
    expiration
    isActive
    userSub
  }
}
Variables
{"userSub": "4"}
Response
{
  "data": {
    "apiTokens": [
      {
        "tokenId": 4,
        "name": "abc123",
        "description": "xyz789",
        "generatedAt": "2007-12-03",
        "expiration": 123.45,
        "isActive": false,
        "userSub": 4
      }
    ]
  }
}

assistantConversation

Internal use only
Response

Returns an AssistantConversation!

Arguments
Name Description
conversationId - UUID!

Example

Query
query AssistantConversation($conversationId: UUID!) {
  assistantConversation(conversationId: $conversationId) {
    id
    messages {
      role
      messageId
      status
      content {
        ... on ConversationContentText {
          ...ConversationContentTextFragment
        }
        ... on ConversationContentVisualizationOptions {
          ...ConversationContentVisualizationOptionsFragment
        }
      }
    }
  }
}
Variables
{
  "conversationId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
}
Response
{
  "data": {
    "assistantConversation": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "messages": [ConversationMessage]
    }
  }
}

bestPendingGoldenBatch

Internal use only
Description

Get the pending golden batch with the highest score for a product on a line.

Response

Returns a GoldenBatch

Arguments
Name Description
lineId - ID!
productId - ID!

Example

Query
query BestPendingGoldenBatch(
  $lineId: ID!,
  $productId: ID!
) {
  bestPendingGoldenBatch(
    lineId: $lineId,
    productId: $productId
  ) {
    batchId
    lineId
    productId
    oee1
    state
    acceptedAt
  }
}
Variables
{"lineId": 4, "productId": 4}
Response
{
  "data": {
    "bestPendingGoldenBatch": {
      "batchId": "4",
      "lineId": 4,
      "productId": 4,
      "oee1": 987.65,
      "state": "xyz789",
      "acceptedAt": "2007-12-03T10:15:30Z"
    }
  }
}

claims

Response

Returns a Claims!

Example

Query
query Claims {
  claims {
    fullAccess
    index {
      name
      id
    }
    resources {
      key
      claims
    }
  }
}
Response
{
  "data": {
    "claims": {
      "fullAccess": "READ",
      "index": [Claim],
      "resources": [Resource]
    }
  }
}

companies

Use 'company' instead.
Response

Returns [Company!]!

Example

Query
query Companies {
  companies {
    id
    name
    groups {
      id
      defaultGroup
      externalIds
      peripheralIds
      lineIds
      owner {
        ...CompanyFragment
      }
      name
      description
      nodeId
      role {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      sensors {
        ...SensorFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralsPaginated {
        ...PeripheralsPaginatedFragment
      }
      lines {
        ...LineFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
    }
    roles {
      id
      name
      type
      permissions {
        ...PermissionFragment
      }
    }
    users {
      pagination {
        ...TokenFragment
      }
      items {
        ...UserFragment
      }
    }
    group {
      id
      defaultGroup
      externalIds
      peripheralIds
      lineIds
      owner {
        ...CompanyFragment
      }
      name
      description
      nodeId
      role {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      sensors {
        ...SensorFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralsPaginated {
        ...PeripheralsPaginatedFragment
      }
      lines {
        ...LineFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
    }
    appClients {
      id
      name
      groups {
        ...GroupFragment
      }
    }
    trialStatus {
      trialStart
      trialEnd
    }
    authConfiguration {
      type
    }
    factoryOverviewSettings {
      oeeType
    }
  }
}
Response
{
  "data": {
    "companies": [
      {
        "id": 4,
        "name": "xyz789",
        "groups": [Group],
        "roles": [Role],
        "users": UserList,
        "group": Group,
        "appClients": [AppClient],
        "trialStatus": TrialStatus,
        "authConfiguration": AuthConfiguration,
        "factoryOverviewSettings": FactoryOverviewSettings
      }
    ]
  }
}

company

Response

Returns a Company!

Example

Query
query Company {
  company {
    id
    name
    groups {
      id
      defaultGroup
      externalIds
      peripheralIds
      lineIds
      owner {
        ...CompanyFragment
      }
      name
      description
      nodeId
      role {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      sensors {
        ...SensorFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralsPaginated {
        ...PeripheralsPaginatedFragment
      }
      lines {
        ...LineFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
    }
    roles {
      id
      name
      type
      permissions {
        ...PermissionFragment
      }
    }
    users {
      pagination {
        ...TokenFragment
      }
      items {
        ...UserFragment
      }
    }
    group {
      id
      defaultGroup
      externalIds
      peripheralIds
      lineIds
      owner {
        ...CompanyFragment
      }
      name
      description
      nodeId
      role {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      sensors {
        ...SensorFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralsPaginated {
        ...PeripheralsPaginatedFragment
      }
      lines {
        ...LineFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
    }
    appClients {
      id
      name
      groups {
        ...GroupFragment
      }
    }
    trialStatus {
      trialStart
      trialEnd
    }
    authConfiguration {
      type
    }
    factoryOverviewSettings {
      oeeType
    }
  }
}
Response
{
  "data": {
    "company": {
      "id": 4,
      "name": "abc123",
      "groups": [Group],
      "roles": [Role],
      "users": UserList,
      "group": Group,
      "appClients": [AppClient],
      "trialStatus": TrialStatus,
      "authConfiguration": AuthConfiguration,
      "factoryOverviewSettings": FactoryOverviewSettings
    }
  }
}

consolidatedData

Description

Get consolidated/aggregated data and statistics for a list of lines, over a period of time.

Response

Returns a ConsolidatedData!

Arguments
Name Description
lineIds - [ID!]
time - Time!

Example

Query
query ConsolidatedData(
  $lineIds: [ID!],
  $time: Time!
) {
  consolidatedData(
    lineIds: $lineIds,
    time: $time
  ) {
    timeRange {
      from
      to
    }
    oee {
      oee1
      oee2
      oee3
      tcu
      totalEquipmentTime
      mannedTime
      operatingTime
      productionTime
      valuedOperatingTime
      scrapLoss
      reworkLoss
      speedLoss
      oee1MaxProduced
      oee2MaxProduced
      oee3MaxProduced
      tcuMaxProduced
    }
    stopsData {
      lineId
      lineName
      stopStats {
        ...StopStatsFragment
      }
    }
  }
}
Variables
{
  "lineIds": ["4"],
  "time": Time
}
Response
{
  "data": {
    "consolidatedData": {
      "timeRange": TimeRange,
      "oee": OEE,
      "stopsData": [LineStopStats]
    }
  }
}

controlReceipts

Response

Returns a ControlReceiptList!

Arguments
Name Description
userPoolId - ID
filter - ControlReceiptFilter
maxItems - Int
paginationToken - ID

Example

Query
query ControlReceipts(
  $userPoolId: ID,
  $filter: ControlReceiptFilter,
  $maxItems: Int,
  $paginationToken: ID
) {
  controlReceipts(
    userPoolId: $userPoolId,
    filter: $filter,
    maxItems: $maxItems,
    paginationToken: $paginationToken
  ) {
    nextToken
    items {
      controlReceiptId
      userPoolId
      name
      description
      entries {
        ...ControlReceiptEntryFragment
      }
      deleted
      attachedProducts {
        ...ProductFragment
      }
    }
  }
}
Variables
{
  "userPoolId": 4,
  "filter": ControlReceiptFilter,
  "maxItems": 987,
  "paginationToken": "4"
}
Response
{
  "data": {
    "controlReceipts": {
      "nextToken": 4,
      "items": [ControlReceipt]
    }
  }
}

customizableReport

Internal use only
Description

Get a customizable report by ID. Returns null if not found or user doesn't have access.

Response

Returns a CustomizableReport

Arguments
Name Description
id - UUID!

Example

Query
query CustomizableReport($id: UUID!) {
  customizableReport(id: $id) {
    id
    title
    widgets {
      id
      type
      title
      parameters {
        ...WidgetParametersFragment
      }
      customConfig {
        ... on KpiWidgetCustomConfig {
          ...KpiWidgetCustomConfigFragment
        }
        ... on GaugeWidgetCustomConfig {
          ...GaugeWidgetCustomConfigFragment
        }
        ... on BarWidgetCustomConfig {
          ...BarWidgetCustomConfigFragment
        }
      }
    }
    widgetLayouts {
      widgetId
      rowIndex
      orderInRow
    }
    version
    currentUserAccessType
    createdBy
    createdAt
    updatedAt
  }
}
Variables
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
}
Response
{
  "data": {
    "customizableReport": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "title": "abc123",
      "widgets": [Widget],
      "widgetLayouts": [WidgetLayout],
      "version": 123,
      "currentUserAccessType": "VIEW",
      "createdBy": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

customizableReports

Internal use only
Description

Get a list of customizable reports the user has access to. Ordered alphabetically by title by default.

Arguments
Name Description
after - String
before - String
first - Int
last - Int

Example

Query
query CustomizableReports(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int
) {
  customizableReports(
    after: $after,
    before: $before,
    first: $first,
    last: $last
  ) {
    pageInfo {
      hasPreviousPage
      hasNextPage
      startCursor
      endCursor
    }
    edges {
      node {
        ...CustomizableReportSummaryFragment
      }
      cursor
    }
    nodes {
      id
      title
      createdBy
      createdAt
      updatedAt
      currentUserAccessType
    }
  }
}
Variables
{
  "after": "xyz789",
  "before": "xyz789",
  "first": 987,
  "last": 987
}
Response
{
  "data": {
    "customizableReports": {
      "pageInfo": PageInfo,
      "edges": [CustomizableReportSummaryEdge],
      "nodes": [CustomizableReportSummary]
    }
  }
}

device

Description

Access a device by identifier.

`uuid' is deprecated and used to represent the allocated software identifier.

`id' refers to the hardware identifier of the device.

Response

Returns a Device!

Arguments
Name Description
uuid - ID
id - ID

Example

Query
query Device(
  $uuid: ID,
  $id: ID
) {
  device(
    uuid: $uuid,
    id: $id
  ) {
    _id
    uuid
    owner
    type
    hardwareId
    name
    numInputPorts
    sensor {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
    status {
      firmwareVersions {
        ...FirmwareVersionsFragment
      }
      hardwareVersion
    }
    network {
      wifi {
        ...WiFiConfigShadowFragment
      }
      connection
      general {
        ...GeneralNetworkShadowSettingsFragment
      }
    }
    sensors {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
    peripheral {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    peripherals {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    peripheralPhysicalInput {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    peripheralPhysicalInputs {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    pendingJobExecutions {
      thingName
      jobId
      executionNumber
      lastUpdatedAt
      queuedAt
      retryAttempt
      startedAt
      status
      describeJobExecution {
        ...DescribeJobExecutionFragment
      }
    }
    updateAvailable
    certificates {
      id
      isActive
      createdAt
      validAt
      expiresAt
      subject
      issuer
    }
  }
}
Variables
{"uuid": 4, "id": "4"}
Response
{
  "data": {
    "device": {
      "_id": 4,
      "uuid": "4",
      "owner": "4",
      "type": "xyz789",
      "hardwareId": "4",
      "name": "abc123",
      "numInputPorts": 123,
      "sensor": Sensor,
      "status": DeviceStatus,
      "network": NetworkConfig,
      "sensors": [Sensor],
      "peripheral": Peripheral,
      "peripherals": [Peripheral],
      "peripheralPhysicalInput": Peripheral,
      "peripheralPhysicalInputs": [Peripheral],
      "pendingJobExecutions": [JobExecutionSummary],
      "updateAvailable": true,
      "certificates": [Certificate]
    }
  }
}

devices

Response

Returns [Device!]!

Arguments
Name Description
uuids - [ID!]

Example

Query
query Devices($uuids: [ID!]) {
  devices(uuids: $uuids) {
    _id
    uuid
    owner
    type
    hardwareId
    name
    numInputPorts
    sensor {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
    status {
      firmwareVersions {
        ...FirmwareVersionsFragment
      }
      hardwareVersion
    }
    network {
      wifi {
        ...WiFiConfigShadowFragment
      }
      connection
      general {
        ...GeneralNetworkShadowSettingsFragment
      }
    }
    sensors {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
    peripheral {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    peripherals {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    peripheralPhysicalInput {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    peripheralPhysicalInputs {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    pendingJobExecutions {
      thingName
      jobId
      executionNumber
      lastUpdatedAt
      queuedAt
      retryAttempt
      startedAt
      status
      describeJobExecution {
        ...DescribeJobExecutionFragment
      }
    }
    updateAvailable
    certificates {
      id
      isActive
      createdAt
      validAt
      expiresAt
      subject
      issuer
    }
  }
}
Variables
{"uuids": ["4"]}
Response
{
  "data": {
    "devices": [
      {
        "_id": 4,
        "uuid": "4",
        "owner": 4,
        "type": "xyz789",
        "hardwareId": "4",
        "name": "abc123",
        "numInputPorts": 123,
        "sensor": Sensor,
        "status": DeviceStatus,
        "network": NetworkConfig,
        "sensors": [Sensor],
        "peripheral": Peripheral,
        "peripherals": [Peripheral],
        "peripheralPhysicalInput": Peripheral,
        "peripheralPhysicalInputs": [Peripheral],
        "pendingJobExecutions": [JobExecutionSummary],
        "updateAvailable": true,
        "certificates": [Certificate]
      }
    ]
  }
}

devicesPaginated

Internal use only
Response

Returns a DevicesPaginated!

Arguments
Name Description
filterBy - DeviceFilterInput
offset - Int!
limit - Int!

Example

Query
query DevicesPaginated(
  $filterBy: DeviceFilterInput,
  $offset: Int!,
  $limit: Int!
) {
  devicesPaginated(
    filterBy: $filterBy,
    offset: $offset,
    limit: $limit
  ) {
    items {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
    nextOffset
    total
  }
}
Variables
{
  "filterBy": DeviceFilterInput,
  "offset": 123,
  "limit": 987
}
Response
{
  "data": {
    "devicesPaginated": {
      "items": [Device],
      "nextOffset": 123,
      "total": 123
    }
  }
}

escalation

Internal use only
Response

Returns an Escalation!

Arguments
Name Description
id - String!

Example

Query
query Escalation($id: String!) {
  escalation(id: $id) {
    nodeId
    creationDate
    createdBySub
    assignedToSub
    priority
    version
    plan {
      state
      title
      pdcaState
      followUpInterval
      followUpState
      dueDate
      linkedProductionData
      version
      category {
        ...ActionPlanCategoryFragment
      }
      content {
        ...ActionPlanContentFragment
      }
      escalations {
        ...EscalationFragment
      }
      attachedFiles
      tasks {
        ...ActionPlanTaskFragment
      }
      id
    }
    id
    assignedTo {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    node {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
  }
}
Variables
{"id": "xyz789"}
Response
{
  "data": {
    "escalation": {
      "nodeId": "abc123",
      "creationDate": "2007-12-03T10:15:30Z",
      "createdBySub": "xyz789",
      "assignedToSub": "abc123",
      "priority": true,
      "version": 123,
      "plan": ActionPlan,
      "id": "xyz789",
      "assignedTo": User,
      "createdBy": User,
      "node": HierarchyNode
    }
  }
}

escalationsForNode

Internal use only
Response

Returns an EscalationConnection!

Arguments
Name Description
nodeId - String!
order - EscalationOrder
before - String
after - String
first - Int
last - Int

Example

Query
query EscalationsForNode(
  $nodeId: String!,
  $order: EscalationOrder,
  $before: String,
  $after: String,
  $first: Int,
  $last: Int
) {
  escalationsForNode(
    nodeId: $nodeId,
    order: $order,
    before: $before,
    after: $after,
    first: $first,
    last: $last
  ) {
    edges {
      node {
        ...EscalationFragment
      }
      cursor
    }
    pageInfo {
      hasPreviousPage
      hasNextPage
      startCursor
      endCursor
    }
  }
}
Variables
{
  "nodeId": "abc123",
  "order": EscalationOrder,
  "before": "abc123",
  "after": "abc123",
  "first": 987,
  "last": 987
}
Response
{
  "data": {
    "escalationsForNode": {
      "edges": [EscalationEdge],
      "pageInfo": PageInfo
    }
  }
}

generatedActivityTemplate

Internal use only
Response

Returns a GeneratedActivityTemplate!

Arguments
Name Description
id - UUID!

Example

Query
query GeneratedActivityTemplate($id: UUID!) {
  generatedActivityTemplate(id: $id) {
    id
    status
    templateContent {
      id
      title
      description
      customForm {
        ...CustomFormFragment
      }
      translations {
        ...GeneratedActivityTemplateTranslationFragment
      }
    }
  }
}
Variables
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
}
Response
{
  "data": {
    "generatedActivityTemplate": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "status": "PENDING",
      "templateContent": GeneratedActivityTemplateContent
    }
  }
}

getNode

Description

Retrieve a specific node from the tree hierarchy. Provides equipment details and hierarchical context.

Response

Returns a Node

Arguments
Name Description
treeId - String!
nodeId - ID

Example

Query
query GetNode(
  $treeId: String!,
  $nodeId: ID
) {
  getNode(
    treeId: $treeId,
    nodeId: $nodeId
  ) {
    id
    breadcrumb {
      name
      id
    }
    refId
    alarmStatus
    children {
      id
      breadcrumb {
        ...BreadcrumbFragment
      }
      refId
      alarmStatus
      children {
        ...NodeFragment
      }
      leafDescendants {
        ...NodesWithPageTokenFragment
      }
      line {
        ...LineFragment
      }
      peripheral {
        ...PeripheralFragment
      }
    }
    leafDescendants {
      nodes {
        ...NodeFragment
      }
      nextPageToken
    }
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    peripheral {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
  }
}
Variables
{"treeId": "abc123", "nodeId": 4}
Response
{
  "data": {
    "getNode": {
      "id": 4,
      "breadcrumb": [Breadcrumb],
      "refId": 4,
      "alarmStatus": "Ongoing",
      "children": [Node],
      "leafDescendants": NodesWithPageToken,
      "line": Line,
      "peripheral": Peripheral
    }
  }
}

goldenBatch

Internal use only
Description

Get the current golden batch for a line or for a product on a line.

Response

Returns a GoldenBatch

Arguments
Name Description
lineId - ID!
productId - ID

Example

Query
query GoldenBatch(
  $lineId: ID!,
  $productId: ID
) {
  goldenBatch(
    lineId: $lineId,
    productId: $productId
  ) {
    batchId
    lineId
    productId
    oee1
    state
    acceptedAt
  }
}
Variables
{"lineId": 4, "productId": 4}
Response
{
  "data": {
    "goldenBatch": {
      "batchId": 4,
      "lineId": 4,
      "productId": 4,
      "oee1": 123.45,
      "state": "xyz789",
      "acceptedAt": "2007-12-03T10:15:30Z"
    }
  }
}

goldenBatchSettings

Internal use only
Description

Get the golden batch settings for the current user pool.

Response

Returns a GoldenBatchSettings!

Example

Query
query GoldenBatchSettings {
  goldenBatchSettings {
    timePeriodMonths
  }
}
Response
{"data": {"goldenBatchSettings": {"timePeriodMonths": 123}}}

hierarchyNode

Description

Calling this without a node_id will return the root node

Response

Returns a HierarchyNode

Arguments
Name Description
nodeId - NodeId

Example

Query
query HierarchyNode($nodeId: NodeId) {
  hierarchyNode(nodeId: $nodeId) {
    id
    version
    meta {
      ... on LineNodeMeta {
        ...LineNodeMetaFragment
      }
      ... on DirectoryNodeMeta {
        ...DirectoryNodeMetaFragment
      }
      ... on PeripheralNodeMeta {
        ...PeripheralNodeMetaFragment
      }
      ... on AssetNodeMeta {
        ...AssetNodeMetaFragment
      }
    }
    type
    descendants {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...HierarchyNodeEdgeFragment
      }
      nodes {
        ...HierarchyNodeFragment
      }
    }
    ancestors {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
    childrenCount
  }
}
Variables
{"nodeId": NodeId}
Response
{
  "data": {
    "hierarchyNode": {
      "id": NodeId,
      "version": 123,
      "meta": LineNodeMeta,
      "type": "LINE",
      "descendants": HierarchyNodeConnection,
      "ancestors": [HierarchyNode],
      "childrenCount": 987
    }
  }
}

horizontalAnnotations

Description

Retrieve all horizontal reference line annotations for equipment. Used for displaying threshold lines, target values, or limits on charts.

Response

Returns [HorizontalAnnotation!]!

Arguments
Name Description
peripheralId - ID!

Example

Query
query HorizontalAnnotations($peripheralId: ID!) {
  horizontalAnnotations(peripheralId: $peripheralId) {
    id
    label
    axisValue
  }
}
Variables
{"peripheralId": "4"}
Response
{
  "data": {
    "horizontalAnnotations": [
      {
        "id": 4,
        "label": "abc123",
        "axisValue": "xyz789"
      }
    ]
  }
}

learningActivities

Internal use only
Response

Returns a LearningActivityConnection!

Arguments
Name Description
after - String
before - String
first - Int
last - Int
filter - LearningActivityFilter

Example

Query
query LearningActivities(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int,
  $filter: LearningActivityFilter
) {
  learningActivities(
    after: $after,
    before: $before,
    first: $first,
    last: $last,
    filter: $filter
  ) {
    pageInfo {
      hasPreviousPage
      hasNextPage
      startCursor
      endCursor
    }
    edges {
      node {
        ...LearningActivityFragment
      }
      cursor
    }
    nodes {
      id
      version
      nodeId
      title
      description
      content
      startEndDatesRequired
      validityInMonths
      createdAt
      updatedAt
      createdBySub
      updatedBySub
      node {
        ...HierarchyNodeFragment
      }
      createdBy {
        ...UserFragment
      }
      updatedBy {
        ...UserFragment
      }
    }
    totalCount
  }
}
Variables
{
  "after": "xyz789",
  "before": "xyz789",
  "first": 123,
  "last": 987,
  "filter": LearningActivityFilter
}
Response
{
  "data": {
    "learningActivities": {
      "pageInfo": PageInfo,
      "edges": [LearningActivityEdge],
      "nodes": [LearningActivity],
      "totalCount": 987
    }
  }
}

learningActivity

Internal use only
Response

Returns a LearningActivity!

Arguments
Name Description
id - UUID!

Example

Query
query LearningActivity($id: UUID!) {
  learningActivity(id: $id) {
    id
    version
    nodeId
    title
    description
    content
    startEndDatesRequired
    validityInMonths
    createdAt
    updatedAt
    createdBySub
    updatedBySub
    node {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    updatedBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
  }
}
Variables
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
}
Response
{
  "data": {
    "learningActivity": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "version": 123,
      "nodeId": "abc123",
      "title": "abc123",
      "description": "xyz789",
      "content": "abc123",
      "startEndDatesRequired": true,
      "validityInMonths": 123,
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z",
      "createdBySub": "xyz789",
      "updatedBySub": "abc123",
      "node": HierarchyNode,
      "createdBy": User,
      "updatedBy": User
    }
  }
}

learningRole

Internal use only
Response

Returns a LearningRole!

Arguments
Name Description
id - UUID!

Example

Query
query LearningRole($id: UUID!) {
  learningRole(id: $id) {
    id
    title
    description
    nodeId
    createdAt
    updatedAt
    createdBySub
    updatedBySub
    skills {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...LearningRoleSkillsEdgeFragment
      }
      nodes {
        ...LearningRoleSkillFragment
      }
    }
    node {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    updatedBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
  }
}
Variables
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
}
Response
{
  "data": {
    "learningRole": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "title": "abc123",
      "description": "xyz789",
      "nodeId": "4",
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z",
      "createdBySub": "abc123",
      "updatedBySub": "xyz789",
      "skills": LearningRoleSkillsConnection,
      "node": HierarchyNode,
      "createdBy": User,
      "updatedBy": User
    }
  }
}

learningRoles

Internal use only
Response

Returns a LearningRoleConnection!

Arguments
Name Description
after - String
before - String
first - Int
last - Int
filter - LearningRoleFilter

Example

Query
query LearningRoles(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int,
  $filter: LearningRoleFilter
) {
  learningRoles(
    after: $after,
    before: $before,
    first: $first,
    last: $last,
    filter: $filter
  ) {
    pageInfo {
      hasPreviousPage
      hasNextPage
      startCursor
      endCursor
    }
    edges {
      node {
        ...LearningRoleFragment
      }
      cursor
    }
    nodes {
      id
      title
      description
      nodeId
      createdAt
      updatedAt
      createdBySub
      updatedBySub
      skills {
        ...LearningRoleSkillsConnectionFragment
      }
      node {
        ...HierarchyNodeFragment
      }
      createdBy {
        ...UserFragment
      }
      updatedBy {
        ...UserFragment
      }
    }
    totalCount
  }
}
Variables
{
  "after": "abc123",
  "before": "abc123",
  "first": 123,
  "last": 123,
  "filter": LearningRoleFilter
}
Response
{
  "data": {
    "learningRoles": {
      "pageInfo": PageInfo,
      "edges": [LearningRoleEdge],
      "nodes": [LearningRole],
      "totalCount": 123
    }
  }
}

line

Description

Get a specific line.

Response

Returns a Line!

Arguments
Name Description
lineId - ID! The ID must be a valid LineId
filter - LineFilterInput
languageCode - String

Example

Query
query Line(
  $lineId: ID!,
  $filter: LineFilterInput,
  $languageCode: String
) {
  line(
    lineId: $lineId,
    filter: $filter,
    languageCode: $languageCode
  ) {
    id
    languageCode
    owner
    location {
      timeZone
    }
    name
    description
    mainPeripheralId
    nodes {
      id
      type
      peripheralId
      position
      sensor {
        ...SensorFragment
      }
    }
    edges {
      from
      to
    }
    settings {
      oee {
        ...LineOEESettingsFragment
      }
      batch {
        ...LineBatchSettingsFragment
      }
    }
    goldenBatch {
      batchId
      lineId
      productId
      oee1
      state
      acceptedAt
    }
    bestPendingGoldenBatch {
      batchId
      lineId
      productId
      oee1
      state
      acceptedAt
    }
    time {
      configs {
        ...SensorConfigFragment
      }
      alarmLogs {
        ...AlarmLogsFragment
      }
      batches {
        ...BatchListFragment
      }
      dataOverrides {
        ...DataOverrideFragment
      }
      pendingControls {
        ...BatchControlListFragment
      }
      samples {
        ...SampleFragment
      }
      scrap {
        ...SampleFragment
      }
      shifts {
        ...ShiftInstanceFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
      changeoverStops {
        ...ChangeoverStopFragment
      }
      _id
      timeRange {
        ...TimeRangeFragment
      }
    }
    products {
      nextToken
      items {
        ...ProductFragment
      }
    }
    packagings {
      nextToken
      items {
        ...PackagingFragment
      }
    }
    batches {
      count
      items {
        ...BatchFragment
      }
      nextToken
      pages
    }
    batch {
      actualStart
      actualStop
      amount
      batchId
      batchNumber
      comment
      lineId
      manualScrap
      plannedStart
      produced
      product {
        ...ProductFragment
      }
      sorting
      state
      tags
      controls {
        ...BatchControlFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
      scrap {
        ...SampleFragment
      }
      createdBy {
        ...UserFragment
      }
      line {
        ...LineFragment
      }
      plannedEtc
      actualEtc
    }
    schedule {
      id
      lineId
      validFrom {
        ...ScheduleTimeFragment
      }
      validTo {
        ...ScheduleTimeFragment
      }
      shifts {
        ...ShiftFragment
      }
      weeklyTargets {
        ...TargetsFragment
      }
      configuration {
        ...ScheduleConfigurationFragment
      }
      isExceptionalWeek
      isFallbackSchedule
    }
    mainSensor {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
    scheduledReports {
      id
      type
      entityId
      entityType
      name
      description
      enabled
      subscribers {
        ...ReportSubscriberFragment
      }
      trigger {
        ...ScheduledReportTriggerFragment
      }
      nextTriggerDate
      timezone
      stopFilter {
        ...ReportStopFilterFragment
      }
    }
    andonSchedules {
      id
      name
      lineIds
      shifts {
        ...AndonShiftFragment
      }
      shift {
        ...AndonShiftFragment
      }
      lines {
        ...LineFragment
      }
    }
    nextShift {
      id
      from
      to
      name
      description
      shiftId
      scheduleEntry {
        ...ShiftFragment
      }
      batches {
        ...BatchListFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
    }
    scheduledEnd
    previousShift {
      id
      from
      to
      name
      description
      shiftId
      scheduleEntry {
        ...ShiftFragment
      }
      batches {
        ...BatchListFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
    }
    maintenanceWorkOrders {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...MaintenanceWorkOrderEdgeFragment
      }
      nodes {
        ...MaintenanceWorkOrderFragment
      }
    }
    groups {
      id
      defaultGroup
      externalIds
      peripheralIds
      lineIds
      owner {
        ...CompanyFragment
      }
      name
      description
      nodeId
      role {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      sensors {
        ...SensorFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralsPaginated {
        ...PeripheralsPaginatedFragment
      }
      lines {
        ...LineFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
    }
  }
}
Variables
{
  "lineId": 4,
  "filter": LineFilterInput,
  "languageCode": "xyz789"
}
Response
{
  "data": {
    "line": {
      "id": 4,
      "languageCode": "abc123",
      "owner": "4",
      "location": Location,
      "name": "xyz789",
      "description": "abc123",
      "mainPeripheralId": "4",
      "nodes": [LineNode],
      "edges": [LineEdge],
      "settings": LineSettings,
      "goldenBatch": GoldenBatch,
      "bestPendingGoldenBatch": GoldenBatch,
      "time": [LineTimeData],
      "products": ProductList,
      "packagings": PackagingList,
      "batches": BatchList,
      "batch": Batch,
      "schedule": Schedule,
      "mainSensor": Sensor,
      "scheduledReports": [ScheduledReport],
      "andonSchedules": [AndonSchedule],
      "nextShift": ShiftInstance,
      "scheduledEnd": "2007-12-03",
      "previousShift": ShiftInstance,
      "maintenanceWorkOrders": MaintenanceWorkOrderConnection,
      "groups": [Group]
    }
  }
}

lineFromPeripheral

Response

Returns a Line

Arguments
Name Description
peripheralId - ID!

Example

Query
query LineFromPeripheral($peripheralId: ID!) {
  lineFromPeripheral(peripheralId: $peripheralId) {
    id
    languageCode
    owner
    location {
      timeZone
    }
    name
    description
    mainPeripheralId
    nodes {
      id
      type
      peripheralId
      position
      sensor {
        ...SensorFragment
      }
    }
    edges {
      from
      to
    }
    settings {
      oee {
        ...LineOEESettingsFragment
      }
      batch {
        ...LineBatchSettingsFragment
      }
    }
    goldenBatch {
      batchId
      lineId
      productId
      oee1
      state
      acceptedAt
    }
    bestPendingGoldenBatch {
      batchId
      lineId
      productId
      oee1
      state
      acceptedAt
    }
    time {
      configs {
        ...SensorConfigFragment
      }
      alarmLogs {
        ...AlarmLogsFragment
      }
      batches {
        ...BatchListFragment
      }
      dataOverrides {
        ...DataOverrideFragment
      }
      pendingControls {
        ...BatchControlListFragment
      }
      samples {
        ...SampleFragment
      }
      scrap {
        ...SampleFragment
      }
      shifts {
        ...ShiftInstanceFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
      changeoverStops {
        ...ChangeoverStopFragment
      }
      _id
      timeRange {
        ...TimeRangeFragment
      }
    }
    products {
      nextToken
      items {
        ...ProductFragment
      }
    }
    packagings {
      nextToken
      items {
        ...PackagingFragment
      }
    }
    batches {
      count
      items {
        ...BatchFragment
      }
      nextToken
      pages
    }
    batch {
      actualStart
      actualStop
      amount
      batchId
      batchNumber
      comment
      lineId
      manualScrap
      plannedStart
      produced
      product {
        ...ProductFragment
      }
      sorting
      state
      tags
      controls {
        ...BatchControlFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
      scrap {
        ...SampleFragment
      }
      createdBy {
        ...UserFragment
      }
      line {
        ...LineFragment
      }
      plannedEtc
      actualEtc
    }
    schedule {
      id
      lineId
      validFrom {
        ...ScheduleTimeFragment
      }
      validTo {
        ...ScheduleTimeFragment
      }
      shifts {
        ...ShiftFragment
      }
      weeklyTargets {
        ...TargetsFragment
      }
      configuration {
        ...ScheduleConfigurationFragment
      }
      isExceptionalWeek
      isFallbackSchedule
    }
    mainSensor {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
    scheduledReports {
      id
      type
      entityId
      entityType
      name
      description
      enabled
      subscribers {
        ...ReportSubscriberFragment
      }
      trigger {
        ...ScheduledReportTriggerFragment
      }
      nextTriggerDate
      timezone
      stopFilter {
        ...ReportStopFilterFragment
      }
    }
    andonSchedules {
      id
      name
      lineIds
      shifts {
        ...AndonShiftFragment
      }
      shift {
        ...AndonShiftFragment
      }
      lines {
        ...LineFragment
      }
    }
    nextShift {
      id
      from
      to
      name
      description
      shiftId
      scheduleEntry {
        ...ShiftFragment
      }
      batches {
        ...BatchListFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
    }
    scheduledEnd
    previousShift {
      id
      from
      to
      name
      description
      shiftId
      scheduleEntry {
        ...ShiftFragment
      }
      batches {
        ...BatchListFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
    }
    maintenanceWorkOrders {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...MaintenanceWorkOrderEdgeFragment
      }
      nodes {
        ...MaintenanceWorkOrderFragment
      }
    }
    groups {
      id
      defaultGroup
      externalIds
      peripheralIds
      lineIds
      owner {
        ...CompanyFragment
      }
      name
      description
      nodeId
      role {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      sensors {
        ...SensorFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralsPaginated {
        ...PeripheralsPaginatedFragment
      }
      lines {
        ...LineFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
    }
  }
}
Variables
{"peripheralId": "4"}
Response
{
  "data": {
    "lineFromPeripheral": {
      "id": 4,
      "languageCode": "xyz789",
      "owner": "4",
      "location": Location,
      "name": "abc123",
      "description": "xyz789",
      "mainPeripheralId": "4",
      "nodes": [LineNode],
      "edges": [LineEdge],
      "settings": LineSettings,
      "goldenBatch": GoldenBatch,
      "bestPendingGoldenBatch": GoldenBatch,
      "time": [LineTimeData],
      "products": ProductList,
      "packagings": PackagingList,
      "batches": BatchList,
      "batch": Batch,
      "schedule": Schedule,
      "mainSensor": Sensor,
      "scheduledReports": [ScheduledReport],
      "andonSchedules": [AndonSchedule],
      "nextShift": ShiftInstance,
      "scheduledEnd": "2007-12-03",
      "previousShift": ShiftInstance,
      "maintenanceWorkOrders": MaintenanceWorkOrderConnection,
      "groups": [Group]
    }
  }
}

lines

Description

Get a list of lines, that the user has access to. Only line filters are functional for this query.

Response

Returns [Line!]!

Arguments
Name Description
companyId - ID
filter - LineFilterInput
languageCode - String

Example

Query
query Lines(
  $companyId: ID,
  $filter: LineFilterInput,
  $languageCode: String
) {
  lines(
    companyId: $companyId,
    filter: $filter,
    languageCode: $languageCode
  ) {
    id
    languageCode
    owner
    location {
      timeZone
    }
    name
    description
    mainPeripheralId
    nodes {
      id
      type
      peripheralId
      position
      sensor {
        ...SensorFragment
      }
    }
    edges {
      from
      to
    }
    settings {
      oee {
        ...LineOEESettingsFragment
      }
      batch {
        ...LineBatchSettingsFragment
      }
    }
    goldenBatch {
      batchId
      lineId
      productId
      oee1
      state
      acceptedAt
    }
    bestPendingGoldenBatch {
      batchId
      lineId
      productId
      oee1
      state
      acceptedAt
    }
    time {
      configs {
        ...SensorConfigFragment
      }
      alarmLogs {
        ...AlarmLogsFragment
      }
      batches {
        ...BatchListFragment
      }
      dataOverrides {
        ...DataOverrideFragment
      }
      pendingControls {
        ...BatchControlListFragment
      }
      samples {
        ...SampleFragment
      }
      scrap {
        ...SampleFragment
      }
      shifts {
        ...ShiftInstanceFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
      changeoverStops {
        ...ChangeoverStopFragment
      }
      _id
      timeRange {
        ...TimeRangeFragment
      }
    }
    products {
      nextToken
      items {
        ...ProductFragment
      }
    }
    packagings {
      nextToken
      items {
        ...PackagingFragment
      }
    }
    batches {
      count
      items {
        ...BatchFragment
      }
      nextToken
      pages
    }
    batch {
      actualStart
      actualStop
      amount
      batchId
      batchNumber
      comment
      lineId
      manualScrap
      plannedStart
      produced
      product {
        ...ProductFragment
      }
      sorting
      state
      tags
      controls {
        ...BatchControlFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
      scrap {
        ...SampleFragment
      }
      createdBy {
        ...UserFragment
      }
      line {
        ...LineFragment
      }
      plannedEtc
      actualEtc
    }
    schedule {
      id
      lineId
      validFrom {
        ...ScheduleTimeFragment
      }
      validTo {
        ...ScheduleTimeFragment
      }
      shifts {
        ...ShiftFragment
      }
      weeklyTargets {
        ...TargetsFragment
      }
      configuration {
        ...ScheduleConfigurationFragment
      }
      isExceptionalWeek
      isFallbackSchedule
    }
    mainSensor {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
    scheduledReports {
      id
      type
      entityId
      entityType
      name
      description
      enabled
      subscribers {
        ...ReportSubscriberFragment
      }
      trigger {
        ...ScheduledReportTriggerFragment
      }
      nextTriggerDate
      timezone
      stopFilter {
        ...ReportStopFilterFragment
      }
    }
    andonSchedules {
      id
      name
      lineIds
      shifts {
        ...AndonShiftFragment
      }
      shift {
        ...AndonShiftFragment
      }
      lines {
        ...LineFragment
      }
    }
    nextShift {
      id
      from
      to
      name
      description
      shiftId
      scheduleEntry {
        ...ShiftFragment
      }
      batches {
        ...BatchListFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
    }
    scheduledEnd
    previousShift {
      id
      from
      to
      name
      description
      shiftId
      scheduleEntry {
        ...ShiftFragment
      }
      batches {
        ...BatchListFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
    }
    maintenanceWorkOrders {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...MaintenanceWorkOrderEdgeFragment
      }
      nodes {
        ...MaintenanceWorkOrderFragment
      }
    }
    groups {
      id
      defaultGroup
      externalIds
      peripheralIds
      lineIds
      owner {
        ...CompanyFragment
      }
      name
      description
      nodeId
      role {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      sensors {
        ...SensorFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralsPaginated {
        ...PeripheralsPaginatedFragment
      }
      lines {
        ...LineFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
    }
  }
}
Variables
{
  "companyId": 4,
  "filter": LineFilterInput,
  "languageCode": "xyz789"
}
Response
{
  "data": {
    "lines": [
      {
        "id": 4,
        "languageCode": "abc123",
        "owner": 4,
        "location": Location,
        "name": "xyz789",
        "description": "xyz789",
        "mainPeripheralId": "4",
        "nodes": [LineNode],
        "edges": [LineEdge],
        "settings": LineSettings,
        "goldenBatch": GoldenBatch,
        "bestPendingGoldenBatch": GoldenBatch,
        "time": [LineTimeData],
        "products": ProductList,
        "packagings": PackagingList,
        "batches": BatchList,
        "batch": Batch,
        "schedule": Schedule,
        "mainSensor": Sensor,
        "scheduledReports": [ScheduledReport],
        "andonSchedules": [AndonSchedule],
        "nextShift": ShiftInstance,
        "scheduledEnd": "2007-12-03",
        "previousShift": ShiftInstance,
        "maintenanceWorkOrders": MaintenanceWorkOrderConnection,
        "groups": [Group]
      }
    ]
  }
}

linesPaginated

Internal use only
Description

Get a page of lines. Lines specified as pinned will appear first in the order.

Response

Returns a LinesPaginated!

Arguments
Name Description
offset - Int!
limit - Int!
pinnedLineIds - [ID!]
languageCode - String
filterBy - LineFilterInput

Example

Query
query LinesPaginated(
  $offset: Int!,
  $limit: Int!,
  $pinnedLineIds: [ID!],
  $languageCode: String,
  $filterBy: LineFilterInput
) {
  linesPaginated(
    offset: $offset,
    limit: $limit,
    pinnedLineIds: $pinnedLineIds,
    languageCode: $languageCode,
    filterBy: $filterBy
  ) {
    items {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    nextOffset
    total
  }
}
Variables
{
  "offset": 987,
  "limit": 987,
  "pinnedLineIds": [4],
  "languageCode": "abc123",
  "filterBy": LineFilterInput
}
Response
{
  "data": {
    "linesPaginated": {
      "items": [Line],
      "nextOffset": 123,
      "total": 123
    }
  }
}

maintenanceLog

Response

Returns a MaintenanceLogEntryConnection!

Arguments
Name Description
before - String
after - String
first - Int
last - Int
filter - MaintenanceLogFilter

Example

Query
query MaintenanceLog(
  $before: String,
  $after: String,
  $first: Int,
  $last: Int,
  $filter: MaintenanceLogFilter
) {
  maintenanceLog(
    before: $before,
    after: $after,
    first: $first,
    last: $last,
    filter: $filter
  ) {
    pageInfo {
      hasPreviousPage
      hasNextPage
      startCursor
      endCursor
    }
    edges {
      node {
        ...MaintenanceLogEntryFragment
      }
      cursor
    }
    nodes {
      planId
      lineId
      status
      workOrderDueAt
      workOrderOverdueAt
      timestamp
      produced
      startFrom
      initials
      comment
      planSnapshot {
        ...MaintenancePlanSnapshotFragment
      }
      customData {
        ...CustomFormDataFragment
      }
      andonCallId
      stopCauseIds
      stopCausePeripheralId
      assetIds
      startOfService
      endOfService
      startOfStop
      endOfStop
      version
      effectiveDuration
      line {
        ...LineFragment
      }
      stopCauses {
        ...StopCauseFragment
      }
      assets {
        ...HierarchyNodeFragment
      }
    }
  }
}
Variables
{
  "before": "abc123",
  "after": "abc123",
  "first": 123,
  "last": 123,
  "filter": MaintenanceLogFilter
}
Response
{
  "data": {
    "maintenanceLog": {
      "pageInfo": PageInfo,
      "edges": [MaintenanceLogEntryEdge],
      "nodes": [MaintenanceLogEntry]
    }
  }
}

maintenancePlan

Response

Returns a MaintenancePlan

Arguments
Name Description
planId - MaintenancePlanId!
lineId - LineId!

Example

Query
query MaintenancePlan(
  $planId: MaintenancePlanId!,
  $lineId: LineId!
) {
  maintenancePlan(
    planId: $planId,
    lineId: $lineId
  ) {
    planId
    lineId
    title
    asset
    tagPartNumber
    instructions
    startFrom
    trackBy {
      time {
        ...TrackByTimeFragment
      }
      production {
        ...TrackByProductionFragment
      }
      calendar {
        ...TrackByCalendarFragment
      }
    }
    repeat
    version
    role {
      id
      name
    }
    log {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...MaintenanceLogEntryEdgeFragment
      }
      nodes {
        ...MaintenanceLogEntryFragment
      }
    }
    nextWorkOrder {
      plan {
        ...MaintenancePlanFragment
      }
      dueAt
      overdueAt
      produced
      latestMaintenance {
        ...MaintenanceLogEntryFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      line {
        ...LineFragment
      }
    }
    peripheral {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{
  "planId": MaintenancePlanId,
  "lineId": LineId
}
Response
{
  "data": {
    "maintenancePlan": {
      "planId": MaintenancePlanId,
      "lineId": LineId,
      "title": "xyz789",
      "asset": "xyz789",
      "tagPartNumber": "xyz789",
      "instructions": "xyz789",
      "startFrom": "2007-12-03T10:15:30Z",
      "trackBy": TrackByOptions,
      "repeat": "YES",
      "version": 123,
      "role": MaintenanceRole,
      "log": MaintenanceLogEntryConnection,
      "nextWorkOrder": MaintenanceWorkOrder,
      "peripheral": Peripheral,
      "line": Line
    }
  }
}

maintenancePlans

Response

Returns a MaintenancePlanConnection!

Arguments
Name Description
before - String
after - String
first - Int
last - Int
filter - MaintenancePlanFilter

Example

Query
query MaintenancePlans(
  $before: String,
  $after: String,
  $first: Int,
  $last: Int,
  $filter: MaintenancePlanFilter
) {
  maintenancePlans(
    before: $before,
    after: $after,
    first: $first,
    last: $last,
    filter: $filter
  ) {
    pageInfo {
      hasPreviousPage
      hasNextPage
      startCursor
      endCursor
    }
    edges {
      node {
        ...MaintenancePlanFragment
      }
      cursor
    }
    nodes {
      planId
      lineId
      title
      asset
      tagPartNumber
      instructions
      startFrom
      trackBy {
        ...TrackByOptionsFragment
      }
      repeat
      version
      role {
        ...MaintenanceRoleFragment
      }
      log {
        ...MaintenanceLogEntryConnectionFragment
      }
      nextWorkOrder {
        ...MaintenanceWorkOrderFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      line {
        ...LineFragment
      }
    }
  }
}
Variables
{
  "before": "xyz789",
  "after": "abc123",
  "first": 987,
  "last": 987,
  "filter": MaintenancePlanFilter
}
Response
{
  "data": {
    "maintenancePlans": {
      "pageInfo": PageInfo,
      "edges": [MaintenancePlanEdge],
      "nodes": [MaintenancePlan]
    }
  }
}

maintenanceWorkOrders

Description

The work orders are ordered by the overdue_at timestamp

Response

Returns a MaintenanceWorkOrderConnection!

Arguments
Name Description
before - String
after - String
first - Int
last - Int
filter - MaintenanceFilter

Example

Query
query MaintenanceWorkOrders(
  $before: String,
  $after: String,
  $first: Int,
  $last: Int,
  $filter: MaintenanceFilter
) {
  maintenanceWorkOrders(
    before: $before,
    after: $after,
    first: $first,
    last: $last,
    filter: $filter
  ) {
    pageInfo {
      hasPreviousPage
      hasNextPage
      startCursor
      endCursor
    }
    edges {
      node {
        ...MaintenanceWorkOrderFragment
      }
      cursor
    }
    nodes {
      plan {
        ...MaintenancePlanFragment
      }
      dueAt
      overdueAt
      produced
      latestMaintenance {
        ...MaintenanceLogEntryFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      line {
        ...LineFragment
      }
    }
  }
}
Variables
{
  "before": "xyz789",
  "after": "abc123",
  "first": 987,
  "last": 987,
  "filter": MaintenanceFilter
}
Response
{
  "data": {
    "maintenanceWorkOrders": {
      "pageInfo": PageInfo,
      "edges": [MaintenanceWorkOrderEdge],
      "nodes": [MaintenanceWorkOrder]
    }
  }
}

pendingActivities

Internal use only
Description

Returns only pending activities ordered by relative importance.

Response

Returns [Activity!]!

Arguments
Name Description
first - Int
filter - PendingActivityFilter

Example

Query
query PendingActivities(
  $first: Int,
  $filter: PendingActivityFilter
) {
  pendingActivities(
    first: $first,
    filter: $filter
  ) {
    id
    status
    activityTemplate {
      id
      title
      description
      translations {
        ...ActivityTemplateTranslationFragment
      }
      customFormId
      customFormVersion
      triggers {
        ...TriggerFragment
      }
      expiresAfterMinutes
      locationIds
      version
      createdAt
      deletedAt
      versions {
        ...VersionedActivityTemplatesConnectionFragment
      }
      customForm {
        ...CustomFormFragment
      }
      tags {
        ...ActivityTagFragment
      }
    }
    trigger {
      id
      type {
        ...ActivityTriggerTypeFragment
      }
      conditions {
        ...TriggerConditionsFragment
      }
      isActive
    }
    customFormData {
      formId
      formVersion
      values {
        ...CustomFieldValueFragment
      }
      initials
      form {
        ...CustomFormFragment
      }
      schema
    }
    stopRegistration {
      start
      end
      comment
      initials
      stopCause {
        ...ActivityStopCauseFragment
      }
    }
    createdAt
    archivedAt
    version
    locationId
    isPassing
    batch {
      actualStart
      actualStop
      amount
      batchId
      batchNumber
      comment
      lineId
      manualScrap
      plannedStart
      produced
      product {
        ...ProductFragment
      }
      sorting
      state
      tags
      controls {
        ...BatchControlFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
      scrap {
        ...SampleFragment
      }
      createdBy {
        ...UserFragment
      }
      line {
        ...LineFragment
      }
      plannedEtc
      actualEtc
    }
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{"first": 987, "filter": PendingActivityFilter}
Response
{
  "data": {
    "pendingActivities": [
      {
        "id": ActivityId,
        "status": "PENDING",
        "activityTemplate": ActivityTemplate,
        "trigger": Trigger,
        "customFormData": CustomFormData,
        "stopRegistration": ActivityStopRegistration,
        "createdAt": "2007-12-03T10:15:30Z",
        "archivedAt": "2007-12-03T10:15:30Z",
        "version": 123,
        "locationId": NodeId,
        "isPassing": false,
        "batch": Batch,
        "line": Line
      }
    ]
  }
}

pendingControls

Response

Returns a BatchControlList!

Arguments
Name Description
lineId - ID!
from - Date!
to - Date!
maxItems - Int
paginationToken - ID

Example

Query
query PendingControls(
  $lineId: ID!,
  $from: Date!,
  $to: Date!,
  $maxItems: Int,
  $paginationToken: ID
) {
  pendingControls(
    lineId: $lineId,
    from: $from,
    to: $to,
    maxItems: $maxItems,
    paginationToken: $paginationToken
  ) {
    nextToken
    items {
      batchControlId
      batchId
      comment
      controlReceiptId
      controlReceiptName
      entryId
      fieldValues {
        ...BatchControlFieldValueFragment
      }
      followUp {
        ...FollowUpSettingsFragment
      }
      history {
        ...BatchControlHistoryFragment
      }
      initials
      initialsSettings
      originalControl {
        ...OriginalControlDetailsFragment
      }
      status
      timeControlUpdated
      timeControlled
      timeTriggered
      title
      trigger {
        ...ControlTriggerFragment
      }
    }
  }
}
Variables
{
  "lineId": "4",
  "from": "2007-12-03",
  "to": "2007-12-03",
  "maxItems": 987,
  "paginationToken": 4
}
Response
{
  "data": {
    "pendingControls": {
      "nextToken": "4",
      "items": [BatchControl]
    }
  }
}

peripheralByID

Response

Returns a Peripheral

Arguments
Name Description
peripheralId - ID! The ID must be a valid PeripheralId.

Example

Query
query PeripheralByID($peripheralId: ID!) {
  peripheralByID(peripheralId: $peripheralId) {
    _id
    id
    name
    index
    peripheralId
    owner
    hardwareId
    peripheralType
    description
    offlineStatus {
      expiration
      lastReceived
    }
    device {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
    hardwareDevice {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
  }
}
Variables
{"peripheralId": 4}
Response
{
  "data": {
    "peripheralByID": {
      "_id": "4",
      "id": 4,
      "name": "xyz789",
      "index": 4,
      "peripheralId": 4,
      "owner": "4",
      "hardwareId": 4,
      "peripheralType": "SENSOR",
      "description": "xyz789",
      "offlineStatus": OfflineStatus,
      "device": Device,
      "hardwareDevice": Device
    }
  }
}

peripheralByIDs

Response

Returns [Peripheral!]!

Arguments
Name Description
peripheralType - PeripheralType
peripheralIds - [ID!]!

Example

Query
query PeripheralByIDs(
  $peripheralType: PeripheralType,
  $peripheralIds: [ID!]!
) {
  peripheralByIDs(
    peripheralType: $peripheralType,
    peripheralIds: $peripheralIds
  ) {
    _id
    id
    name
    index
    peripheralId
    owner
    hardwareId
    peripheralType
    description
    offlineStatus {
      expiration
      lastReceived
    }
    device {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
    hardwareDevice {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
  }
}
Variables
{
  "peripheralType": "SENSOR",
  "peripheralIds": ["4"]
}
Response
{
  "data": {
    "peripheralByIDs": [
      {
        "_id": 4,
        "id": 4,
        "name": "xyz789",
        "index": "4",
        "peripheralId": 4,
        "owner": "4",
        "hardwareId": 4,
        "peripheralType": "SENSOR",
        "description": "xyz789",
        "offlineStatus": OfflineStatus,
        "device": Device,
        "hardwareDevice": Device
      }
    ]
  }
}

peripheralEventActionConfiguration

Response

Returns [EventActionConfiguration]!

Arguments
Name Description
peripheralId - ID

Example

Query
query PeripheralEventActionConfiguration($peripheralId: ID) {
  peripheralEventActionConfiguration(peripheralId: $peripheralId) {
    peripheralId
    value
    actions {
      type
      lineId
      peripheralId
    }
  }
}
Variables
{"peripheralId": "4"}
Response
{
  "data": {
    "peripheralEventActionConfiguration": [
      {
        "peripheralId": 4,
        "value": "xyz789",
        "actions": [Actions]
      }
    ]
  }
}

peripheralsPaginated

Internal use only
Response

Returns a PeripheralsPaginated!

Arguments
Name Description
filterBy - PeripheralFilterInput
offset - Int!
limit - Int!

Example

Query
query PeripheralsPaginated(
  $filterBy: PeripheralFilterInput,
  $offset: Int!,
  $limit: Int!
) {
  peripheralsPaginated(
    filterBy: $filterBy,
    offset: $offset,
    limit: $limit
  ) {
    items {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    nextOffset
    total
  }
}
Variables
{
  "filterBy": PeripheralFilterInput,
  "offset": 123,
  "limit": 987
}
Response
{
  "data": {
    "peripheralsPaginated": {
      "items": [Peripheral],
      "nextOffset": 123,
      "total": 123
    }
  }
}

permissionKeys

Response

Returns [Permission!]!

Example

Query
query PermissionKeys {
  permissionKeys {
    key
    type
    description
  }
}
Response
{
  "data": {
    "permissionKeys": [
      {
        "key": "abc123",
        "type": "QUERY",
        "description": "xyz789"
      }
    ]
  }
}

sessions

Description

Lists sessions issued for the whole company if permitted to do so.

Response

Returns a SessionConnection!

Arguments
Name Description
filterBy - SessionFilter
orderBy - SessionOrder
first - Int
after - String

Example

Query
query Sessions(
  $filterBy: SessionFilter,
  $orderBy: SessionOrder,
  $first: Int,
  $after: String
) {
  sessions(
    filterBy: $filterBy,
    orderBy: $orderBy,
    first: $first,
    after: $after
  ) {
    edges {
      node {
        ...SessionFragment
      }
      cursor
    }
    pageInfo {
      hasPreviousPage
      hasNextPage
      startCursor
      endCursor
    }
  }
}
Variables
{
  "filterBy": SessionFilter,
  "orderBy": SessionOrder,
  "first": 123,
  "after": "abc123"
}
Response
{
  "data": {
    "sessions": {
      "edges": [SessionEdge],
      "pageInfo": PageInfo
    }
  }
}

skill

Internal use only
Response

Returns a Skill!

Arguments
Name Description
id - UUID!

Example

Query
query Skill($id: UUID!) {
  skill(id: $id) {
    id
    title
    description
    nodeId
    createdAt
    updatedAt
    createdBySub
    updatedBySub
    learningActivities {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...SkillLearningActivitiesEdgeFragment
      }
      nodes {
        ...SkillLearningActivityFragment
      }
    }
    node {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    updatedBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
  }
}
Variables
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
}
Response
{
  "data": {
    "skill": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "title": "xyz789",
      "description": "abc123",
      "nodeId": "4",
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z",
      "createdBySub": "xyz789",
      "updatedBySub": "xyz789",
      "learningActivities": SkillLearningActivitiesConnection,
      "node": HierarchyNode,
      "createdBy": User,
      "updatedBy": User
    }
  }
}

skills

Internal use only
Response

Returns a SkillConnection!

Arguments
Name Description
after - String
before - String
first - Int
last - Int
filter - SkillFilter

Example

Query
query Skills(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int,
  $filter: SkillFilter
) {
  skills(
    after: $after,
    before: $before,
    first: $first,
    last: $last,
    filter: $filter
  ) {
    pageInfo {
      hasPreviousPage
      hasNextPage
      startCursor
      endCursor
    }
    edges {
      node {
        ...SkillFragment
      }
      cursor
    }
    nodes {
      id
      title
      description
      nodeId
      createdAt
      updatedAt
      createdBySub
      updatedBySub
      learningActivities {
        ...SkillLearningActivitiesConnectionFragment
      }
      node {
        ...HierarchyNodeFragment
      }
      createdBy {
        ...UserFragment
      }
      updatedBy {
        ...UserFragment
      }
    }
    totalCount
  }
}
Variables
{
  "after": "abc123",
  "before": "abc123",
  "first": 987,
  "last": 123,
  "filter": SkillFilter
}
Response
{
  "data": {
    "skills": {
      "pageInfo": PageInfo,
      "edges": [SkillEdge],
      "nodes": [Skill],
      "totalCount": 987
    }
  }
}

stopCauseMappings

Response

Returns [StopCauseMapping!]!

Arguments
Name Description
peripheralId - ID!

Example

Query
query StopCauseMappings($peripheralId: ID!) {
  stopCauseMappings(peripheralId: $peripheralId) {
    _id
    peripheralIdEvent
    peripheralIdTarget
    value
    stopCauseId
    buffer
    lookForward
    lookBack
    userPool
    split
    regPriority
  }
}
Variables
{"peripheralId": "4"}
Response
{
  "data": {
    "stopCauseMappings": [
      {
        "_id": 4,
        "peripheralIdEvent": "xyz789",
        "peripheralIdTarget": "abc123",
        "value": "xyz789",
        "stopCauseId": 4,
        "buffer": 987,
        "lookForward": 987,
        "lookBack": 987,
        "userPool": "xyz789",
        "split": false,
        "regPriority": 987
      }
    ]
  }
}

thingEndpoints

Response

Returns [ThingEndpoint!]!

Example

Query
query ThingEndpoints {
  thingEndpoints {
    id
    name
    domainName
    enabled
    authenticationType
    applicationProtocol
  }
}
Response
{
  "data": {
    "thingEndpoints": [
      {
        "id": "4",
        "name": "xyz789",
        "domainName": "abc123",
        "enabled": false,
        "authenticationType": "xyz789",
        "applicationProtocol": "abc123"
      }
    ]
  }
}

user

Response

Returns a User!

Arguments
Name Description
userSub - ID

Example

Query
query User($userSub: ID) {
  user(userSub: $userSub) {
    company {
      id
      name
      groups {
        ...GroupFragment
      }
      roles {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      group {
        ...GroupFragment
      }
      appClients {
        ...AppClientFragment
      }
      trialStatus {
        ...TrialStatusFragment
      }
      authConfiguration {
        ...AuthConfigurationFragment
      }
      factoryOverviewSettings {
        ...FactoryOverviewSettingsFragment
      }
    }
    username
    enabled
    userStatus
    userCreateDate
    userLastModifiedDate
    sub
    email
    givenName
    familyName
    emailVerified
    groups {
      id
      defaultGroup
      externalIds
      peripheralIds
      lineIds
      owner {
        ...CompanyFragment
      }
      name
      description
      nodeId
      role {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      sensors {
        ...SensorFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralsPaginated {
        ...PeripheralsPaginatedFragment
      }
      lines {
        ...LineFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
    }
    locationRoles {
      roleId
      locationId
    }
    devices {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
    lines {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    linesPaginated {
      items {
        ...LineFragment
      }
      nextOffset
      total
    }
    skills {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserSkillEdgeFragment
      }
      nodes {
        ...UserSkillFragment
      }
    }
    learningRoles {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserLearningRoleEdgeFragment
      }
      nodes {
        ...UserLearningRoleFragment
      }
    }
    learningActivities {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserLearningActivityEdgeFragment
      }
      nodes {
        ...UserLearningActivityFragment
      }
    }
    sessions {
      generatedAt
      expiresAt
      userSub
    }
  }
}
Variables
{"userSub": "4"}
Response
{
  "data": {
    "user": {
      "company": Company,
      "username": "xyz789",
      "enabled": true,
      "userStatus": "abc123",
      "userCreateDate": "2007-12-03",
      "userLastModifiedDate": "2007-12-03",
      "sub": "abc123",
      "email": "xyz789",
      "givenName": "abc123",
      "familyName": "xyz789",
      "emailVerified": "xyz789",
      "groups": [Group],
      "locationRoles": [LocationRole],
      "devices": [Device],
      "lines": [Line],
      "linesPaginated": LinesPaginated,
      "skills": UserSkillConnection,
      "learningRoles": UserLearningRoleConnection,
      "learningActivities": UserLearningActivityConnection,
      "sessions": [Session]
    }
  }
}

userLearningActivities

Internal use only
Response

Returns a UserLearningActivityConnection!

Arguments
Name Description
userId - ID!
after - String
before - String
first - Int
last - Int
filter - UserLearningActivityFilter

Example

Query
query UserLearningActivities(
  $userId: ID!,
  $after: String,
  $before: String,
  $first: Int,
  $last: Int,
  $filter: UserLearningActivityFilter
) {
  userLearningActivities(
    userId: $userId,
    after: $after,
    before: $before,
    first: $first,
    last: $last,
    filter: $filter
  ) {
    pageInfo {
      hasPreviousPage
      hasNextPage
      startCursor
      endCursor
    }
    edges {
      node {
        ...UserLearningActivityFragment
      }
      cursor
    }
    nodes {
      id
      learningActivityId
      version
      nodeId
      title
      status
      description
      content
      startEndDatesRequired
      validityInMonths
      enrolledAt
      startedAt
      completedAt
      exemptedAt
      expiresAt
    }
  }
}
Variables
{
  "userId": "4",
  "after": "abc123",
  "before": "abc123",
  "first": 123,
  "last": 987,
  "filter": UserLearningActivityFilter
}
Response
{
  "data": {
    "userLearningActivities": {
      "pageInfo": PageInfo,
      "edges": [UserLearningActivityEdge],
      "nodes": [UserLearningActivity]
    }
  }
}

userLearningRole

Internal use only
Response

Returns a UserLearningRole

Arguments
Name Description
learningRoleId - UUID!
userId - ID!

Example

Query
query UserLearningRole(
  $learningRoleId: UUID!,
  $userId: ID!
) {
  userLearningRole(
    learningRoleId: $learningRoleId,
    userId: $userId
  ) {
    id
    learningRoleId
    userId
    title
    status
    description
    nodeId
    createdAt
    updatedAt
    createdBySub
    updatedBySub
    expiresAt
    completedAt
    enrolledBySub
    skills {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserLearningRoleSkillsEdgeFragment
      }
      nodes {
        ...UserLearningRoleSkillFragment
      }
    }
    node {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
    user {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    updatedBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    enrolledBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
  }
}
Variables
{
  "learningRoleId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "userId": "4"
}
Response
{
  "data": {
    "userLearningRole": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "learningRoleId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "userId": 4,
      "title": "abc123",
      "status": "ENROLLED",
      "description": "xyz789",
      "nodeId": "4",
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z",
      "createdBySub": "xyz789",
      "updatedBySub": "abc123",
      "expiresAt": "2007-12-03T10:15:30Z",
      "completedAt": "2007-12-03T10:15:30Z",
      "enrolledBySub": "abc123",
      "skills": UserLearningRoleSkillsConnection,
      "node": HierarchyNode,
      "user": User,
      "createdBy": User,
      "updatedBy": User,
      "enrolledBy": User
    }
  }
}

userLearningRoles

Internal use only
Response

Returns a UserLearningRoleConnection!

Arguments
Name Description
after - String
before - String
first - Int
last - Int
userId - ID!
filter - UserLearningRoleFilter

Example

Query
query UserLearningRoles(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int,
  $userId: ID!,
  $filter: UserLearningRoleFilter
) {
  userLearningRoles(
    after: $after,
    before: $before,
    first: $first,
    last: $last,
    userId: $userId,
    filter: $filter
  ) {
    pageInfo {
      hasPreviousPage
      hasNextPage
      startCursor
      endCursor
    }
    edges {
      node {
        ...UserLearningRoleFragment
      }
      cursor
    }
    nodes {
      id
      learningRoleId
      userId
      title
      status
      description
      nodeId
      createdAt
      updatedAt
      createdBySub
      updatedBySub
      expiresAt
      completedAt
      enrolledBySub
      skills {
        ...UserLearningRoleSkillsConnectionFragment
      }
      node {
        ...HierarchyNodeFragment
      }
      user {
        ...UserFragment
      }
      createdBy {
        ...UserFragment
      }
      updatedBy {
        ...UserFragment
      }
      enrolledBy {
        ...UserFragment
      }
    }
  }
}
Variables
{
  "after": "xyz789",
  "before": "abc123",
  "first": 987,
  "last": 123,
  "userId": "4",
  "filter": UserLearningRoleFilter
}
Response
{
  "data": {
    "userLearningRoles": {
      "pageInfo": PageInfo,
      "edges": [UserLearningRoleEdge],
      "nodes": [UserLearningRole]
    }
  }
}

userSkill

Internal use only
Response

Returns a UserSkill

Arguments
Name Description
skillId - UUID!
userId - ID!

Example

Query
query UserSkill(
  $skillId: UUID!,
  $userId: ID!
) {
  userSkill(
    skillId: $skillId,
    userId: $userId
  ) {
    id
    skillId
    userId
    title
    status
    description
    nodeId
    createdAt
    updatedAt
    createdBySub
    updatedBySub
    expiresAt
    completedAt
    enrolledBySub
    learningActivities {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserSkillLearningActivitiesEdgeFragment
      }
      nodes {
        ...UserSkillLearningActivityFragment
      }
    }
    node {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    updatedBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    enrolledBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
  }
}
Variables
{
  "skillId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "userId": 4
}
Response
{
  "data": {
    "userSkill": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "skillId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "userId": 4,
      "title": "abc123",
      "status": "ENROLLED",
      "description": "abc123",
      "nodeId": "4",
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z",
      "createdBySub": "xyz789",
      "updatedBySub": "abc123",
      "expiresAt": "2007-12-03T10:15:30Z",
      "completedAt": "2007-12-03T10:15:30Z",
      "enrolledBySub": "xyz789",
      "learningActivities": UserSkillLearningActivitiesConnection,
      "node": HierarchyNode,
      "createdBy": User,
      "updatedBy": User,
      "enrolledBy": User
    }
  }
}

userSkills

Internal use only
Response

Returns a UserSkillConnection!

Arguments
Name Description
after - String
before - String
first - Int
last - Int
userId - ID!
filter - UserSkillFilter

Example

Query
query UserSkills(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int,
  $userId: ID!,
  $filter: UserSkillFilter
) {
  userSkills(
    after: $after,
    before: $before,
    first: $first,
    last: $last,
    userId: $userId,
    filter: $filter
  ) {
    pageInfo {
      hasPreviousPage
      hasNextPage
      startCursor
      endCursor
    }
    edges {
      node {
        ...UserSkillFragment
      }
      cursor
    }
    nodes {
      id
      skillId
      userId
      title
      status
      description
      nodeId
      createdAt
      updatedAt
      createdBySub
      updatedBySub
      expiresAt
      completedAt
      enrolledBySub
      learningActivities {
        ...UserSkillLearningActivitiesConnectionFragment
      }
      node {
        ...HierarchyNodeFragment
      }
      createdBy {
        ...UserFragment
      }
      updatedBy {
        ...UserFragment
      }
      enrolledBy {
        ...UserFragment
      }
    }
  }
}
Variables
{
  "after": "abc123",
  "before": "xyz789",
  "first": 987,
  "last": 987,
  "userId": 4,
  "filter": UserSkillFilter
}
Response
{
  "data": {
    "userSkills": {
      "pageInfo": PageInfo,
      "edges": [UserSkillEdge],
      "nodes": [UserSkill]
    }
  }
}

verticalAnnotations

Description

Retrieve vertical time-based annotations for equipment within a time range. Used for displaying event markers, incident periods, or maintenance windows.

Response

Returns [VerticalAnnotation!]!

Arguments
Name Description
peripheralId - ID!
timeRange - InputTimeRange!
tags - [String!]
input - VerticalAnnotationsInput

Example

Query
query VerticalAnnotations(
  $peripheralId: ID!,
  $timeRange: InputTimeRange!,
  $tags: [String!],
  $input: VerticalAnnotationsInput
) {
  verticalAnnotations(
    peripheralId: $peripheralId,
    timeRange: $timeRange,
    tags: $tags,
    input: $input
  ) {
    id
    label
    timestamp
    timestampEnd
    tags
  }
}
Variables
{
  "peripheralId": "4",
  "timeRange": InputTimeRange,
  "tags": ["abc123"],
  "input": VerticalAnnotationsInput
}
Response
{
  "data": {
    "verticalAnnotations": [
      {
        "id": 4,
        "label": "abc123",
        "timestamp": "2007-12-03",
        "timestampEnd": "2007-12-03",
        "tags": ["abc123"]
      }
    ]
  }
}

webhook

Internal use only
Description

Fetch a single webhook by its ID.

Response

Returns a Webhook!

Arguments
Name Description
id - UUID!

Example

Query
query Webhook($id: UUID!) {
  webhook(id: $id) {
    id
    name
    url
    description
    headers
    triggerType
    disabled
    locationId
    createdAt
    updatedAt
    deletedAt
  }
}
Variables
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
}
Response
{
  "data": {
    "webhook": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "name": "xyz789",
      "url": "xyz789",
      "description": "xyz789",
      "headers": {},
      "triggerType": "abc123",
      "disabled": false,
      "locationId": NodeId,
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z",
      "deletedAt": "2007-12-03T10:15:30Z"
    }
  }
}

webhookExecution

Internal use only
Description

Fetch a single webhook execution by its ID.

Response

Returns a WebhookExecution!

Arguments
Name Description
id - UUID!

Example

Query
query WebhookExecution($id: UUID!) {
  webhookExecution(id: $id) {
    id
    webhookId
    requestUrl
    requestHeaders
    requestBody
    statusCode
    responseHeaders
    responseBody
    responseError
    result
    ipAddress
    redirectChain {
      url
      statusCode
    }
    responseTimeMs
    requestAt
    responseAt
    createdAt
    attemptCount
  }
}
Variables
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
}
Response
{
  "data": {
    "webhookExecution": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "webhookId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "requestUrl": "abc123",
      "requestHeaders": {},
      "requestBody": "xyz789",
      "statusCode": 987,
      "responseHeaders": {},
      "responseBody": "xyz789",
      "responseError": "abc123",
      "result": "SUCCESS",
      "ipAddress": "abc123",
      "redirectChain": [HttpRedirect],
      "responseTimeMs": 987,
      "requestAt": "2007-12-03T10:15:30Z",
      "responseAt": "2007-12-03T10:15:30Z",
      "createdAt": "2007-12-03T10:15:30Z",
      "attemptCount": 987
    }
  }
}

webhookExecutions

Internal use only
Description

Fetch a list of webhook executions with optional filters.

Response

Returns a WebhookExecutionConnection!

Arguments
Name Description
after - String
before - String
first - Int
last - Int
filter - WebhookExecutionFilter

Example

Query
query WebhookExecutions(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int,
  $filter: WebhookExecutionFilter
) {
  webhookExecutions(
    after: $after,
    before: $before,
    first: $first,
    last: $last,
    filter: $filter
  ) {
    pageInfo {
      hasPreviousPage
      hasNextPage
      startCursor
      endCursor
    }
    edges {
      node {
        ...WebhookExecutionFragment
      }
      cursor
    }
    nodes {
      id
      webhookId
      requestUrl
      requestHeaders
      requestBody
      statusCode
      responseHeaders
      responseBody
      responseError
      result
      ipAddress
      redirectChain {
        ...HttpRedirectFragment
      }
      responseTimeMs
      requestAt
      responseAt
      createdAt
      attemptCount
    }
  }
}
Variables
{
  "after": "xyz789",
  "before": "abc123",
  "first": 123,
  "last": 987,
  "filter": WebhookExecutionFilter
}
Response
{
  "data": {
    "webhookExecutions": {
      "pageInfo": PageInfo,
      "edges": [WebhookExecutionEdge],
      "nodes": [WebhookExecution]
    }
  }
}

webhooks

Internal use only
Description

Fetch all webhooks.

Response

Returns a WebhookConnection!

Arguments
Name Description
after - String
before - String
first - Int
last - Int
filter - WebhookFilter

Example

Query
query Webhooks(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int,
  $filter: WebhookFilter
) {
  webhooks(
    after: $after,
    before: $before,
    first: $first,
    last: $last,
    filter: $filter
  ) {
    pageInfo {
      hasPreviousPage
      hasNextPage
      startCursor
      endCursor
    }
    edges {
      node {
        ...WebhookFragment
      }
      cursor
    }
    nodes {
      id
      name
      url
      description
      headers
      triggerType
      disabled
      locationId
      createdAt
      updatedAt
      deletedAt
    }
  }
}
Variables
{
  "after": "abc123",
  "before": "abc123",
  "first": 123,
  "last": 123,
  "filter": WebhookFilter
}
Response
{
  "data": {
    "webhooks": {
      "pageInfo": PageInfo,
      "edges": [WebhookEdge],
      "nodes": [Webhook]
    }
  }
}

widgetData

Internal use only
Description

Get widget data based on the widget configuration and parameters.

Response

Returns a WidgetData!

Arguments
Name Description
widgetConfig - WidgetConfigInput!
widgetParameters - WidgetDataParametersInput!

Example

Query
query WidgetData(
  $widgetConfig: WidgetConfigInput!,
  $widgetParameters: WidgetDataParametersInput!
) {
  widgetData(
    widgetConfig: $widgetConfig,
    widgetParameters: $widgetParameters
  ) {
    ... on KpiWidgetData {
      value
    }
    ... on TabularWidgetData {
      json
    }
  }
}
Variables
{
  "widgetConfig": WidgetConfigInput,
  "widgetParameters": WidgetDataParametersInput
}
Response
{"data": {"widgetData": KpiWidgetData}}

Mutations

acceptPendingGoldenBatch

Internal use only
Description

Accept a pending golden batch as the current golden batch.

Response

Returns a Boolean!

Arguments
Name Description
batchId - ID!

Example

Query
mutation AcceptPendingGoldenBatch($batchId: ID!) {
  acceptPendingGoldenBatch(batchId: $batchId)
}
Variables
{"batchId": "4"}
Response
{"data": {"acceptPendingGoldenBatch": false}}

actionPlansPreSignedUrlForAttachment

Internal use only
Arguments
Name Description
fileName - String!

Example

Query
mutation ActionPlansPreSignedUrlForAttachment($fileName: String!) {
  actionPlansPreSignedUrlForAttachment(fileName: $fileName) {
    upload
    download
  }
}
Variables
{"fileName": "xyz789"}
Response
{
  "data": {
    "actionPlansPreSignedUrlForAttachment": {
      "upload": "abc123",
      "download": "xyz789"
    }
  }
}

addAppClientToGroups

Response

Returns an AppClient

Arguments
Name Description
id - ID!
groupIds - [ID!]!

Example

Query
mutation AddAppClientToGroups(
  $id: ID!,
  $groupIds: [ID!]!
) {
  addAppClientToGroups(
    id: $id,
    groupIds: $groupIds
  ) {
    id
    name
    groups {
      id
      defaultGroup
      externalIds
      peripheralIds
      lineIds
      owner {
        ...CompanyFragment
      }
      name
      description
      nodeId
      role {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      sensors {
        ...SensorFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralsPaginated {
        ...PeripheralsPaginatedFragment
      }
      lines {
        ...LineFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
    }
  }
}
Variables
{"id": "4", "groupIds": [4]}
Response
{
  "data": {
    "addAppClientToGroups": {
      "id": "4",
      "name": "xyz789",
      "groups": [Group]
    }
  }
}

addHorizontalAnnotation

Description

Create a new horizontal reference line annotation for equipment charts.

Response

Returns a HorizontalAnnotation!

Arguments
Name Description
peripheralId - ID!
horizontalAnnotation - HorizontalAnnotationInput!

Example

Query
mutation AddHorizontalAnnotation(
  $peripheralId: ID!,
  $horizontalAnnotation: HorizontalAnnotationInput!
) {
  addHorizontalAnnotation(
    peripheralId: $peripheralId,
    horizontalAnnotation: $horizontalAnnotation
  ) {
    id
    label
    axisValue
  }
}
Variables
{
  "peripheralId": 4,
  "horizontalAnnotation": HorizontalAnnotationInput
}
Response
{
  "data": {
    "addHorizontalAnnotation": {
      "id": "4",
      "label": "xyz789",
      "axisValue": "xyz789"
    }
  }
}

addLineToGroups

Response

Returns an ID

Arguments
Name Description
companyId - ID
lineId - ID!
groupIds - [ID!]!
peripheralIds - [ID!]

Example

Query
mutation AddLineToGroups(
  $companyId: ID,
  $lineId: ID!,
  $groupIds: [ID!]!,
  $peripheralIds: [ID!]
) {
  addLineToGroups(
    companyId: $companyId,
    lineId: $lineId,
    groupIds: $groupIds,
    peripheralIds: $peripheralIds
  )
}
Variables
{
  "companyId": 4,
  "lineId": 4,
  "groupIds": ["4"],
  "peripheralIds": [4]
}
Response
{"data": {"addLineToGroups": 4}}

addPeripheralToGroups

Response

Returns an ID

Arguments
Name Description
companyId - ID
peripheralId - ID!
groupIds - [ID!]!

Example

Query
mutation AddPeripheralToGroups(
  $companyId: ID,
  $peripheralId: ID!,
  $groupIds: [ID!]!
) {
  addPeripheralToGroups(
    companyId: $companyId,
    peripheralId: $peripheralId,
    groupIds: $groupIds
  )
}
Variables
{
  "companyId": "4",
  "peripheralId": "4",
  "groupIds": [4]
}
Response
{"data": {"addPeripheralToGroups": 4}}

addUserToGroups

Response

Returns a User

Arguments
Name Description
companyId - ID
userId - ID!
groupIds - [ID!]!

Example

Query
mutation AddUserToGroups(
  $companyId: ID,
  $userId: ID!,
  $groupIds: [ID!]!
) {
  addUserToGroups(
    companyId: $companyId,
    userId: $userId,
    groupIds: $groupIds
  ) {
    company {
      id
      name
      groups {
        ...GroupFragment
      }
      roles {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      group {
        ...GroupFragment
      }
      appClients {
        ...AppClientFragment
      }
      trialStatus {
        ...TrialStatusFragment
      }
      authConfiguration {
        ...AuthConfigurationFragment
      }
      factoryOverviewSettings {
        ...FactoryOverviewSettingsFragment
      }
    }
    username
    enabled
    userStatus
    userCreateDate
    userLastModifiedDate
    sub
    email
    givenName
    familyName
    emailVerified
    groups {
      id
      defaultGroup
      externalIds
      peripheralIds
      lineIds
      owner {
        ...CompanyFragment
      }
      name
      description
      nodeId
      role {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      sensors {
        ...SensorFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralsPaginated {
        ...PeripheralsPaginatedFragment
      }
      lines {
        ...LineFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
    }
    locationRoles {
      roleId
      locationId
    }
    devices {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
    lines {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    linesPaginated {
      items {
        ...LineFragment
      }
      nextOffset
      total
    }
    skills {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserSkillEdgeFragment
      }
      nodes {
        ...UserSkillFragment
      }
    }
    learningRoles {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserLearningRoleEdgeFragment
      }
      nodes {
        ...UserLearningRoleFragment
      }
    }
    learningActivities {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserLearningActivityEdgeFragment
      }
      nodes {
        ...UserLearningActivityFragment
      }
    }
    sessions {
      generatedAt
      expiresAt
      userSub
    }
  }
}
Variables
{
  "companyId": 4,
  "userId": 4,
  "groupIds": ["4"]
}
Response
{
  "data": {
    "addUserToGroups": {
      "company": Company,
      "username": "xyz789",
      "enabled": true,
      "userStatus": "xyz789",
      "userCreateDate": "2007-12-03",
      "userLastModifiedDate": "2007-12-03",
      "sub": "xyz789",
      "email": "abc123",
      "givenName": "xyz789",
      "familyName": "xyz789",
      "emailVerified": "abc123",
      "groups": [Group],
      "locationRoles": [LocationRole],
      "devices": [Device],
      "lines": [Line],
      "linesPaginated": LinesPaginated,
      "skills": UserSkillConnection,
      "learningRoles": UserLearningRoleConnection,
      "learningActivities": UserLearningActivityConnection,
      "sessions": [Session]
    }
  }
}

addVerticalAnnotation

Description

Create a new vertical time-based annotation for equipment timeline.

Response

Returns a VerticalAnnotation!

Arguments
Name Description
peripheralId - ID!
verticalAnnotation - VerticalAnnotationInput!

Example

Query
mutation AddVerticalAnnotation(
  $peripheralId: ID!,
  $verticalAnnotation: VerticalAnnotationInput!
) {
  addVerticalAnnotation(
    peripheralId: $peripheralId,
    verticalAnnotation: $verticalAnnotation
  ) {
    id
    label
    timestamp
    timestampEnd
    tags
  }
}
Variables
{
  "peripheralId": "4",
  "verticalAnnotation": VerticalAnnotationInput
}
Response
{
  "data": {
    "addVerticalAnnotation": {
      "id": 4,
      "label": "xyz789",
      "timestamp": "2007-12-03",
      "timestampEnd": "2007-12-03",
      "tags": ["xyz789"]
    }
  }
}

andonAttendanceDowngrade

Response

Returns [AndonShift!]!

Arguments
Name Description
companyId - ID!
scheduleId - ID!
shiftId - ID!
input - AttendanceInput!

Example

Query
mutation AndonAttendanceDowngrade(
  $companyId: ID!,
  $scheduleId: ID!,
  $shiftId: ID!,
  $input: AttendanceInput!
) {
  andonAttendanceDowngrade(
    companyId: $companyId,
    scheduleId: $scheduleId,
    shiftId: $shiftId,
    input: $input
  ) {
    id
    name
    duration
    rRuleSet
    attendees {
      id
      name
      email
      phoneNumber
      userSub
      role {
        ...AndonRoleFragment
      }
      roles {
        ...AndonRoleFragment
      }
      preferredSchedules {
        ...AndonScheduleFragment
      }
      isPermanent
      isExcluded
    }
    description
  }
}
Variables
{
  "companyId": 4,
  "scheduleId": "4",
  "shiftId": 4,
  "input": AttendanceInput
}
Response
{
  "data": {
    "andonAttendanceDowngrade": [
      {
        "id": "4",
        "name": "xyz789",
        "duration": 987.65,
        "rRuleSet": "xyz789",
        "attendees": [AttendingWorker],
        "description": "xyz789"
      }
    ]
  }
}

andonAttendanceUpgrade

Response

Returns [AndonShift!]!

Arguments
Name Description
companyId - ID!
scheduleId - ID!
shiftId - ID!
input - AttendanceInput!

Example

Query
mutation AndonAttendanceUpgrade(
  $companyId: ID!,
  $scheduleId: ID!,
  $shiftId: ID!,
  $input: AttendanceInput!
) {
  andonAttendanceUpgrade(
    companyId: $companyId,
    scheduleId: $scheduleId,
    shiftId: $shiftId,
    input: $input
  ) {
    id
    name
    duration
    rRuleSet
    attendees {
      id
      name
      email
      phoneNumber
      userSub
      role {
        ...AndonRoleFragment
      }
      roles {
        ...AndonRoleFragment
      }
      preferredSchedules {
        ...AndonScheduleFragment
      }
      isPermanent
      isExcluded
    }
    description
  }
}
Variables
{
  "companyId": "4",
  "scheduleId": "4",
  "shiftId": 4,
  "input": AttendanceInput
}
Response
{
  "data": {
    "andonAttendanceUpgrade": [
      {
        "id": "4",
        "name": "abc123",
        "duration": 987.65,
        "rRuleSet": "xyz789",
        "attendees": [AttendingWorker],
        "description": "abc123"
      }
    ]
  }
}

andonCallCancel

Response

Returns an ID!

Arguments
Name Description
companyId - ID!
id - ID!

Example

Query
mutation AndonCallCancel(
  $companyId: ID!,
  $id: ID!
) {
  andonCallCancel(
    companyId: $companyId,
    id: $id
  )
}
Variables
{"companyId": 4, "id": "4"}
Response
{"data": {"andonCallCancel": "4"}}

andonCallCreate

Response

Returns a Call!

Arguments
Name Description
companyId - ID!
author - String!
details - String!
lineId - ID!
roleId - ID
tags - [ID!]!
urgency - Urgency!

Example

Query
mutation AndonCallCreate(
  $companyId: ID!,
  $author: String!,
  $details: String!,
  $lineId: ID!,
  $roleId: ID,
  $tags: [ID!]!,
  $urgency: Urgency!
) {
  andonCallCreate(
    companyId: $companyId,
    author: $author,
    details: $details,
    lineId: $lineId,
    roleId: $roleId,
    tags: $tags,
    urgency: $urgency
  ) {
    id
    urgency
    requestedSupport
    role {
      id
      name
      escalationConfiguration {
        ...EscalationConfigurationFragment
      }
    }
    tags {
      id
      lineId
      value
    }
    lineId
    workOrder {
      id
    }
    action {
      make {
        ...ActionFragment
      }
      take {
        ...ActionFragment
      }
      pending {
        ...ActionFragment
      }
      resolve {
        ...ActionFragment
      }
    }
    lastMessage
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{
  "companyId": 4,
  "author": "xyz789",
  "details": "abc123",
  "lineId": "4",
  "roleId": 4,
  "tags": [4],
  "urgency": "MEDIUM"
}
Response
{
  "data": {
    "andonCallCreate": {
      "id": 4,
      "urgency": "MEDIUM",
      "requestedSupport": "xyz789",
      "role": AndonRole,
      "tags": [Tag],
      "lineId": 4,
      "workOrder": WorkOrder,
      "action": ActionMap,
      "lastMessage": "2007-12-03",
      "line": Line
    }
  }
}

andonCallRelease

Response

Returns a Call!

Arguments
Name Description
companyId - ID!
id - ID!

Example

Query
mutation AndonCallRelease(
  $companyId: ID!,
  $id: ID!
) {
  andonCallRelease(
    companyId: $companyId,
    id: $id
  ) {
    id
    urgency
    requestedSupport
    role {
      id
      name
      escalationConfiguration {
        ...EscalationConfigurationFragment
      }
    }
    tags {
      id
      lineId
      value
    }
    lineId
    workOrder {
      id
    }
    action {
      make {
        ...ActionFragment
      }
      take {
        ...ActionFragment
      }
      pending {
        ...ActionFragment
      }
      resolve {
        ...ActionFragment
      }
    }
    lastMessage
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{"companyId": 4, "id": "4"}
Response
{
  "data": {
    "andonCallRelease": {
      "id": "4",
      "urgency": "MEDIUM",
      "requestedSupport": "abc123",
      "role": AndonRole,
      "tags": [Tag],
      "lineId": 4,
      "workOrder": WorkOrder,
      "action": ActionMap,
      "lastMessage": "2007-12-03",
      "line": Line
    }
  }
}

andonCallReopen

Response

Returns a Call!

Arguments
Name Description
companyId - ID!
id - ID!
resolutionTime - Date!

Example

Query
mutation AndonCallReopen(
  $companyId: ID!,
  $id: ID!,
  $resolutionTime: Date!
) {
  andonCallReopen(
    companyId: $companyId,
    id: $id,
    resolutionTime: $resolutionTime
  ) {
    id
    urgency
    requestedSupport
    role {
      id
      name
      escalationConfiguration {
        ...EscalationConfigurationFragment
      }
    }
    tags {
      id
      lineId
      value
    }
    lineId
    workOrder {
      id
    }
    action {
      make {
        ...ActionFragment
      }
      take {
        ...ActionFragment
      }
      pending {
        ...ActionFragment
      }
      resolve {
        ...ActionFragment
      }
    }
    lastMessage
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{
  "companyId": 4,
  "id": "4",
  "resolutionTime": "2007-12-03"
}
Response
{
  "data": {
    "andonCallReopen": {
      "id": 4,
      "urgency": "MEDIUM",
      "requestedSupport": "xyz789",
      "role": AndonRole,
      "tags": [Tag],
      "lineId": 4,
      "workOrder": WorkOrder,
      "action": ActionMap,
      "lastMessage": "2007-12-03",
      "line": Line
    }
  }
}

andonCallResolve

Response

Returns a Call!

Arguments
Name Description
companyId - ID!
id - ID!
author - String!
details - String!

Example

Query
mutation AndonCallResolve(
  $companyId: ID!,
  $id: ID!,
  $author: String!,
  $details: String!
) {
  andonCallResolve(
    companyId: $companyId,
    id: $id,
    author: $author,
    details: $details
  ) {
    id
    urgency
    requestedSupport
    role {
      id
      name
      escalationConfiguration {
        ...EscalationConfigurationFragment
      }
    }
    tags {
      id
      lineId
      value
    }
    lineId
    workOrder {
      id
    }
    action {
      make {
        ...ActionFragment
      }
      take {
        ...ActionFragment
      }
      pending {
        ...ActionFragment
      }
      resolve {
        ...ActionFragment
      }
    }
    lastMessage
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{
  "companyId": "4",
  "id": "4",
  "author": "abc123",
  "details": "xyz789"
}
Response
{
  "data": {
    "andonCallResolve": {
      "id": 4,
      "urgency": "MEDIUM",
      "requestedSupport": "abc123",
      "role": AndonRole,
      "tags": [Tag],
      "lineId": "4",
      "workOrder": WorkOrder,
      "action": ActionMap,
      "lastMessage": "2007-12-03",
      "line": Line
    }
  }
}

andonCallTake

Response

Returns a Call!

Arguments
Name Description
companyId - ID!
id - ID!
author - String

Example

Query
mutation AndonCallTake(
  $companyId: ID!,
  $id: ID!,
  $author: String
) {
  andonCallTake(
    companyId: $companyId,
    id: $id,
    author: $author
  ) {
    id
    urgency
    requestedSupport
    role {
      id
      name
      escalationConfiguration {
        ...EscalationConfigurationFragment
      }
    }
    tags {
      id
      lineId
      value
    }
    lineId
    workOrder {
      id
    }
    action {
      make {
        ...ActionFragment
      }
      take {
        ...ActionFragment
      }
      pending {
        ...ActionFragment
      }
      resolve {
        ...ActionFragment
      }
    }
    lastMessage
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{
  "companyId": 4,
  "id": 4,
  "author": "xyz789"
}
Response
{
  "data": {
    "andonCallTake": {
      "id": 4,
      "urgency": "MEDIUM",
      "requestedSupport": "xyz789",
      "role": AndonRole,
      "tags": [Tag],
      "lineId": 4,
      "workOrder": WorkOrder,
      "action": ActionMap,
      "lastMessage": "2007-12-03",
      "line": Line
    }
  }
}

andonCallUpdateTags

Response

Returns a Call!

Arguments
Name Description
companyId - ID!
id - ID!
tagIds - [ID!]!

Example

Query
mutation AndonCallUpdateTags(
  $companyId: ID!,
  $id: ID!,
  $tagIds: [ID!]!
) {
  andonCallUpdateTags(
    companyId: $companyId,
    id: $id,
    tagIds: $tagIds
  ) {
    id
    urgency
    requestedSupport
    role {
      id
      name
      escalationConfiguration {
        ...EscalationConfigurationFragment
      }
    }
    tags {
      id
      lineId
      value
    }
    lineId
    workOrder {
      id
    }
    action {
      make {
        ...ActionFragment
      }
      take {
        ...ActionFragment
      }
      pending {
        ...ActionFragment
      }
      resolve {
        ...ActionFragment
      }
    }
    lastMessage
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{
  "companyId": "4",
  "id": 4,
  "tagIds": ["4"]
}
Response
{
  "data": {
    "andonCallUpdateTags": {
      "id": 4,
      "urgency": "MEDIUM",
      "requestedSupport": "xyz789",
      "role": AndonRole,
      "tags": [Tag],
      "lineId": "4",
      "workOrder": WorkOrder,
      "action": ActionMap,
      "lastMessage": "2007-12-03",
      "line": Line
    }
  }
}

andonCallUpgrade

Response

Returns a Call!

Arguments
Name Description
companyId - ID!
id - ID!

Example

Query
mutation AndonCallUpgrade(
  $companyId: ID!,
  $id: ID!
) {
  andonCallUpgrade(
    companyId: $companyId,
    id: $id
  ) {
    id
    urgency
    requestedSupport
    role {
      id
      name
      escalationConfiguration {
        ...EscalationConfigurationFragment
      }
    }
    tags {
      id
      lineId
      value
    }
    lineId
    workOrder {
      id
    }
    action {
      make {
        ...ActionFragment
      }
      take {
        ...ActionFragment
      }
      pending {
        ...ActionFragment
      }
      resolve {
        ...ActionFragment
      }
    }
    lastMessage
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{
  "companyId": "4",
  "id": "4"
}
Response
{
  "data": {
    "andonCallUpgrade": {
      "id": 4,
      "urgency": "MEDIUM",
      "requestedSupport": "abc123",
      "role": AndonRole,
      "tags": [Tag],
      "lineId": "4",
      "workOrder": WorkOrder,
      "action": ActionMap,
      "lastMessage": "2007-12-03",
      "line": Line
    }
  }
}

andonCallWorkOrderInitiate

Response

Returns a Call!

Arguments
Name Description
companyId - ID!
callId - ID!
tagId - ID!
author - String!
details - String!

Example

Query
mutation AndonCallWorkOrderInitiate(
  $companyId: ID!,
  $callId: ID!,
  $tagId: ID!,
  $author: String!,
  $details: String!
) {
  andonCallWorkOrderInitiate(
    companyId: $companyId,
    callId: $callId,
    tagId: $tagId,
    author: $author,
    details: $details
  ) {
    id
    urgency
    requestedSupport
    role {
      id
      name
      escalationConfiguration {
        ...EscalationConfigurationFragment
      }
    }
    tags {
      id
      lineId
      value
    }
    lineId
    workOrder {
      id
    }
    action {
      make {
        ...ActionFragment
      }
      take {
        ...ActionFragment
      }
      pending {
        ...ActionFragment
      }
      resolve {
        ...ActionFragment
      }
    }
    lastMessage
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{
  "companyId": "4",
  "callId": 4,
  "tagId": 4,
  "author": "xyz789",
  "details": "xyz789"
}
Response
{
  "data": {
    "andonCallWorkOrderInitiate": {
      "id": "4",
      "urgency": "MEDIUM",
      "requestedSupport": "xyz789",
      "role": AndonRole,
      "tags": [Tag],
      "lineId": "4",
      "workOrder": WorkOrder,
      "action": ActionMap,
      "lastMessage": "2007-12-03",
      "line": Line
    }
  }
}

andonRoleCreate

Response

Returns an AndonRole!

Arguments
Name Description
companyId - ID
input - RoleCreateInput!

Example

Query
mutation AndonRoleCreate(
  $companyId: ID,
  $input: RoleCreateInput!
) {
  andonRoleCreate(
    companyId: $companyId,
    input: $input
  ) {
    id
    name
    escalationConfiguration {
      type
      delay
      takenDelay
    }
  }
}
Variables
{
  "companyId": "4",
  "input": RoleCreateInput
}
Response
{
  "data": {
    "andonRoleCreate": {
      "id": 4,
      "name": "abc123",
      "escalationConfiguration": [EscalationConfiguration]
    }
  }
}

andonRoleDelete

Response

Returns [AndonRole!]!

Arguments
Name Description
companyId - ID!
id - ID!

Example

Query
mutation AndonRoleDelete(
  $companyId: ID!,
  $id: ID!
) {
  andonRoleDelete(
    companyId: $companyId,
    id: $id
  ) {
    id
    name
    escalationConfiguration {
      type
      delay
      takenDelay
    }
  }
}
Variables
{"companyId": 4, "id": "4"}
Response
{
  "data": {
    "andonRoleDelete": [
      {
        "id": "4",
        "name": "xyz789",
        "escalationConfiguration": [
          EscalationConfiguration
        ]
      }
    ]
  }
}

andonRoleUpdate

Response

Returns an AndonRole!

Arguments
Name Description
companyId - ID!
id - ID!
input - RoleUpdateInput!

Example

Query
mutation AndonRoleUpdate(
  $companyId: ID!,
  $id: ID!,
  $input: RoleUpdateInput!
) {
  andonRoleUpdate(
    companyId: $companyId,
    id: $id,
    input: $input
  ) {
    id
    name
    escalationConfiguration {
      type
      delay
      takenDelay
    }
  }
}
Variables
{
  "companyId": "4",
  "id": 4,
  "input": RoleUpdateInput
}
Response
{
  "data": {
    "andonRoleUpdate": {
      "id": "4",
      "name": "abc123",
      "escalationConfiguration": [EscalationConfiguration]
    }
  }
}

andonScheduleCreate

Response

Returns an AndonSchedule!

Arguments
Name Description
companyId - ID!
input - ScheduleCreateInput!

Example

Query
mutation AndonScheduleCreate(
  $companyId: ID!,
  $input: ScheduleCreateInput!
) {
  andonScheduleCreate(
    companyId: $companyId,
    input: $input
  ) {
    id
    name
    lineIds
    shifts {
      id
      name
      duration
      rRuleSet
      attendees {
        ...AttendingWorkerFragment
      }
      description
    }
    shift {
      id
      name
      duration
      rRuleSet
      attendees {
        ...AttendingWorkerFragment
      }
      description
    }
    lines {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{
  "companyId": "4",
  "input": ScheduleCreateInput
}
Response
{
  "data": {
    "andonScheduleCreate": {
      "id": "4",
      "name": "xyz789",
      "lineIds": ["4"],
      "shifts": [AndonShift],
      "shift": [AndonShift],
      "lines": [Line]
    }
  }
}

andonScheduleDelete

Response

Returns a Boolean!

Arguments
Name Description
companyId - ID!
id - ID!

Example

Query
mutation AndonScheduleDelete(
  $companyId: ID!,
  $id: ID!
) {
  andonScheduleDelete(
    companyId: $companyId,
    id: $id
  )
}
Variables
{"companyId": 4, "id": "4"}
Response
{"data": {"andonScheduleDelete": false}}

andonScheduleEventAttend

Response

Returns a MaintenanceEvent!

Arguments
Name Description
companyId - ID!
eventId - ID!
supportId - ID!
email - String
phoneNumber - String

Example

Query
mutation AndonScheduleEventAttend(
  $companyId: ID!,
  $eventId: ID!,
  $supportId: ID!,
  $email: String,
  $phoneNumber: String
) {
  andonScheduleEventAttend(
    companyId: $companyId,
    eventId: $eventId,
    supportId: $supportId,
    email: $email,
    phoneNumber: $phoneNumber
  ) {
    id
    lineId
    summary
    description
    duration
    rRuleSet
    attendees {
      id
      supportId
      email
      phoneNumber
      userSub
      dateExceptions
      messages {
        ...MessageFragment
      }
    }
  }
}
Variables
{
  "companyId": 4,
  "eventId": 4,
  "supportId": "4",
  "email": "xyz789",
  "phoneNumber": "xyz789"
}
Response
{
  "data": {
    "andonScheduleEventAttend": {
      "id": "4",
      "lineId": "4",
      "summary": "abc123",
      "description": "abc123",
      "duration": 987.65,
      "rRuleSet": "abc123",
      "attendees": [Attendee]
    }
  }
}

andonScheduleEventAttendeeAddMessage

Response

Returns [Message!]!

Arguments
Name Description
companyId - ID!
eventId - ID!
attendeeId - ID!
type - SubscriptionType
delay - Float
takenDelay - Float

Example

Query
mutation AndonScheduleEventAttendeeAddMessage(
  $companyId: ID!,
  $eventId: ID!,
  $attendeeId: ID!,
  $type: SubscriptionType,
  $delay: Float,
  $takenDelay: Float
) {
  andonScheduleEventAttendeeAddMessage(
    companyId: $companyId,
    eventId: $eventId,
    attendeeId: $attendeeId,
    type: $type,
    delay: $delay,
    takenDelay: $takenDelay
  ) {
    id
    type
    delay
    takenDelay
  }
}
Variables
{
  "companyId": "4",
  "eventId": 4,
  "attendeeId": "4",
  "type": "SMS",
  "delay": 987.65,
  "takenDelay": 123.45
}
Response
{
  "data": {
    "andonScheduleEventAttendeeAddMessage": [
      {
        "id": "4",
        "type": "SMS",
        "delay": 987.65,
        "takenDelay": 123.45
      }
    ]
  }
}

andonScheduleEventAttendeeDeleteMessage

Response

Returns [Message!]!

Arguments
Name Description
id - ID!
companyId - ID!
eventId - ID!
attendeeId - ID!

Example

Query
mutation AndonScheduleEventAttendeeDeleteMessage(
  $id: ID!,
  $companyId: ID!,
  $eventId: ID!,
  $attendeeId: ID!
) {
  andonScheduleEventAttendeeDeleteMessage(
    id: $id,
    companyId: $companyId,
    eventId: $eventId,
    attendeeId: $attendeeId
  ) {
    id
    type
    delay
    takenDelay
  }
}
Variables
{
  "id": "4",
  "companyId": 4,
  "eventId": "4",
  "attendeeId": 4
}
Response
{
  "data": {
    "andonScheduleEventAttendeeDeleteMessage": [
      {"id": 4, "type": "SMS", "delay": 123.45, "takenDelay": 123.45}
    ]
  }
}

andonScheduleEventCreate

Response

Returns a MaintenanceEvent!

Arguments
Name Description
companyId - ID!
lineId - ID!
summary - String!
description - String
duration - Float!
rRuleSet - String!

Example

Query
mutation AndonScheduleEventCreate(
  $companyId: ID!,
  $lineId: ID!,
  $summary: String!,
  $description: String,
  $duration: Float!,
  $rRuleSet: String!
) {
  andonScheduleEventCreate(
    companyId: $companyId,
    lineId: $lineId,
    summary: $summary,
    description: $description,
    duration: $duration,
    rRuleSet: $rRuleSet
  ) {
    id
    lineId
    summary
    description
    duration
    rRuleSet
    attendees {
      id
      supportId
      email
      phoneNumber
      userSub
      dateExceptions
      messages {
        ...MessageFragment
      }
    }
  }
}
Variables
{
  "companyId": "4",
  "lineId": 4,
  "summary": "xyz789",
  "description": "abc123",
  "duration": 123.45,
  "rRuleSet": "xyz789"
}
Response
{
  "data": {
    "andonScheduleEventCreate": {
      "id": 4,
      "lineId": "4",
      "summary": "xyz789",
      "description": "xyz789",
      "duration": 987.65,
      "rRuleSet": "xyz789",
      "attendees": [Attendee]
    }
  }
}

andonScheduleEventDelete

Response

Returns a Boolean!

Arguments
Name Description
companyId - ID!
id - ID!

Example

Query
mutation AndonScheduleEventDelete(
  $companyId: ID!,
  $id: ID!
) {
  andonScheduleEventDelete(
    companyId: $companyId,
    id: $id
  )
}
Variables
{"companyId": 4, "id": 4}
Response
{"data": {"andonScheduleEventDelete": true}}

andonScheduleEventUnattend

Response

Returns a MaintenanceEvent!

Arguments
Name Description
companyId - ID!
eventId - ID!
attendeeId - ID!
date - Date

Example

Query
mutation AndonScheduleEventUnattend(
  $companyId: ID!,
  $eventId: ID!,
  $attendeeId: ID!,
  $date: Date
) {
  andonScheduleEventUnattend(
    companyId: $companyId,
    eventId: $eventId,
    attendeeId: $attendeeId,
    date: $date
  ) {
    id
    lineId
    summary
    description
    duration
    rRuleSet
    attendees {
      id
      supportId
      email
      phoneNumber
      userSub
      dateExceptions
      messages {
        ...MessageFragment
      }
    }
  }
}
Variables
{
  "companyId": "4",
  "eventId": 4,
  "attendeeId": "4",
  "date": "2007-12-03"
}
Response
{
  "data": {
    "andonScheduleEventUnattend": {
      "id": 4,
      "lineId": 4,
      "summary": "xyz789",
      "description": "xyz789",
      "duration": 123.45,
      "rRuleSet": "xyz789",
      "attendees": [Attendee]
    }
  }
}

andonScheduleEventUpdate

Response

Returns a MaintenanceEvent!

Arguments
Name Description
companyId - ID!
id - ID!
lineId - ID
summary - String
description - String
duration - Float
rRuleSet - String

Example

Query
mutation AndonScheduleEventUpdate(
  $companyId: ID!,
  $id: ID!,
  $lineId: ID,
  $summary: String,
  $description: String,
  $duration: Float,
  $rRuleSet: String
) {
  andonScheduleEventUpdate(
    companyId: $companyId,
    id: $id,
    lineId: $lineId,
    summary: $summary,
    description: $description,
    duration: $duration,
    rRuleSet: $rRuleSet
  ) {
    id
    lineId
    summary
    description
    duration
    rRuleSet
    attendees {
      id
      supportId
      email
      phoneNumber
      userSub
      dateExceptions
      messages {
        ...MessageFragment
      }
    }
  }
}
Variables
{
  "companyId": 4,
  "id": 4,
  "lineId": 4,
  "summary": "xyz789",
  "description": "xyz789",
  "duration": 987.65,
  "rRuleSet": "abc123"
}
Response
{
  "data": {
    "andonScheduleEventUpdate": {
      "id": 4,
      "lineId": "4",
      "summary": "abc123",
      "description": "abc123",
      "duration": 987.65,
      "rRuleSet": "abc123",
      "attendees": [Attendee]
    }
  }
}

andonScheduleUpdate

Response

Returns an AndonSchedule!

Arguments
Name Description
companyId - ID!
id - ID!
input - ScheduleUpdateInput!

Example

Query
mutation AndonScheduleUpdate(
  $companyId: ID!,
  $id: ID!,
  $input: ScheduleUpdateInput!
) {
  andonScheduleUpdate(
    companyId: $companyId,
    id: $id,
    input: $input
  ) {
    id
    name
    lineIds
    shifts {
      id
      name
      duration
      rRuleSet
      attendees {
        ...AttendingWorkerFragment
      }
      description
    }
    shift {
      id
      name
      duration
      rRuleSet
      attendees {
        ...AttendingWorkerFragment
      }
      description
    }
    lines {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{
  "companyId": "4",
  "id": "4",
  "input": ScheduleUpdateInput
}
Response
{
  "data": {
    "andonScheduleUpdate": {
      "id": "4",
      "name": "xyz789",
      "lineIds": [4],
      "shifts": [AndonShift],
      "shift": [AndonShift],
      "lines": [Line]
    }
  }
}

andonShiftCreate

Response

Returns [AndonShift!]!

Arguments
Name Description
companyId - ID!
scheduleId - ID!
input - ShiftCreateInput!

Example

Query
mutation AndonShiftCreate(
  $companyId: ID!,
  $scheduleId: ID!,
  $input: ShiftCreateInput!
) {
  andonShiftCreate(
    companyId: $companyId,
    scheduleId: $scheduleId,
    input: $input
  ) {
    id
    name
    duration
    rRuleSet
    attendees {
      id
      name
      email
      phoneNumber
      userSub
      role {
        ...AndonRoleFragment
      }
      roles {
        ...AndonRoleFragment
      }
      preferredSchedules {
        ...AndonScheduleFragment
      }
      isPermanent
      isExcluded
    }
    description
  }
}
Variables
{
  "companyId": "4",
  "scheduleId": 4,
  "input": ShiftCreateInput
}
Response
{
  "data": {
    "andonShiftCreate": [
      {
        "id": 4,
        "name": "xyz789",
        "duration": 987.65,
        "rRuleSet": "xyz789",
        "attendees": [AttendingWorker],
        "description": "abc123"
      }
    ]
  }
}

andonShiftDelete

Response

Returns a Boolean!

Arguments
Name Description
companyId - ID!
scheduleId - ID!
id - ID!

Example

Query
mutation AndonShiftDelete(
  $companyId: ID!,
  $scheduleId: ID!,
  $id: ID!
) {
  andonShiftDelete(
    companyId: $companyId,
    scheduleId: $scheduleId,
    id: $id
  )
}
Variables
{"companyId": 4, "scheduleId": 4, "id": "4"}
Response
{"data": {"andonShiftDelete": true}}

andonShiftUpdate

Response

Returns [AndonShift!]!

Arguments
Name Description
companyId - ID!
scheduleId - ID!
id - ID!
input - ShiftUpdateInput!

Example

Query
mutation AndonShiftUpdate(
  $companyId: ID!,
  $scheduleId: ID!,
  $id: ID!,
  $input: ShiftUpdateInput!
) {
  andonShiftUpdate(
    companyId: $companyId,
    scheduleId: $scheduleId,
    id: $id,
    input: $input
  ) {
    id
    name
    duration
    rRuleSet
    attendees {
      id
      name
      email
      phoneNumber
      userSub
      role {
        ...AndonRoleFragment
      }
      roles {
        ...AndonRoleFragment
      }
      preferredSchedules {
        ...AndonScheduleFragment
      }
      isPermanent
      isExcluded
    }
    description
  }
}
Variables
{
  "companyId": "4",
  "scheduleId": 4,
  "id": "4",
  "input": ShiftUpdateInput
}
Response
{
  "data": {
    "andonShiftUpdate": [
      {
        "id": 4,
        "name": "xyz789",
        "duration": 987.65,
        "rRuleSet": "abc123",
        "attendees": [AttendingWorker],
        "description": "xyz789"
      }
    ]
  }
}

andonSupportCreate

Response

Returns a SupportType!

Arguments
Name Description
companyId - ID!
name - String!
languageCode - String

Example

Query
mutation AndonSupportCreate(
  $companyId: ID!,
  $name: String!,
  $languageCode: String
) {
  andonSupportCreate(
    companyId: $companyId,
    name: $name,
    languageCode: $languageCode
  ) {
    id
    name
  }
}
Variables
{
  "companyId": "4",
  "name": "xyz789",
  "languageCode": "abc123"
}
Response
{
  "data": {
    "andonSupportCreate": {
      "id": "4",
      "name": "abc123"
    }
  }
}

andonSupportDelete

Response

Returns [SupportType!]!

Arguments
Name Description
companyId - ID!
id - ID!

Example

Query
mutation AndonSupportDelete(
  $companyId: ID!,
  $id: ID!
) {
  andonSupportDelete(
    companyId: $companyId,
    id: $id
  ) {
    id
    name
  }
}
Variables
{"companyId": "4", "id": 4}
Response
{
  "data": {
    "andonSupportDelete": [
      {"id": 4, "name": "xyz789"}
    ]
  }
}

andonSupportUpdate

Response

Returns a SupportType!

Arguments
Name Description
companyId - ID!
id - ID!
name - String!
languageCode - String

Example

Query
mutation AndonSupportUpdate(
  $companyId: ID!,
  $id: ID!,
  $name: String!,
  $languageCode: String
) {
  andonSupportUpdate(
    companyId: $companyId,
    id: $id,
    name: $name,
    languageCode: $languageCode
  ) {
    id
    name
  }
}
Variables
{
  "companyId": "4",
  "id": "4",
  "name": "abc123",
  "languageCode": "abc123"
}
Response
{
  "data": {
    "andonSupportUpdate": {
      "id": 4,
      "name": "xyz789"
    }
  }
}

andonTagCreate

Response

Returns a Tag

Arguments
Name Description
value - String!
lineIds - [ID!]!

Example

Query
mutation AndonTagCreate(
  $value: String!,
  $lineIds: [ID!]!
) {
  andonTagCreate(
    value: $value,
    lineIds: $lineIds
  ) {
    id
    lineId
    value
  }
}
Variables
{
  "value": "xyz789",
  "lineIds": ["4"]
}
Response
{
  "data": {
    "andonTagCreate": {
      "id": 4,
      "lineId": 4,
      "value": "xyz789"
    }
  }
}

andonTagUpdate

Response

Returns a Tag

Arguments
Name Description
id - ID!
value - String
lineIds - [ID!]

Example

Query
mutation AndonTagUpdate(
  $id: ID!,
  $value: String,
  $lineIds: [ID!]
) {
  andonTagUpdate(
    id: $id,
    value: $value,
    lineIds: $lineIds
  ) {
    id
    lineId
    value
  }
}
Variables
{
  "id": "4",
  "value": "abc123",
  "lineIds": ["4"]
}
Response
{
  "data": {
    "andonTagUpdate": {
      "id": "4",
      "lineId": "4",
      "value": "abc123"
    }
  }
}

andonWorkerCreate

Response

Returns a Worker!

Arguments
Name Description
companyId - ID!
input - WorkerCreateInput!

Example

Query
mutation AndonWorkerCreate(
  $companyId: ID!,
  $input: WorkerCreateInput!
) {
  andonWorkerCreate(
    companyId: $companyId,
    input: $input
  ) {
    id
    name
    email
    phoneNumber
    userSub
    role {
      id
      name
      escalationConfiguration {
        ...EscalationConfigurationFragment
      }
    }
    roles {
      id
      name
      escalationConfiguration {
        ...EscalationConfigurationFragment
      }
    }
    preferredSchedules {
      id
      name
      lineIds
      shifts {
        ...AndonShiftFragment
      }
      shift {
        ...AndonShiftFragment
      }
      lines {
        ...LineFragment
      }
    }
  }
}
Variables
{"companyId": 4, "input": WorkerCreateInput}
Response
{
  "data": {
    "andonWorkerCreate": {
      "id": "4",
      "name": "xyz789",
      "email": "xyz789",
      "phoneNumber": "abc123",
      "userSub": "abc123",
      "role": AndonRole,
      "roles": [AndonRole],
      "preferredSchedules": [AndonSchedule]
    }
  }
}

andonWorkerDelete

Response

Returns [Worker!]!

Arguments
Name Description
companyId - ID!
id - ID!

Example

Query
mutation AndonWorkerDelete(
  $companyId: ID!,
  $id: ID!
) {
  andonWorkerDelete(
    companyId: $companyId,
    id: $id
  ) {
    id
    name
    email
    phoneNumber
    userSub
    role {
      id
      name
      escalationConfiguration {
        ...EscalationConfigurationFragment
      }
    }
    roles {
      id
      name
      escalationConfiguration {
        ...EscalationConfigurationFragment
      }
    }
    preferredSchedules {
      id
      name
      lineIds
      shifts {
        ...AndonShiftFragment
      }
      shift {
        ...AndonShiftFragment
      }
      lines {
        ...LineFragment
      }
    }
  }
}
Variables
{"companyId": "4", "id": 4}
Response
{
  "data": {
    "andonWorkerDelete": [
      {
        "id": "4",
        "name": "xyz789",
        "email": "abc123",
        "phoneNumber": "xyz789",
        "userSub": "xyz789",
        "role": AndonRole,
        "roles": [AndonRole],
        "preferredSchedules": [AndonSchedule]
      }
    ]
  }
}

andonWorkerUpdate

Response

Returns a Worker!

Arguments
Name Description
companyId - ID!
id - ID!
input - WorkerUpdateInput!

Example

Query
mutation AndonWorkerUpdate(
  $companyId: ID!,
  $id: ID!,
  $input: WorkerUpdateInput!
) {
  andonWorkerUpdate(
    companyId: $companyId,
    id: $id,
    input: $input
  ) {
    id
    name
    email
    phoneNumber
    userSub
    role {
      id
      name
      escalationConfiguration {
        ...EscalationConfigurationFragment
      }
    }
    roles {
      id
      name
      escalationConfiguration {
        ...EscalationConfigurationFragment
      }
    }
    preferredSchedules {
      id
      name
      lineIds
      shifts {
        ...AndonShiftFragment
      }
      shift {
        ...AndonShiftFragment
      }
      lines {
        ...LineFragment
      }
    }
  }
}
Variables
{
  "companyId": "4",
  "id": 4,
  "input": WorkerUpdateInput
}
Response
{
  "data": {
    "andonWorkerUpdate": {
      "id": 4,
      "name": "xyz789",
      "email": "xyz789",
      "phoneNumber": "xyz789",
      "userSub": "xyz789",
      "role": AndonRole,
      "roles": [AndonRole],
      "preferredSchedules": [AndonSchedule]
    }
  }
}

archivePeripheral

Description

Archive a peripheral.

Response

Returns a Boolean!

Arguments
Name Description
peripheralId - ID! The ID must be a valid PeripheralId.

Example

Query
mutation ArchivePeripheral($peripheralId: ID!) {
  archivePeripheral(peripheralId: $peripheralId)
}
Variables
{"peripheralId": 4}
Response
{"data": {"archivePeripheral": false}}

attachCamera

Response

Returns a Camera!

Arguments
Name Description
peripheralId - ID!
sensorPeripheralId - ID!

Example

Query
mutation AttachCamera(
  $peripheralId: ID!,
  $sensorPeripheralId: ID!
) {
  attachCamera(
    peripheralId: $peripheralId,
    sensorPeripheralId: $sensorPeripheralId
  ) {
    _id
    id
    name
    index
    peripheralId
    owner
    hardwareId
    description
    peripheralType
    offlineStatus {
      expiration
      lastReceived
    }
    attachedSensors {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
    streamURL
    device {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
    hardwareDevice {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
  }
}
Variables
{"peripheralId": 4, "sensorPeripheralId": 4}
Response
{
  "data": {
    "attachCamera": {
      "_id": "4",
      "id": 4,
      "name": "abc123",
      "index": "4",
      "peripheralId": 4,
      "owner": 4,
      "hardwareId": "4",
      "description": "abc123",
      "peripheralType": "SENSOR",
      "offlineStatus": OfflineStatus,
      "attachedSensors": [Sensor],
      "streamURL": "abc123",
      "device": Device,
      "hardwareDevice": Device
    }
  }
}

attachControlReceipt

Response

Returns a Product!

Arguments
Name Description
lineId - ID!
productId - ID!
userPoolId - ID
controlReceiptId - ID!

Example

Query
mutation AttachControlReceipt(
  $lineId: ID!,
  $productId: ID!,
  $userPoolId: ID,
  $controlReceiptId: ID!
) {
  attachControlReceipt(
    lineId: $lineId,
    productId: $productId,
    userPoolId: $userPoolId,
    controlReceiptId: $controlReceiptId
  ) {
    productId
    name
    itemNumber
    validatedLineSpeed
    expectedAverageSpeed
    comment
    lineId
    dataMultiplier
    packaging {
      packagingId
      packagingNumber
      lineId
      name
      unit
      comment
    }
    overwrittenByBatch
    parameters {
      key
      value
      alarm {
        ...AlarmFragment
      }
      setpoint {
        ...SetPointFragment
      }
    }
    attachedControlReceipts {
      controlReceiptId
      userPoolId
      name
      description
      entries {
        ...ControlReceiptEntryFragment
      }
      deleted
      attachedProducts {
        ...ProductFragment
      }
    }
  }
}
Variables
{
  "lineId": "4",
  "productId": 4,
  "userPoolId": "4",
  "controlReceiptId": 4
}
Response
{
  "data": {
    "attachControlReceipt": {
      "productId": 4,
      "name": "xyz789",
      "itemNumber": "abc123",
      "validatedLineSpeed": 987.65,
      "expectedAverageSpeed": 987.65,
      "comment": "xyz789",
      "lineId": "4",
      "dataMultiplier": 123.45,
      "packaging": Packaging,
      "overwrittenByBatch": false,
      "parameters": [Parameter],
      "attachedControlReceipts": [ControlReceipt]
    }
  }
}

batchSetAlarmEnablement

Description

Recursively configure alarm enablement for a node and all its descendants. Returns the ID of the modified node.

Response

Returns an ID!

Arguments
Name Description
treeId - String!
input - SetAlarmEnablementInput!

Example

Query
mutation BatchSetAlarmEnablement(
  $treeId: String!,
  $input: SetAlarmEnablementInput!
) {
  batchSetAlarmEnablement(
    treeId: $treeId,
    input: $input
  )
}
Variables
{
  "treeId": "abc123",
  "input": SetAlarmEnablementInput
}
Response
{"data": {"batchSetAlarmEnablement": "4"}}

cancelBatchControl

Response

Returns a BatchControl!

Arguments
Name Description
lineId - ID!
batchId - ID!
controlId - ID!
comment - String
initials - String

Example

Query
mutation CancelBatchControl(
  $lineId: ID!,
  $batchId: ID!,
  $controlId: ID!,
  $comment: String,
  $initials: String
) {
  cancelBatchControl(
    lineId: $lineId,
    batchId: $batchId,
    controlId: $controlId,
    comment: $comment,
    initials: $initials
  ) {
    batchControlId
    batchId
    comment
    controlReceiptId
    controlReceiptName
    entryId
    fieldValues {
      controlReceiptField {
        ...ControlReceiptEntryFieldFragment
      }
      value
    }
    followUp {
      enabled
      delayMs
    }
    history {
      comment
      fieldValues {
        ...BatchControlFieldValueFragment
      }
      initials
      status
      timeControlUpdated
      timeControlled
    }
    initials
    initialsSettings
    originalControl {
      controlId
      timeTriggered
    }
    status
    timeControlUpdated
    timeControlled
    timeTriggered
    title
    trigger {
      type
      payload {
        ...TimedTriggerPayloadFragment
      }
      delayWhenStopped
    }
  }
}
Variables
{
  "lineId": "4",
  "batchId": "4",
  "controlId": 4,
  "comment": "abc123",
  "initials": "abc123"
}
Response
{
  "data": {
    "cancelBatchControl": {
      "batchControlId": "4",
      "batchId": "4",
      "comment": "xyz789",
      "controlReceiptId": "4",
      "controlReceiptName": "abc123",
      "entryId": 4,
      "fieldValues": [BatchControlFieldValue],
      "followUp": FollowUpSettings,
      "history": [BatchControlHistory],
      "initials": "abc123",
      "initialsSettings": "REQUIRED_IF_OUTSIDE_LIMITS",
      "originalControl": OriginalControlDetails,
      "status": "CANCELED",
      "timeControlUpdated": "2007-12-03",
      "timeControlled": "2007-12-03",
      "timeTriggered": "2007-12-03",
      "title": "abc123",
      "trigger": ControlTrigger
    }
  }
}

cancelPendingBatchControl

Use cancelPendingBatchControls instead.
Response

Returns a BatchControl!

Arguments
Name Description
lineId - ID!
batchId - ID!
controlId - ID!
comment - String
initials - String

Example

Query
mutation CancelPendingBatchControl(
  $lineId: ID!,
  $batchId: ID!,
  $controlId: ID!,
  $comment: String,
  $initials: String
) {
  cancelPendingBatchControl(
    lineId: $lineId,
    batchId: $batchId,
    controlId: $controlId,
    comment: $comment,
    initials: $initials
  ) {
    batchControlId
    batchId
    comment
    controlReceiptId
    controlReceiptName
    entryId
    fieldValues {
      controlReceiptField {
        ...ControlReceiptEntryFieldFragment
      }
      value
    }
    followUp {
      enabled
      delayMs
    }
    history {
      comment
      fieldValues {
        ...BatchControlFieldValueFragment
      }
      initials
      status
      timeControlUpdated
      timeControlled
    }
    initials
    initialsSettings
    originalControl {
      controlId
      timeTriggered
    }
    status
    timeControlUpdated
    timeControlled
    timeTriggered
    title
    trigger {
      type
      payload {
        ...TimedTriggerPayloadFragment
      }
      delayWhenStopped
    }
  }
}
Variables
{
  "lineId": 4,
  "batchId": "4",
  "controlId": "4",
  "comment": "abc123",
  "initials": "abc123"
}
Response
{
  "data": {
    "cancelPendingBatchControl": {
      "batchControlId": 4,
      "batchId": 4,
      "comment": "abc123",
      "controlReceiptId": "4",
      "controlReceiptName": "xyz789",
      "entryId": 4,
      "fieldValues": [BatchControlFieldValue],
      "followUp": FollowUpSettings,
      "history": [BatchControlHistory],
      "initials": "abc123",
      "initialsSettings": "REQUIRED_IF_OUTSIDE_LIMITS",
      "originalControl": OriginalControlDetails,
      "status": "CANCELED",
      "timeControlUpdated": "2007-12-03",
      "timeControlled": "2007-12-03",
      "timeTriggered": "2007-12-03",
      "title": "xyz789",
      "trigger": ControlTrigger
    }
  }
}

cancelPendingBatchControls

Response

Returns [BatchControl!]!

Arguments
Name Description
lineId - ID!
batchId - ID!
controlIds - [ID!]!
comment - String
initials - String

Example

Query
mutation CancelPendingBatchControls(
  $lineId: ID!,
  $batchId: ID!,
  $controlIds: [ID!]!,
  $comment: String,
  $initials: String
) {
  cancelPendingBatchControls(
    lineId: $lineId,
    batchId: $batchId,
    controlIds: $controlIds,
    comment: $comment,
    initials: $initials
  ) {
    batchControlId
    batchId
    comment
    controlReceiptId
    controlReceiptName
    entryId
    fieldValues {
      controlReceiptField {
        ...ControlReceiptEntryFieldFragment
      }
      value
    }
    followUp {
      enabled
      delayMs
    }
    history {
      comment
      fieldValues {
        ...BatchControlFieldValueFragment
      }
      initials
      status
      timeControlUpdated
      timeControlled
    }
    initials
    initialsSettings
    originalControl {
      controlId
      timeTriggered
    }
    status
    timeControlUpdated
    timeControlled
    timeTriggered
    title
    trigger {
      type
      payload {
        ...TimedTriggerPayloadFragment
      }
      delayWhenStopped
    }
  }
}
Variables
{
  "lineId": 4,
  "batchId": "4",
  "controlIds": [4],
  "comment": "abc123",
  "initials": "abc123"
}
Response
{
  "data": {
    "cancelPendingBatchControls": [
      {
        "batchControlId": 4,
        "batchId": "4",
        "comment": "abc123",
        "controlReceiptId": 4,
        "controlReceiptName": "abc123",
        "entryId": "4",
        "fieldValues": [BatchControlFieldValue],
        "followUp": FollowUpSettings,
        "history": [BatchControlHistory],
        "initials": "xyz789",
        "initialsSettings": "REQUIRED_IF_OUTSIDE_LIMITS",
        "originalControl": OriginalControlDetails,
        "status": "CANCELED",
        "timeControlUpdated": "2007-12-03",
        "timeControlled": "2007-12-03",
        "timeTriggered": "2007-12-03",
        "title": "abc123",
        "trigger": ControlTrigger
      }
    ]
  }
}

claimDevice

Response

Returns a Device!

Arguments
Name Description
input - ClaimDeviceInput!

Example

Query
mutation ClaimDevice($input: ClaimDeviceInput!) {
  claimDevice(input: $input) {
    _id
    uuid
    owner
    type
    hardwareId
    name
    numInputPorts
    sensor {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
    status {
      firmwareVersions {
        ...FirmwareVersionsFragment
      }
      hardwareVersion
    }
    network {
      wifi {
        ...WiFiConfigShadowFragment
      }
      connection
      general {
        ...GeneralNetworkShadowSettingsFragment
      }
    }
    sensors {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
    peripheral {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    peripherals {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    peripheralPhysicalInput {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    peripheralPhysicalInputs {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    pendingJobExecutions {
      thingName
      jobId
      executionNumber
      lastUpdatedAt
      queuedAt
      retryAttempt
      startedAt
      status
      describeJobExecution {
        ...DescribeJobExecutionFragment
      }
    }
    updateAvailable
    certificates {
      id
      isActive
      createdAt
      validAt
      expiresAt
      subject
      issuer
    }
  }
}
Variables
{"input": ClaimDeviceInput}
Response
{
  "data": {
    "claimDevice": {
      "_id": 4,
      "uuid": 4,
      "owner": 4,
      "type": "abc123",
      "hardwareId": 4,
      "name": "abc123",
      "numInputPorts": 987,
      "sensor": Sensor,
      "status": DeviceStatus,
      "network": NetworkConfig,
      "sensors": [Sensor],
      "peripheral": Peripheral,
      "peripherals": [Peripheral],
      "peripheralPhysicalInput": Peripheral,
      "peripheralPhysicalInputs": [Peripheral],
      "pendingJobExecutions": [JobExecutionSummary],
      "updateAvailable": false,
      "certificates": [Certificate]
    }
  }
}

createActionPlan

Response

Returns an ActionPlan!

Arguments
Name Description
nodeId - String!
input - CreateActionPlanInput!
sendNotification - Boolean Send a notification to the assignee (if assigned in input), defaults to true

Example

Query
mutation CreateActionPlan(
  $nodeId: String!,
  $input: CreateActionPlanInput!,
  $sendNotification: Boolean
) {
  createActionPlan(
    nodeId: $nodeId,
    input: $input,
    sendNotification: $sendNotification
  ) {
    state
    title
    pdcaState
    followUpInterval
    followUpState
    dueDate
    linkedProductionData
    version
    category {
      id
      meta {
        ...ActionPlanCategoryMetaFragment
      }
      color
      version
      nodeId
    }
    content {
      column
      content
    }
    escalations {
      nodeId
      creationDate
      createdBySub
      assignedToSub
      priority
      version
      plan {
        ...ActionPlanFragment
      }
      id
      assignedTo {
        ...UserFragment
      }
      createdBy {
        ...UserFragment
      }
      node {
        ...HierarchyNodeFragment
      }
    }
    attachedFiles
    tasks {
      content
      checked
      version
      plan {
        ...ActionPlanFragment
      }
      id
    }
    id
  }
}
Variables
{
  "nodeId": "xyz789",
  "input": CreateActionPlanInput,
  "sendNotification": false
}
Response
{
  "data": {
    "createActionPlan": {
      "state": "OPEN",
      "title": "xyz789",
      "pdcaState": "PLAN",
      "followUpInterval": "DAILY",
      "followUpState": 987,
      "dueDate": "2007-12-03T10:15:30Z",
      "linkedProductionData": ["xyz789"],
      "version": 123,
      "category": ActionPlanCategory,
      "content": [ActionPlanContent],
      "escalations": [Escalation],
      "attachedFiles": ["xyz789"],
      "tasks": [ActionPlanTask],
      "id": "xyz789"
    }
  }
}

createActionPlanTask

Response

Returns an ActionPlanTask!

Arguments
Name Description
input - CreateActionPlanTaskInput!

Example

Query
mutation CreateActionPlanTask($input: CreateActionPlanTaskInput!) {
  createActionPlanTask(input: $input) {
    content
    checked
    version
    plan {
      state
      title
      pdcaState
      followUpInterval
      followUpState
      dueDate
      linkedProductionData
      version
      category {
        ...ActionPlanCategoryFragment
      }
      content {
        ...ActionPlanContentFragment
      }
      escalations {
        ...EscalationFragment
      }
      attachedFiles
      tasks {
        ...ActionPlanTaskFragment
      }
      id
    }
    id
  }
}
Variables
{"input": CreateActionPlanTaskInput}
Response
{
  "data": {
    "createActionPlanTask": {
      "content": "xyz789",
      "checked": true,
      "version": 987,
      "plan": ActionPlan,
      "id": "xyz789"
    }
  }
}

createActivitiesDocument

Response

Returns a GeneratedExportDocument!

Arguments
Name Description
documentInputHeaders - DocumentInputHeaders!
documentInputs - DocumentInputActivities!

Example

Query
mutation CreateActivitiesDocument(
  $documentInputHeaders: DocumentInputHeaders!,
  $documentInputs: DocumentInputActivities!
) {
  createActivitiesDocument(
    documentInputHeaders: $documentInputHeaders,
    documentInputs: $documentInputs
  ) {
    url
    name
    description
    generatedAt
  }
}
Variables
{
  "documentInputHeaders": DocumentInputHeaders,
  "documentInputs": DocumentInputActivities
}
Response
{
  "data": {
    "createActivitiesDocument": {
      "url": "abc123",
      "name": "abc123",
      "description": "xyz789",
      "generatedAt": "2007-12-03"
    }
  }
}

createActivity

Response

Returns an Activity!

Arguments
Name Description
input - CreateActivityInput!

Example

Query
mutation CreateActivity($input: CreateActivityInput!) {
  createActivity(input: $input) {
    id
    status
    activityTemplate {
      id
      title
      description
      translations {
        ...ActivityTemplateTranslationFragment
      }
      customFormId
      customFormVersion
      triggers {
        ...TriggerFragment
      }
      expiresAfterMinutes
      locationIds
      version
      createdAt
      deletedAt
      versions {
        ...VersionedActivityTemplatesConnectionFragment
      }
      customForm {
        ...CustomFormFragment
      }
      tags {
        ...ActivityTagFragment
      }
    }
    trigger {
      id
      type {
        ...ActivityTriggerTypeFragment
      }
      conditions {
        ...TriggerConditionsFragment
      }
      isActive
    }
    customFormData {
      formId
      formVersion
      values {
        ...CustomFieldValueFragment
      }
      initials
      form {
        ...CustomFormFragment
      }
      schema
    }
    stopRegistration {
      start
      end
      comment
      initials
      stopCause {
        ...ActivityStopCauseFragment
      }
    }
    createdAt
    archivedAt
    version
    locationId
    isPassing
    batch {
      actualStart
      actualStop
      amount
      batchId
      batchNumber
      comment
      lineId
      manualScrap
      plannedStart
      produced
      product {
        ...ProductFragment
      }
      sorting
      state
      tags
      controls {
        ...BatchControlFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
      scrap {
        ...SampleFragment
      }
      createdBy {
        ...UserFragment
      }
      line {
        ...LineFragment
      }
      plannedEtc
      actualEtc
    }
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{"input": CreateActivityInput}
Response
{
  "data": {
    "createActivity": {
      "id": ActivityId,
      "status": "PENDING",
      "activityTemplate": ActivityTemplate,
      "trigger": Trigger,
      "customFormData": CustomFormData,
      "stopRegistration": ActivityStopRegistration,
      "createdAt": "2007-12-03T10:15:30Z",
      "archivedAt": "2007-12-03T10:15:30Z",
      "version": 123,
      "locationId": NodeId,
      "isPassing": true,
      "batch": Batch,
      "line": Line
    }
  }
}

createActivityTag

Internal use only
Response

Returns an ActivityTag!

Arguments
Name Description
input - ActivityTagInput!

Example

Query
mutation CreateActivityTag($input: ActivityTagInput!) {
  createActivityTag(input: $input) {
    id
    name
    createdAt
    modifiedAt
    deletedAt
    templateCount
  }
}
Variables
{"input": ActivityTagInput}
Response
{
  "data": {
    "createActivityTag": {
      "id": ActivityTagId,
      "name": "abc123",
      "createdAt": "2007-12-03T10:15:30Z",
      "modifiedAt": "2007-12-03T10:15:30Z",
      "deletedAt": "2007-12-03T10:15:30Z",
      "templateCount": 987
    }
  }
}

createActivityTemplate

Internal use only
Response

Returns an ActivityTemplate!

Arguments
Name Description
input - ActivityTemplateInput!

Example

Query
mutation CreateActivityTemplate($input: ActivityTemplateInput!) {
  createActivityTemplate(input: $input) {
    id
    title
    description
    translations {
      title
      description
      languageCode
    }
    customFormId
    customFormVersion
    triggers {
      id
      type {
        ...ActivityTriggerTypeFragment
      }
      conditions {
        ...TriggerConditionsFragment
      }
      isActive
    }
    expiresAfterMinutes
    locationIds
    version
    createdAt
    deletedAt
    versions {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...VersionedActivityTemplateEdgeFragment
      }
      nodes {
        ...ActivityTemplateFragment
      }
    }
    customForm {
      id
      title
      description
      translations {
        ...CustomFormTranslationFragment
      }
      fields {
        ...CustomFormFieldFragment
      }
      requireInitials
      version
      createdAt
      deletedAt
    }
    tags {
      id
      name
      createdAt
      modifiedAt
      deletedAt
      templateCount
    }
  }
}
Variables
{"input": ActivityTemplateInput}
Response
{
  "data": {
    "createActivityTemplate": {
      "id": ActivityTemplateId,
      "title": "xyz789",
      "description": "xyz789",
      "translations": [ActivityTemplateTranslation],
      "customFormId": CustomFormId,
      "customFormVersion": 123,
      "triggers": [Trigger],
      "expiresAfterMinutes": 123,
      "locationIds": [NodeId],
      "version": 987,
      "createdAt": "2007-12-03T10:15:30Z",
      "deletedAt": "2007-12-03T10:15:30Z",
      "versions": VersionedActivityTemplatesConnection,
      "customForm": CustomForm,
      "tags": [ActivityTag]
    }
  }
}

createAlarm

Response

Returns an Alarm!

Arguments
Name Description
peripheralId - ID!
name - String!
description - String!
threshold - Int!
type - AlarmType!
alarmConfiguration - AlarmConfigurationInput!
enabled - Boolean
repeatNotification - Boolean Default = true
snoozeDuration - Int
subscribers - [SubscriberInput!]

Example

Query
mutation CreateAlarm(
  $peripheralId: ID!,
  $name: String!,
  $description: String!,
  $threshold: Int!,
  $type: AlarmType!,
  $alarmConfiguration: AlarmConfigurationInput!,
  $enabled: Boolean,
  $repeatNotification: Boolean,
  $snoozeDuration: Int,
  $subscribers: [SubscriberInput!]
) {
  createAlarm(
    peripheralId: $peripheralId,
    name: $name,
    description: $description,
    threshold: $threshold,
    type: $type,
    alarmConfiguration: $alarmConfiguration,
    enabled: $enabled,
    repeatNotification: $repeatNotification,
    snoozeDuration: $snoozeDuration,
    subscribers: $subscribers
  ) {
    id
    name
    description
    peripheralId
    status
    threshold
    repeatNotification
    enabled
    type
    alarmConfiguration {
      x
      t
      y
      n
      stopType
    }
    languageCode
    snoozeDuration
    alarmLogs {
      lastEvaluatedKey {
        ...AlarmLogLastEvaluatedKeyFragment
      }
      entries {
        ...AlarmLogFragment
      }
    }
    subscribers {
      type
      languageCode
      value
    }
    timeRange {
      from
      to
    }
    peripheral {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
  }
}
Variables
{
  "peripheralId": "4",
  "name": "xyz789",
  "description": "xyz789",
  "threshold": 123,
  "type": "AboveX",
  "alarmConfiguration": AlarmConfigurationInput,
  "enabled": true,
  "repeatNotification": true,
  "snoozeDuration": 987,
  "subscribers": [SubscriberInput]
}
Response
{
  "data": {
    "createAlarm": {
      "id": "4",
      "name": "abc123",
      "description": "xyz789",
      "peripheralId": 4,
      "status": "NORMAL",
      "threshold": 123,
      "repeatNotification": false,
      "enabled": false,
      "type": "AboveX",
      "alarmConfiguration": AlarmConfiguration,
      "languageCode": "xyz789",
      "snoozeDuration": 123,
      "alarmLogs": AlarmLogs,
      "subscribers": [SubscriberOutput],
      "timeRange": TimeRange,
      "peripheral": Peripheral
    }
  }
}

createAnalyticsDocument

Response

Returns a GeneratedExportDocument!

Arguments
Name Description
peripheralId - ID!
documentInputHeaders - DocumentInputHeaders!
documentInputs - DocumentInputAnalytics!

Example

Query
mutation CreateAnalyticsDocument(
  $peripheralId: ID!,
  $documentInputHeaders: DocumentInputHeaders!,
  $documentInputs: DocumentInputAnalytics!
) {
  createAnalyticsDocument(
    peripheralId: $peripheralId,
    documentInputHeaders: $documentInputHeaders,
    documentInputs: $documentInputs
  ) {
    url
    name
    description
    generatedAt
  }
}
Variables
{
  "peripheralId": 4,
  "documentInputHeaders": DocumentInputHeaders,
  "documentInputs": DocumentInputAnalytics
}
Response
{
  "data": {
    "createAnalyticsDocument": {
      "url": "xyz789",
      "name": "abc123",
      "description": "xyz789",
      "generatedAt": "2007-12-03"
    }
  }
}

createAppClient

Description

Create an OAuth2 client to be used for a client credentials grant flow to issue a short-lived access token.

Response

Returns a CreateAppClientOutput

Arguments
Name Description
input - CreateAppClientInput!

Example

Query
mutation CreateAppClient($input: CreateAppClientInput!) {
  createAppClient(input: $input) {
    clientSecret
    appClient {
      id
      name
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{"input": CreateAppClientInput}
Response
{
  "data": {
    "createAppClient": {
      "clientSecret": "xyz789",
      "appClient": AppClient
    }
  }
}

createAssistantConversationAsync

Internal use only
Description

Start a new assistant conversation based on a human message. Use assistant_conversation to get updates on the conversation.

Response

Returns an AssistantConversation!

Arguments
Name Description
text - String!
messageContext - MessageContext
timeZone - String

Example

Query
mutation CreateAssistantConversationAsync(
  $text: String!,
  $messageContext: MessageContext,
  $timeZone: String
) {
  createAssistantConversationAsync(
    text: $text,
    messageContext: $messageContext,
    timeZone: $timeZone
  ) {
    id
    messages {
      role
      messageId
      status
      content {
        ... on ConversationContentText {
          ...ConversationContentTextFragment
        }
        ... on ConversationContentVisualizationOptions {
          ...ConversationContentVisualizationOptionsFragment
        }
      }
    }
  }
}
Variables
{
  "text": "abc123",
  "messageContext": MessageContext,
  "timeZone": "xyz789"
}
Response
{
  "data": {
    "createAssistantConversationAsync": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "messages": [ConversationMessage]
    }
  }
}

createBatch

Response

Returns a Batch!

Arguments
Name Description
lineId - ID!
batchNumber - String!
plannedStart - Date!
actualStart - Date
actualStop - Date
amount - Float!
manualScrap - Float
comment - String
productId - ID!
dataMultiplier - Float
validatedLineSpeed - Float
expectedAverageSpeed - Float
forceStop - Boolean

Example

Query
mutation CreateBatch(
  $lineId: ID!,
  $batchNumber: String!,
  $plannedStart: Date!,
  $actualStart: Date,
  $actualStop: Date,
  $amount: Float!,
  $manualScrap: Float,
  $comment: String,
  $productId: ID!,
  $dataMultiplier: Float,
  $validatedLineSpeed: Float,
  $expectedAverageSpeed: Float,
  $forceStop: Boolean
) {
  createBatch(
    lineId: $lineId,
    batchNumber: $batchNumber,
    plannedStart: $plannedStart,
    actualStart: $actualStart,
    actualStop: $actualStop,
    amount: $amount,
    manualScrap: $manualScrap,
    comment: $comment,
    productId: $productId,
    dataMultiplier: $dataMultiplier,
    validatedLineSpeed: $validatedLineSpeed,
    expectedAverageSpeed: $expectedAverageSpeed,
    forceStop: $forceStop
  ) {
    actualStart
    actualStop
    amount
    batchId
    batchNumber
    comment
    lineId
    manualScrap
    plannedStart
    produced
    product {
      productId
      name
      itemNumber
      validatedLineSpeed
      expectedAverageSpeed
      comment
      lineId
      dataMultiplier
      packaging {
        ...PackagingFragment
      }
      overwrittenByBatch
      parameters {
        ...ParameterFragment
      }
      attachedControlReceipts {
        ...ControlReceiptFragment
      }
    }
    sorting
    state
    tags
    controls {
      batchControlId
      batchId
      comment
      controlReceiptId
      controlReceiptName
      entryId
      fieldValues {
        ...BatchControlFieldValueFragment
      }
      followUp {
        ...FollowUpSettingsFragment
      }
      history {
        ...BatchControlHistoryFragment
      }
      initials
      initialsSettings
      originalControl {
        ...OriginalControlDetailsFragment
      }
      status
      timeControlUpdated
      timeControlled
      timeTriggered
      title
      trigger {
        ...ControlTriggerFragment
      }
    }
    samples {
      data {
        ...SampleDataFragment
      }
      timeRange {
        ...TimeRangeFragment
      }
    }
    stops {
      _id
      timeRange {
        ...TimeRangeFragment
      }
      originalStart
      ongoing
      duration
      stopCause {
        ...StopCauseFragment
      }
      comment
      initials
      registeredTime
      isMicroStop
      isAutomaticRegistration
      standalone {
        ...StandaloneConfigurationFragment
      }
      target {
        ...TargetFragment
      }
      countermeasure
      countermeasureInitials
    }
    stopStats {
      longestNonStop
      lastStop {
        ...StopFragment
      }
      stopCauseStats {
        ...StopCauseStatFragment
      }
    }
    stats {
      timeRange {
        ...TimeRangeFragment
      }
      data {
        ...DataFragment
      }
    }
    scrap {
      data {
        ...SampleDataFragment
      }
      timeRange {
        ...TimeRangeFragment
      }
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    plannedEtc
    actualEtc
  }
}
Variables
{
  "lineId": "4",
  "batchNumber": "xyz789",
  "plannedStart": "2007-12-03",
  "actualStart": "2007-12-03",
  "actualStop": "2007-12-03",
  "amount": 987.65,
  "manualScrap": 123.45,
  "comment": "abc123",
  "productId": 4,
  "dataMultiplier": 987.65,
  "validatedLineSpeed": 123.45,
  "expectedAverageSpeed": 123.45,
  "forceStop": true
}
Response
{
  "data": {
    "createBatch": {
      "actualStart": "2007-12-03",
      "actualStop": "2007-12-03",
      "amount": 987.65,
      "batchId": 4,
      "batchNumber": "xyz789",
      "comment": "abc123",
      "lineId": 4,
      "manualScrap": 123.45,
      "plannedStart": "2007-12-03",
      "produced": 987.65,
      "product": Product,
      "sorting": "xyz789",
      "state": "COMPLETED",
      "tags": ["xyz789"],
      "controls": [BatchControl],
      "samples": [Sample],
      "stops": [Stop],
      "stopStats": StopStats,
      "stats": Stat,
      "scrap": [Sample],
      "createdBy": User,
      "line": Line,
      "plannedEtc": "2007-12-03",
      "actualEtc": "2007-12-03"
    }
  }
}

createBatchByItemNumber

Description

Create batch by item number

Response

Returns a Batch!

Arguments
Name Description
input - CreateBatchByItemNumberInput!

Example

Query
mutation CreateBatchByItemNumber($input: CreateBatchByItemNumberInput!) {
  createBatchByItemNumber(input: $input) {
    actualStart
    actualStop
    amount
    batchId
    batchNumber
    comment
    lineId
    manualScrap
    plannedStart
    produced
    product {
      productId
      name
      itemNumber
      validatedLineSpeed
      expectedAverageSpeed
      comment
      lineId
      dataMultiplier
      packaging {
        ...PackagingFragment
      }
      overwrittenByBatch
      parameters {
        ...ParameterFragment
      }
      attachedControlReceipts {
        ...ControlReceiptFragment
      }
    }
    sorting
    state
    tags
    controls {
      batchControlId
      batchId
      comment
      controlReceiptId
      controlReceiptName
      entryId
      fieldValues {
        ...BatchControlFieldValueFragment
      }
      followUp {
        ...FollowUpSettingsFragment
      }
      history {
        ...BatchControlHistoryFragment
      }
      initials
      initialsSettings
      originalControl {
        ...OriginalControlDetailsFragment
      }
      status
      timeControlUpdated
      timeControlled
      timeTriggered
      title
      trigger {
        ...ControlTriggerFragment
      }
    }
    samples {
      data {
        ...SampleDataFragment
      }
      timeRange {
        ...TimeRangeFragment
      }
    }
    stops {
      _id
      timeRange {
        ...TimeRangeFragment
      }
      originalStart
      ongoing
      duration
      stopCause {
        ...StopCauseFragment
      }
      comment
      initials
      registeredTime
      isMicroStop
      isAutomaticRegistration
      standalone {
        ...StandaloneConfigurationFragment
      }
      target {
        ...TargetFragment
      }
      countermeasure
      countermeasureInitials
    }
    stopStats {
      longestNonStop
      lastStop {
        ...StopFragment
      }
      stopCauseStats {
        ...StopCauseStatFragment
      }
    }
    stats {
      timeRange {
        ...TimeRangeFragment
      }
      data {
        ...DataFragment
      }
    }
    scrap {
      data {
        ...SampleDataFragment
      }
      timeRange {
        ...TimeRangeFragment
      }
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    plannedEtc
    actualEtc
  }
}
Variables
{"input": CreateBatchByItemNumberInput}
Response
{
  "data": {
    "createBatchByItemNumber": {
      "actualStart": "2007-12-03",
      "actualStop": "2007-12-03",
      "amount": 123.45,
      "batchId": "4",
      "batchNumber": "xyz789",
      "comment": "abc123",
      "lineId": 4,
      "manualScrap": 123.45,
      "plannedStart": "2007-12-03",
      "produced": 123.45,
      "product": Product,
      "sorting": "xyz789",
      "state": "COMPLETED",
      "tags": ["xyz789"],
      "controls": [BatchControl],
      "samples": [Sample],
      "stops": [Stop],
      "stopStats": StopStats,
      "stats": Stat,
      "scrap": [Sample],
      "createdBy": User,
      "line": Line,
      "plannedEtc": "2007-12-03",
      "actualEtc": "2007-12-03"
    }
  }
}

createBatchesDocument

Response

Returns a GeneratedExportDocument!

Arguments
Name Description
lineId - ID!
documentInputHeaders - DocumentInputHeaders!
documentInputs - DocumentInputBatches!

Example

Query
mutation CreateBatchesDocument(
  $lineId: ID!,
  $documentInputHeaders: DocumentInputHeaders!,
  $documentInputs: DocumentInputBatches!
) {
  createBatchesDocument(
    lineId: $lineId,
    documentInputHeaders: $documentInputHeaders,
    documentInputs: $documentInputs
  ) {
    url
    name
    description
    generatedAt
  }
}
Variables
{
  "lineId": 4,
  "documentInputHeaders": DocumentInputHeaders,
  "documentInputs": DocumentInputBatches
}
Response
{
  "data": {
    "createBatchesDocument": {
      "url": "abc123",
      "name": "xyz789",
      "description": "xyz789",
      "generatedAt": "2007-12-03"
    }
  }
}

createControlReceipt

Response

Returns a ControlReceipt!

Arguments
Name Description
userPoolId - ID
name - String!
description - String
entries - [ControlReceiptEntryInput!]!

Example

Query
mutation CreateControlReceipt(
  $userPoolId: ID,
  $name: String!,
  $description: String,
  $entries: [ControlReceiptEntryInput!]!
) {
  createControlReceipt(
    userPoolId: $userPoolId,
    name: $name,
    description: $description,
    entries: $entries
  ) {
    controlReceiptId
    userPoolId
    name
    description
    entries {
      entryId
      title
      trigger {
        ...ControlTriggerFragment
      }
      followUp {
        ...FollowUpSettingsFragment
      }
      initialsSettings
      fields {
        ...ControlReceiptEntryFieldFragment
      }
    }
    deleted
    attachedProducts {
      productId
      name
      itemNumber
      validatedLineSpeed
      expectedAverageSpeed
      comment
      lineId
      dataMultiplier
      packaging {
        ...PackagingFragment
      }
      overwrittenByBatch
      parameters {
        ...ParameterFragment
      }
      attachedControlReceipts {
        ...ControlReceiptFragment
      }
    }
  }
}
Variables
{
  "userPoolId": 4,
  "name": "xyz789",
  "description": "abc123",
  "entries": [ControlReceiptEntryInput]
}
Response
{
  "data": {
    "createControlReceipt": {
      "controlReceiptId": "4",
      "userPoolId": "4",
      "name": "abc123",
      "description": "xyz789",
      "entries": [ControlReceiptEntry],
      "deleted": true,
      "attachedProducts": [Product]
    }
  }
}

createCustomForm

Internal use only
Response

Returns a CustomForm!

Arguments
Name Description
input - CustomFormInput!

Example

Query
mutation CreateCustomForm($input: CustomFormInput!) {
  createCustomForm(input: $input) {
    id
    title
    description
    translations {
      title
      description
      languageCode
    }
    fields {
      id
      name
      description
      translations {
        ...CustomFormFieldTranslationFragment
      }
      fieldOptions {
        ...CustomFormFieldOptionsFragment
      }
    }
    requireInitials
    version
    createdAt
    deletedAt
  }
}
Variables
{"input": CustomFormInput}
Response
{
  "data": {
    "createCustomForm": {
      "id": CustomFormId,
      "title": "xyz789",
      "description": "xyz789",
      "translations": [CustomFormTranslation],
      "fields": [CustomFormField],
      "requireInitials": true,
      "version": 123,
      "createdAt": "2007-12-03T10:15:30Z",
      "deletedAt": "2007-12-03T10:15:30Z"
    }
  }
}

createCustomizableReport

Internal use only
Description

Create a new customizable report

Response

Returns a CustomizableReport!

Arguments
Name Description
input - CreateCustomizableReportInput!

Example

Query
mutation CreateCustomizableReport($input: CreateCustomizableReportInput!) {
  createCustomizableReport(input: $input) {
    id
    title
    widgets {
      id
      type
      title
      parameters {
        ...WidgetParametersFragment
      }
      customConfig {
        ... on KpiWidgetCustomConfig {
          ...KpiWidgetCustomConfigFragment
        }
        ... on GaugeWidgetCustomConfig {
          ...GaugeWidgetCustomConfigFragment
        }
        ... on BarWidgetCustomConfig {
          ...BarWidgetCustomConfigFragment
        }
      }
    }
    widgetLayouts {
      widgetId
      rowIndex
      orderInRow
    }
    version
    currentUserAccessType
    createdBy
    createdAt
    updatedAt
  }
}
Variables
{"input": CreateCustomizableReportInput}
Response
{
  "data": {
    "createCustomizableReport": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "title": "xyz789",
      "widgets": [Widget],
      "widgetLayouts": [WidgetLayout],
      "version": 987,
      "currentUserAccessType": "VIEW",
      "createdBy": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

createDevice

Description

Creates a new device.

Response

Returns a CreatedDevice!

Arguments
Name Description
input - CreateDeviceInput!

Example

Query
mutation CreateDevice($input: CreateDeviceInput!) {
  createDevice(input: $input) {
    url
    device {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
  }
}
Variables
{"input": CreateDeviceInput}
Response
{
  "data": {
    "createDevice": {
      "url": "xyz789",
      "device": Device
    }
  }
}

createExportStopsDocument

Response

Returns a GeneratedExportDocument!

Arguments
Name Description
peripheralId - ID!
documentInputHeaders - DocumentInputHeaders!

Example

Query
mutation CreateExportStopsDocument(
  $peripheralId: ID!,
  $documentInputHeaders: DocumentInputHeaders!
) {
  createExportStopsDocument(
    peripheralId: $peripheralId,
    documentInputHeaders: $documentInputHeaders
  ) {
    url
    name
    description
    generatedAt
  }
}
Variables
{
  "peripheralId": "4",
  "documentInputHeaders": DocumentInputHeaders
}
Response
{
  "data": {
    "createExportStopsDocument": {
      "url": "abc123",
      "name": "xyz789",
      "description": "abc123",
      "generatedAt": "2007-12-03"
    }
  }
}

createGroup

Response

Returns a Group

Arguments
Name Description
companyId - ID
attributes - GroupAttributes!

Example

Query
mutation CreateGroup(
  $companyId: ID,
  $attributes: GroupAttributes!
) {
  createGroup(
    companyId: $companyId,
    attributes: $attributes
  ) {
    id
    defaultGroup
    externalIds
    peripheralIds
    lineIds
    owner {
      id
      name
      groups {
        ...GroupFragment
      }
      roles {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      group {
        ...GroupFragment
      }
      appClients {
        ...AppClientFragment
      }
      trialStatus {
        ...TrialStatusFragment
      }
      authConfiguration {
        ...AuthConfigurationFragment
      }
      factoryOverviewSettings {
        ...FactoryOverviewSettingsFragment
      }
    }
    name
    description
    nodeId
    role {
      id
      name
      type
      permissions {
        ...PermissionFragment
      }
    }
    users {
      pagination {
        ...TokenFragment
      }
      items {
        ...UserFragment
      }
    }
    sensors {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
    peripherals {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    peripheralsPaginated {
      items {
        ...PeripheralFragment
      }
      nextOffset
      total
    }
    lines {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    scheduledReports {
      id
      type
      entityId
      entityType
      name
      description
      enabled
      subscribers {
        ...ReportSubscriberFragment
      }
      trigger {
        ...ScheduledReportTriggerFragment
      }
      nextTriggerDate
      timezone
      stopFilter {
        ...ReportStopFilterFragment
      }
    }
  }
}
Variables
{
  "companyId": "4",
  "attributes": GroupAttributes
}
Response
{
  "data": {
    "createGroup": {
      "id": 4,
      "defaultGroup": true,
      "externalIds": ["abc123"],
      "peripheralIds": ["4"],
      "lineIds": ["4"],
      "owner": Company,
      "name": "xyz789",
      "description": "xyz789",
      "nodeId": 4,
      "role": Role,
      "users": UserList,
      "sensors": [Sensor],
      "peripherals": [Peripheral],
      "peripheralsPaginated": PeripheralsPaginated,
      "lines": [Line],
      "scheduledReports": [ScheduledReport]
    }
  }
}

createGroupOEEDocument

Response

Returns a GeneratedExportDocument!

Arguments
Name Description
groupId - ID!
documentInputHeaders - DocumentInputHeaders!
documentInputs - DocumentInputLinesGroupOEE!

Example

Query
mutation CreateGroupOEEDocument(
  $groupId: ID!,
  $documentInputHeaders: DocumentInputHeaders!,
  $documentInputs: DocumentInputLinesGroupOEE!
) {
  createGroupOEEDocument(
    groupId: $groupId,
    documentInputHeaders: $documentInputHeaders,
    documentInputs: $documentInputs
  ) {
    url
    name
    description
    generatedAt
  }
}
Variables
{
  "groupId": "4",
  "documentInputHeaders": DocumentInputHeaders,
  "documentInputs": DocumentInputLinesGroupOEE
}
Response
{
  "data": {
    "createGroupOEEDocument": {
      "url": "abc123",
      "name": "abc123",
      "description": "abc123",
      "generatedAt": "2007-12-03"
    }
  }
}

createHierarchyGroup

Use createGroup instead.
Response

Returns a Group

Arguments
Name Description
roleId - ID!
nodeId - ID!

Example

Query
mutation CreateHierarchyGroup(
  $roleId: ID!,
  $nodeId: ID!
) {
  createHierarchyGroup(
    roleId: $roleId,
    nodeId: $nodeId
  ) {
    id
    defaultGroup
    externalIds
    peripheralIds
    lineIds
    owner {
      id
      name
      groups {
        ...GroupFragment
      }
      roles {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      group {
        ...GroupFragment
      }
      appClients {
        ...AppClientFragment
      }
      trialStatus {
        ...TrialStatusFragment
      }
      authConfiguration {
        ...AuthConfigurationFragment
      }
      factoryOverviewSettings {
        ...FactoryOverviewSettingsFragment
      }
    }
    name
    description
    nodeId
    role {
      id
      name
      type
      permissions {
        ...PermissionFragment
      }
    }
    users {
      pagination {
        ...TokenFragment
      }
      items {
        ...UserFragment
      }
    }
    sensors {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
    peripherals {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    peripheralsPaginated {
      items {
        ...PeripheralFragment
      }
      nextOffset
      total
    }
    lines {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    scheduledReports {
      id
      type
      entityId
      entityType
      name
      description
      enabled
      subscribers {
        ...ReportSubscriberFragment
      }
      trigger {
        ...ScheduledReportTriggerFragment
      }
      nextTriggerDate
      timezone
      stopFilter {
        ...ReportStopFilterFragment
      }
    }
  }
}
Variables
{"roleId": 4, "nodeId": 4}
Response
{
  "data": {
    "createHierarchyGroup": {
      "id": "4",
      "defaultGroup": true,
      "externalIds": ["xyz789"],
      "peripheralIds": [4],
      "lineIds": [4],
      "owner": Company,
      "name": "abc123",
      "description": "xyz789",
      "nodeId": "4",
      "role": Role,
      "users": UserList,
      "sensors": [Sensor],
      "peripherals": [Peripheral],
      "peripheralsPaginated": PeripheralsPaginated,
      "lines": [Line],
      "scheduledReports": [ScheduledReport]
    }
  }
}

createHierarchyNode

Response

Returns a HierarchyNode!

Arguments
Name Description
input - CreateHierarchyNodeInput!

Example

Query
mutation CreateHierarchyNode($input: CreateHierarchyNodeInput!) {
  createHierarchyNode(input: $input) {
    id
    version
    meta {
      ... on LineNodeMeta {
        ...LineNodeMetaFragment
      }
      ... on DirectoryNodeMeta {
        ...DirectoryNodeMetaFragment
      }
      ... on PeripheralNodeMeta {
        ...PeripheralNodeMetaFragment
      }
      ... on AssetNodeMeta {
        ...AssetNodeMetaFragment
      }
    }
    type
    descendants {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...HierarchyNodeEdgeFragment
      }
      nodes {
        ...HierarchyNodeFragment
      }
    }
    ancestors {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
    childrenCount
  }
}
Variables
{"input": CreateHierarchyNodeInput}
Response
{
  "data": {
    "createHierarchyNode": {
      "id": NodeId,
      "version": 123,
      "meta": LineNodeMeta,
      "type": "LINE",
      "descendants": HierarchyNodeConnection,
      "ancestors": [HierarchyNode],
      "childrenCount": 987
    }
  }
}

createIOTJob

Response

Returns a CreateIOTJobResponse!

Arguments
Name Description
jobType - JobType!
deviceHardwareId - String!

Example

Query
mutation CreateIOTJob(
  $jobType: JobType!,
  $deviceHardwareId: String!
) {
  createIOTJob(
    jobType: $jobType,
    deviceHardwareId: $deviceHardwareId
  ) {
    otaUpdateArn
    otaUpdateId
    otaUpdateStatus
    jobId
    jobArn
    description
  }
}
Variables
{
  "jobType": "OTA",
  "deviceHardwareId": "abc123"
}
Response
{
  "data": {
    "createIOTJob": {
      "otaUpdateArn": "xyz789",
      "otaUpdateId": "xyz789",
      "otaUpdateStatus": "abc123",
      "jobId": "xyz789",
      "jobArn": "xyz789",
      "description": "xyz789"
    }
  }
}

createLearningActivity

Internal use only
Response

Returns a LearningActivity!

Arguments
Name Description
input - CreateLearningActivityInput!

Example

Query
mutation CreateLearningActivity($input: CreateLearningActivityInput!) {
  createLearningActivity(input: $input) {
    id
    version
    nodeId
    title
    description
    content
    startEndDatesRequired
    validityInMonths
    createdAt
    updatedAt
    createdBySub
    updatedBySub
    node {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    updatedBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
  }
}
Variables
{"input": CreateLearningActivityInput}
Response
{
  "data": {
    "createLearningActivity": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "version": 987,
      "nodeId": "xyz789",
      "title": "abc123",
      "description": "xyz789",
      "content": "xyz789",
      "startEndDatesRequired": false,
      "validityInMonths": 987,
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z",
      "createdBySub": "xyz789",
      "updatedBySub": "xyz789",
      "node": HierarchyNode,
      "createdBy": User,
      "updatedBy": User
    }
  }
}

createLearningRole

Internal use only
Response

Returns a LearningRole!

Arguments
Name Description
input - CreateLearningRoleInput!

Example

Query
mutation CreateLearningRole($input: CreateLearningRoleInput!) {
  createLearningRole(input: $input) {
    id
    title
    description
    nodeId
    createdAt
    updatedAt
    createdBySub
    updatedBySub
    skills {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...LearningRoleSkillsEdgeFragment
      }
      nodes {
        ...LearningRoleSkillFragment
      }
    }
    node {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    updatedBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
  }
}
Variables
{"input": CreateLearningRoleInput}
Response
{
  "data": {
    "createLearningRole": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "title": "xyz789",
      "description": "abc123",
      "nodeId": "4",
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z",
      "createdBySub": "abc123",
      "updatedBySub": "xyz789",
      "skills": LearningRoleSkillsConnection,
      "node": HierarchyNode,
      "createdBy": User,
      "updatedBy": User
    }
  }
}

createLineWithTopology

Response

Returns a Line!

Arguments
Name Description
groupId - ID
name - String!
description - String
nodes - [LineNodeInput!]!
edges - [LineEdgeInput!]!
parent - LineParentInput

Example

Query
mutation CreateLineWithTopology(
  $groupId: ID,
  $name: String!,
  $description: String,
  $nodes: [LineNodeInput!]!,
  $edges: [LineEdgeInput!]!,
  $parent: LineParentInput
) {
  createLineWithTopology(
    groupId: $groupId,
    name: $name,
    description: $description,
    nodes: $nodes,
    edges: $edges,
    parent: $parent
  ) {
    id
    languageCode
    owner
    location {
      timeZone
    }
    name
    description
    mainPeripheralId
    nodes {
      id
      type
      peripheralId
      position
      sensor {
        ...SensorFragment
      }
    }
    edges {
      from
      to
    }
    settings {
      oee {
        ...LineOEESettingsFragment
      }
      batch {
        ...LineBatchSettingsFragment
      }
    }
    goldenBatch {
      batchId
      lineId
      productId
      oee1
      state
      acceptedAt
    }
    bestPendingGoldenBatch {
      batchId
      lineId
      productId
      oee1
      state
      acceptedAt
    }
    time {
      configs {
        ...SensorConfigFragment
      }
      alarmLogs {
        ...AlarmLogsFragment
      }
      batches {
        ...BatchListFragment
      }
      dataOverrides {
        ...DataOverrideFragment
      }
      pendingControls {
        ...BatchControlListFragment
      }
      samples {
        ...SampleFragment
      }
      scrap {
        ...SampleFragment
      }
      shifts {
        ...ShiftInstanceFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
      changeoverStops {
        ...ChangeoverStopFragment
      }
      _id
      timeRange {
        ...TimeRangeFragment
      }
    }
    products {
      nextToken
      items {
        ...ProductFragment
      }
    }
    packagings {
      nextToken
      items {
        ...PackagingFragment
      }
    }
    batches {
      count
      items {
        ...BatchFragment
      }
      nextToken
      pages
    }
    batch {
      actualStart
      actualStop
      amount
      batchId
      batchNumber
      comment
      lineId
      manualScrap
      plannedStart
      produced
      product {
        ...ProductFragment
      }
      sorting
      state
      tags
      controls {
        ...BatchControlFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
      scrap {
        ...SampleFragment
      }
      createdBy {
        ...UserFragment
      }
      line {
        ...LineFragment
      }
      plannedEtc
      actualEtc
    }
    schedule {
      id
      lineId
      validFrom {
        ...ScheduleTimeFragment
      }
      validTo {
        ...ScheduleTimeFragment
      }
      shifts {
        ...ShiftFragment
      }
      weeklyTargets {
        ...TargetsFragment
      }
      configuration {
        ...ScheduleConfigurationFragment
      }
      isExceptionalWeek
      isFallbackSchedule
    }
    mainSensor {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
    scheduledReports {
      id
      type
      entityId
      entityType
      name
      description
      enabled
      subscribers {
        ...ReportSubscriberFragment
      }
      trigger {
        ...ScheduledReportTriggerFragment
      }
      nextTriggerDate
      timezone
      stopFilter {
        ...ReportStopFilterFragment
      }
    }
    andonSchedules {
      id
      name
      lineIds
      shifts {
        ...AndonShiftFragment
      }
      shift {
        ...AndonShiftFragment
      }
      lines {
        ...LineFragment
      }
    }
    nextShift {
      id
      from
      to
      name
      description
      shiftId
      scheduleEntry {
        ...ShiftFragment
      }
      batches {
        ...BatchListFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
    }
    scheduledEnd
    previousShift {
      id
      from
      to
      name
      description
      shiftId
      scheduleEntry {
        ...ShiftFragment
      }
      batches {
        ...BatchListFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
    }
    maintenanceWorkOrders {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...MaintenanceWorkOrderEdgeFragment
      }
      nodes {
        ...MaintenanceWorkOrderFragment
      }
    }
    groups {
      id
      defaultGroup
      externalIds
      peripheralIds
      lineIds
      owner {
        ...CompanyFragment
      }
      name
      description
      nodeId
      role {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      sensors {
        ...SensorFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralsPaginated {
        ...PeripheralsPaginatedFragment
      }
      lines {
        ...LineFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
    }
  }
}
Variables
{
  "groupId": "4",
  "name": "abc123",
  "description": "abc123",
  "nodes": [LineNodeInput],
  "edges": [LineEdgeInput],
  "parent": LineParentInput
}
Response
{
  "data": {
    "createLineWithTopology": {
      "id": "4",
      "languageCode": "abc123",
      "owner": 4,
      "location": Location,
      "name": "xyz789",
      "description": "xyz789",
      "mainPeripheralId": 4,
      "nodes": [LineNode],
      "edges": [LineEdge],
      "settings": LineSettings,
      "goldenBatch": GoldenBatch,
      "bestPendingGoldenBatch": GoldenBatch,
      "time": [LineTimeData],
      "products": ProductList,
      "packagings": PackagingList,
      "batches": BatchList,
      "batch": Batch,
      "schedule": Schedule,
      "mainSensor": Sensor,
      "scheduledReports": [ScheduledReport],
      "andonSchedules": [AndonSchedule],
      "nextShift": ShiftInstance,
      "scheduledEnd": "2007-12-03",
      "previousShift": ShiftInstance,
      "maintenanceWorkOrders": MaintenanceWorkOrderConnection,
      "groups": [Group]
    }
  }
}

createLiveDataDocument

Response

Returns a GeneratedExportDocument!

Arguments
Name Description
peripheralId - ID!
documentInputHeaders - DocumentInputHeaders!
documentInputs - DocumentInputLiveData!

Example

Query
mutation CreateLiveDataDocument(
  $peripheralId: ID!,
  $documentInputHeaders: DocumentInputHeaders!,
  $documentInputs: DocumentInputLiveData!
) {
  createLiveDataDocument(
    peripheralId: $peripheralId,
    documentInputHeaders: $documentInputHeaders,
    documentInputs: $documentInputs
  ) {
    url
    name
    description
    generatedAt
  }
}
Variables
{
  "peripheralId": "4",
  "documentInputHeaders": DocumentInputHeaders,
  "documentInputs": DocumentInputLiveData
}
Response
{
  "data": {
    "createLiveDataDocument": {
      "url": "abc123",
      "name": "abc123",
      "description": "xyz789",
      "generatedAt": "2007-12-03"
    }
  }
}

createLocationOEEDocument

Response

Returns a GeneratedExportDocument!

Arguments
Name Description
locationId - NodeId!
documentInputHeaders - DocumentInputHeaders!
documentInputs - DocumentInputLocationOEE!

Example

Query
mutation CreateLocationOEEDocument(
  $locationId: NodeId!,
  $documentInputHeaders: DocumentInputHeaders!,
  $documentInputs: DocumentInputLocationOEE!
) {
  createLocationOEEDocument(
    locationId: $locationId,
    documentInputHeaders: $documentInputHeaders,
    documentInputs: $documentInputs
  ) {
    url
    name
    description
    generatedAt
  }
}
Variables
{
  "locationId": NodeId,
  "documentInputHeaders": DocumentInputHeaders,
  "documentInputs": DocumentInputLocationOEE
}
Response
{
  "data": {
    "createLocationOEEDocument": {
      "url": "xyz789",
      "name": "xyz789",
      "description": "xyz789",
      "generatedAt": "2007-12-03"
    }
  }
}

createMaintenanceLogDocument

Response

Returns a GeneratedExportDocument!

Arguments
Name Description
documentInputHeaders - DocumentInputHeaders!
documentInputs - DocumentInputMaintenanceLog!

Example

Query
mutation CreateMaintenanceLogDocument(
  $documentInputHeaders: DocumentInputHeaders!,
  $documentInputs: DocumentInputMaintenanceLog!
) {
  createMaintenanceLogDocument(
    documentInputHeaders: $documentInputHeaders,
    documentInputs: $documentInputs
  ) {
    url
    name
    description
    generatedAt
  }
}
Variables
{
  "documentInputHeaders": DocumentInputHeaders,
  "documentInputs": DocumentInputMaintenanceLog
}
Response
{
  "data": {
    "createMaintenanceLogDocument": {
      "url": "abc123",
      "name": "abc123",
      "description": "abc123",
      "generatedAt": "2007-12-03"
    }
  }
}

createMaintenanceLogEntry

Response

Returns a MaintenanceLogEntry!

Arguments
Name Description
input - CreateMaintenanceLogEntryInput!

Example

Query
mutation CreateMaintenanceLogEntry($input: CreateMaintenanceLogEntryInput!) {
  createMaintenanceLogEntry(input: $input) {
    planId
    lineId
    status
    workOrderDueAt
    workOrderOverdueAt
    timestamp
    produced
    startFrom
    initials
    comment
    planSnapshot {
      title
      asset
      tagPartNumber
      instructions
      trackBy {
        ...TrackByOptionsFragment
      }
    }
    customData {
      formId
      formVersion
      values {
        ...CustomFieldValueFragment
      }
      initials
      form {
        ...CustomFormFragment
      }
      schema
    }
    andonCallId
    stopCauseIds
    stopCausePeripheralId
    assetIds
    startOfService
    endOfService
    startOfStop
    endOfStop
    version
    effectiveDuration
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    stopCauses {
      _id
      id
      stopType
      categoryId
      categoryName
      name
      description
      meta {
        ...StopCauseMetaFragment
      }
      order
      requireInitials
      requireComment
      deleted
      languageCode
      legacyStopCauseId
      targetSetup {
        ...TargetSetupFragment
      }
      enableCountermeasure
    }
    assets {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
  }
}
Variables
{"input": CreateMaintenanceLogEntryInput}
Response
{
  "data": {
    "createMaintenanceLogEntry": {
      "planId": MaintenancePlanId,
      "lineId": LineId,
      "status": "COMPLETED",
      "workOrderDueAt": "2007-12-03T10:15:30Z",
      "workOrderOverdueAt": "2007-12-03T10:15:30Z",
      "timestamp": "2007-12-03T10:15:30Z",
      "produced": 987,
      "startFrom": "2007-12-03T10:15:30Z",
      "initials": "xyz789",
      "comment": "xyz789",
      "planSnapshot": MaintenancePlanSnapshot,
      "customData": CustomFormData,
      "andonCallId": "xyz789",
      "stopCauseIds": ["xyz789"],
      "stopCausePeripheralId": PeripheralId,
      "assetIds": [NodeId],
      "startOfService": "2007-12-03T10:15:30Z",
      "endOfService": "2007-12-03T10:15:30Z",
      "startOfStop": "2007-12-03T10:15:30Z",
      "endOfStop": "2007-12-03T10:15:30Z",
      "version": 123,
      "effectiveDuration": 123,
      "line": Line,
      "stopCauses": [StopCause],
      "assets": [HierarchyNode]
    }
  }
}

createMaintenancePlan

Response

Returns a MaintenancePlan!

Arguments
Name Description
input - CreateMaintenancePlanInput!

Example

Query
mutation CreateMaintenancePlan($input: CreateMaintenancePlanInput!) {
  createMaintenancePlan(input: $input) {
    planId
    lineId
    title
    asset
    tagPartNumber
    instructions
    startFrom
    trackBy {
      time {
        ...TrackByTimeFragment
      }
      production {
        ...TrackByProductionFragment
      }
      calendar {
        ...TrackByCalendarFragment
      }
    }
    repeat
    version
    role {
      id
      name
    }
    log {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...MaintenanceLogEntryEdgeFragment
      }
      nodes {
        ...MaintenanceLogEntryFragment
      }
    }
    nextWorkOrder {
      plan {
        ...MaintenancePlanFragment
      }
      dueAt
      overdueAt
      produced
      latestMaintenance {
        ...MaintenanceLogEntryFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      line {
        ...LineFragment
      }
    }
    peripheral {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{"input": CreateMaintenancePlanInput}
Response
{
  "data": {
    "createMaintenancePlan": {
      "planId": MaintenancePlanId,
      "lineId": LineId,
      "title": "abc123",
      "asset": "xyz789",
      "tagPartNumber": "xyz789",
      "instructions": "xyz789",
      "startFrom": "2007-12-03T10:15:30Z",
      "trackBy": TrackByOptions,
      "repeat": "YES",
      "version": 123,
      "role": MaintenanceRole,
      "log": MaintenanceLogEntryConnection,
      "nextWorkOrder": MaintenanceWorkOrder,
      "peripheral": Peripheral,
      "line": Line
    }
  }
}

createMediaPresignedDownloadUrl

Internal use only
Description

Create a presigned URL used to download previously uploaded media files.

Expires in 1 minute.

Response

Returns a MediaPresignedDownloadUrl!

Arguments
Name Description
fileName - String!

Example

Query
mutation CreateMediaPresignedDownloadUrl($fileName: String!) {
  createMediaPresignedDownloadUrl(fileName: $fileName) {
    downloadUrl
  }
}
Variables
{"fileName": "xyz789"}
Response
{
  "data": {
    "createMediaPresignedDownloadUrl": {
      "downloadUrl": "xyz789"
    }
  }
}

createMediaPresignedUploadUrl

Internal use only
Description

Create a presigned URL used to upload media files.

Expires in 5 minutes.

Response

Returns a MediaPresignedUploadUrl!

Arguments
Name Description
fileName - String!

Example

Query
mutation CreateMediaPresignedUploadUrl($fileName: String!) {
  createMediaPresignedUploadUrl(fileName: $fileName) {
    fileName
    uploadUrl
  }
}
Variables
{"fileName": "xyz789"}
Response
{
  "data": {
    "createMediaPresignedUploadUrl": {
      "fileName": "xyz789",
      "uploadUrl": "xyz789"
    }
  }
}

createOEEDocument

Response

Returns a GeneratedExportDocument!

Arguments
Name Description
lineId - ID!
documentInputHeaders - DocumentInputHeaders!
documentInputs - DocumentInputLineOEE!

Example

Query
mutation CreateOEEDocument(
  $lineId: ID!,
  $documentInputHeaders: DocumentInputHeaders!,
  $documentInputs: DocumentInputLineOEE!
) {
  createOEEDocument(
    lineId: $lineId,
    documentInputHeaders: $documentInputHeaders,
    documentInputs: $documentInputs
  ) {
    url
    name
    description
    generatedAt
  }
}
Variables
{
  "lineId": "4",
  "documentInputHeaders": DocumentInputHeaders,
  "documentInputs": DocumentInputLineOEE
}
Response
{
  "data": {
    "createOEEDocument": {
      "url": "abc123",
      "name": "xyz789",
      "description": "xyz789",
      "generatedAt": "2007-12-03"
    }
  }
}

createPackaging

Response

Returns a Packaging!

Arguments
Name Description
lineId - ID!
name - String!
packagingNumber - String!
unit - String!
comment - String

Example

Query
mutation CreatePackaging(
  $lineId: ID!,
  $name: String!,
  $packagingNumber: String!,
  $unit: String!,
  $comment: String
) {
  createPackaging(
    lineId: $lineId,
    name: $name,
    packagingNumber: $packagingNumber,
    unit: $unit,
    comment: $comment
  ) {
    packagingId
    packagingNumber
    lineId
    name
    unit
    comment
  }
}
Variables
{
  "lineId": 4,
  "name": "abc123",
  "packagingNumber": "abc123",
  "unit": "xyz789",
  "comment": "abc123"
}
Response
{
  "data": {
    "createPackaging": {
      "packagingId": "4",
      "packagingNumber": "xyz789",
      "lineId": "xyz789",
      "name": "abc123",
      "unit": "xyz789",
      "comment": "abc123"
    }
  }
}

createPageReport

Response

Returns a GeneratedPageReport!

Arguments
Name Description
pageURL - String!
userName - String!

Example

Query
mutation CreatePageReport(
  $pageURL: String!,
  $userName: String!
) {
  createPageReport(
    pageURL: $pageURL,
    userName: $userName
  ) {
    url
    name
    generatedAt
  }
}
Variables
{
  "pageURL": "xyz789",
  "userName": "xyz789"
}
Response
{
  "data": {
    "createPageReport": {
      "url": "abc123",
      "name": "xyz789",
      "generatedAt": "2007-12-03"
    }
  }
}

createPeripheral

Response

Returns a Peripheral

Arguments
Name Description
softwareId - ID
hardwareId - ID The ID must be a valid HardwareDeviceId.
hardwareIndex - String
input - CreatePeripheralInput!
initialGroups - [ID!]
parent - PeripheralParentInput

Example

Query
mutation CreatePeripheral(
  $softwareId: ID,
  $hardwareId: ID,
  $hardwareIndex: String,
  $input: CreatePeripheralInput!,
  $initialGroups: [ID!],
  $parent: PeripheralParentInput
) {
  createPeripheral(
    softwareId: $softwareId,
    hardwareId: $hardwareId,
    hardwareIndex: $hardwareIndex,
    input: $input,
    initialGroups: $initialGroups,
    parent: $parent
  ) {
    _id
    id
    name
    index
    peripheralId
    owner
    hardwareId
    peripheralType
    description
    offlineStatus {
      expiration
      lastReceived
    }
    device {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
    hardwareDevice {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
  }
}
Variables
{
  "softwareId": "4",
  "hardwareId": "4",
  "hardwareIndex": "xyz789",
  "input": CreatePeripheralInput,
  "initialGroups": [4],
  "parent": PeripheralParentInput
}
Response
{
  "data": {
    "createPeripheral": {
      "_id": "4",
      "id": "4",
      "name": "xyz789",
      "index": 4,
      "peripheralId": "4",
      "owner": 4,
      "hardwareId": "4",
      "peripheralType": "SENSOR",
      "description": "xyz789",
      "offlineStatus": OfflineStatus,
      "device": Device,
      "hardwareDevice": Device
    }
  }
}

createPreSignedURL

Description

Create a pre-signed URL for uploading documents for import.

Response

Returns an PreSignedURL!

Arguments
Name Description
peripheralId - ID!

Example

Query
mutation CreatePreSignedURL($peripheralId: ID!) {
  createPreSignedURL(peripheralId: $peripheralId) {
    url
    objectKey
  }
}
Variables
{"peripheralId": "4"}
Response
{
  "data": {
    "createPreSignedURL": {
      "url": "xyz789",
      "objectKey": "xyz789"
    }
  }
}

createProduct

Response

Returns a Product!

Arguments
Name Description
lineId - ID!
itemNumber - String!
name - String!
validatedLineSpeed - Float!
expectedAverageSpeed - Float!
comment - String
dataMultiplier - Float!
packagingId - ID!
parameters - [InputParameter!]

Example

Query
mutation CreateProduct(
  $lineId: ID!,
  $itemNumber: String!,
  $name: String!,
  $validatedLineSpeed: Float!,
  $expectedAverageSpeed: Float!,
  $comment: String,
  $dataMultiplier: Float!,
  $packagingId: ID!,
  $parameters: [InputParameter!]
) {
  createProduct(
    lineId: $lineId,
    itemNumber: $itemNumber,
    name: $name,
    validatedLineSpeed: $validatedLineSpeed,
    expectedAverageSpeed: $expectedAverageSpeed,
    comment: $comment,
    dataMultiplier: $dataMultiplier,
    packagingId: $packagingId,
    parameters: $parameters
  ) {
    productId
    name
    itemNumber
    validatedLineSpeed
    expectedAverageSpeed
    comment
    lineId
    dataMultiplier
    packaging {
      packagingId
      packagingNumber
      lineId
      name
      unit
      comment
    }
    overwrittenByBatch
    parameters {
      key
      value
      alarm {
        ...AlarmFragment
      }
      setpoint {
        ...SetPointFragment
      }
    }
    attachedControlReceipts {
      controlReceiptId
      userPoolId
      name
      description
      entries {
        ...ControlReceiptEntryFragment
      }
      deleted
      attachedProducts {
        ...ProductFragment
      }
    }
  }
}
Variables
{
  "lineId": "4",
  "itemNumber": "abc123",
  "name": "abc123",
  "validatedLineSpeed": 123.45,
  "expectedAverageSpeed": 987.65,
  "comment": "abc123",
  "dataMultiplier": 123.45,
  "packagingId": 4,
  "parameters": [InputParameter]
}
Response
{
  "data": {
    "createProduct": {
      "productId": "4",
      "name": "xyz789",
      "itemNumber": "xyz789",
      "validatedLineSpeed": 987.65,
      "expectedAverageSpeed": 987.65,
      "comment": "abc123",
      "lineId": 4,
      "dataMultiplier": 123.45,
      "packaging": Packaging,
      "overwrittenByBatch": true,
      "parameters": [Parameter],
      "attachedControlReceipts": [ControlReceipt]
    }
  }
}

createRole

Response

Returns a Role

Arguments
Name Description
companyId - ID
attributes - RoleAttributes!

Example

Query
mutation CreateRole(
  $companyId: ID,
  $attributes: RoleAttributes!
) {
  createRole(
    companyId: $companyId,
    attributes: $attributes
  ) {
    id
    name
    type
    permissions {
      key
      type
      description
    }
  }
}
Variables
{
  "companyId": "4",
  "attributes": RoleAttributes
}
Response
{
  "data": {
    "createRole": {
      "id": 4,
      "name": "xyz789",
      "type": "SUPER",
      "permissions": [Permission]
    }
  }
}

createScheduledReportForGroup

Description

Create automated performance report for a group of production assets. Aggregates KPIs across multiple lines for plant-level reporting.

Response

Returns a ScheduledReport!

Arguments
Name Description
groupId - ID!
type - ReportType!
name - String!
description - String!
trigger - TriggerType!
triggerParameters - String
subscribers - [ReportSubscriberInput!]!
enabled - Boolean!
timezone - String!
stopFilter - StopFilterInput

Example

Query
mutation CreateScheduledReportForGroup(
  $groupId: ID!,
  $type: ReportType!,
  $name: String!,
  $description: String!,
  $trigger: TriggerType!,
  $triggerParameters: String,
  $subscribers: [ReportSubscriberInput!]!,
  $enabled: Boolean!,
  $timezone: String!,
  $stopFilter: StopFilterInput
) {
  createScheduledReportForGroup(
    groupId: $groupId,
    type: $type,
    name: $name,
    description: $description,
    trigger: $trigger,
    triggerParameters: $triggerParameters,
    subscribers: $subscribers,
    enabled: $enabled,
    timezone: $timezone,
    stopFilter: $stopFilter
  ) {
    id
    type
    entityId
    entityType
    name
    description
    enabled
    subscribers {
      type
      value
      languageCode
      disabled
    }
    trigger {
      type
      parameters
    }
    nextTriggerDate
    timezone
    stopFilter {
      stopTypes
      stopCauseIds
      includeMicroStops
    }
  }
}
Variables
{
  "groupId": "4",
  "type": "STOPS_LAST_6_DAYS",
  "name": "xyz789",
  "description": "xyz789",
  "trigger": "CRON",
  "triggerParameters": "abc123",
  "subscribers": [ReportSubscriberInput],
  "enabled": true,
  "timezone": "xyz789",
  "stopFilter": StopFilterInput
}
Response
{
  "data": {
    "createScheduledReportForGroup": {
      "id": 4,
      "type": "STOPS_LAST_6_DAYS",
      "entityId": 4,
      "entityType": "LINE",
      "name": "xyz789",
      "description": "abc123",
      "enabled": true,
      "subscribers": [ReportSubscriber],
      "trigger": ScheduledReportTrigger,
      "nextTriggerDate": "2007-12-03",
      "timezone": "xyz789",
      "stopFilter": ReportStopFilter
    }
  }
}

createScheduledReportForLine

Description

Create automated performance report for a specific production line. Generates regular KPI reports, OEE summaries, and production statistics.

Response

Returns a ScheduledReport!

Arguments
Name Description
lineId - ID!
type - ReportType!
name - String!
description - String!
trigger - TriggerType!
triggerParameters - String
subscribers - [ReportSubscriberInput!]!
enabled - Boolean!
timezone - String!
stopFilter - StopFilterInput

Example

Query
mutation CreateScheduledReportForLine(
  $lineId: ID!,
  $type: ReportType!,
  $name: String!,
  $description: String!,
  $trigger: TriggerType!,
  $triggerParameters: String,
  $subscribers: [ReportSubscriberInput!]!,
  $enabled: Boolean!,
  $timezone: String!,
  $stopFilter: StopFilterInput
) {
  createScheduledReportForLine(
    lineId: $lineId,
    type: $type,
    name: $name,
    description: $description,
    trigger: $trigger,
    triggerParameters: $triggerParameters,
    subscribers: $subscribers,
    enabled: $enabled,
    timezone: $timezone,
    stopFilter: $stopFilter
  ) {
    id
    type
    entityId
    entityType
    name
    description
    enabled
    subscribers {
      type
      value
      languageCode
      disabled
    }
    trigger {
      type
      parameters
    }
    nextTriggerDate
    timezone
    stopFilter {
      stopTypes
      stopCauseIds
      includeMicroStops
    }
  }
}
Variables
{
  "lineId": 4,
  "type": "STOPS_LAST_6_DAYS",
  "name": "abc123",
  "description": "abc123",
  "trigger": "CRON",
  "triggerParameters": "xyz789",
  "subscribers": [ReportSubscriberInput],
  "enabled": false,
  "timezone": "abc123",
  "stopFilter": StopFilterInput
}
Response
{
  "data": {
    "createScheduledReportForLine": {
      "id": "4",
      "type": "STOPS_LAST_6_DAYS",
      "entityId": "4",
      "entityType": "LINE",
      "name": "xyz789",
      "description": "abc123",
      "enabled": true,
      "subscribers": [ReportSubscriber],
      "trigger": ScheduledReportTrigger,
      "nextTriggerDate": "2007-12-03",
      "timezone": "xyz789",
      "stopFilter": ReportStopFilter
    }
  }
}

createScheduledReportForSensor

Description

Create automated performance report for a specific sensor or equipment. Focuses on equipment-specific metrics and performance indicators.

Response

Returns a ScheduledReport!

Arguments
Name Description
peripheralId - ID!
type - ReportType!
name - String!
description - String!
trigger - TriggerType!
triggerParameters - String
subscribers - [ReportSubscriberInput!]!
enabled - Boolean!
timezone - String!
stopFilter - StopFilterInput

Example

Query
mutation CreateScheduledReportForSensor(
  $peripheralId: ID!,
  $type: ReportType!,
  $name: String!,
  $description: String!,
  $trigger: TriggerType!,
  $triggerParameters: String,
  $subscribers: [ReportSubscriberInput!]!,
  $enabled: Boolean!,
  $timezone: String!,
  $stopFilter: StopFilterInput
) {
  createScheduledReportForSensor(
    peripheralId: $peripheralId,
    type: $type,
    name: $name,
    description: $description,
    trigger: $trigger,
    triggerParameters: $triggerParameters,
    subscribers: $subscribers,
    enabled: $enabled,
    timezone: $timezone,
    stopFilter: $stopFilter
  ) {
    id
    type
    entityId
    entityType
    name
    description
    enabled
    subscribers {
      type
      value
      languageCode
      disabled
    }
    trigger {
      type
      parameters
    }
    nextTriggerDate
    timezone
    stopFilter {
      stopTypes
      stopCauseIds
      includeMicroStops
    }
  }
}
Variables
{
  "peripheralId": "4",
  "type": "STOPS_LAST_6_DAYS",
  "name": "xyz789",
  "description": "xyz789",
  "trigger": "CRON",
  "triggerParameters": "xyz789",
  "subscribers": [ReportSubscriberInput],
  "enabled": true,
  "timezone": "xyz789",
  "stopFilter": StopFilterInput
}
Response
{
  "data": {
    "createScheduledReportForSensor": {
      "id": "4",
      "type": "STOPS_LAST_6_DAYS",
      "entityId": 4,
      "entityType": "LINE",
      "name": "abc123",
      "description": "abc123",
      "enabled": false,
      "subscribers": [ReportSubscriber],
      "trigger": ScheduledReportTrigger,
      "nextTriggerDate": "2007-12-03",
      "timezone": "xyz789",
      "stopFilter": ReportStopFilter
    }
  }
}

createSkill

Internal use only
Response

Returns a Skill!

Arguments
Name Description
input - CreateSkillInput!

Example

Query
mutation CreateSkill($input: CreateSkillInput!) {
  createSkill(input: $input) {
    id
    title
    description
    nodeId
    createdAt
    updatedAt
    createdBySub
    updatedBySub
    learningActivities {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...SkillLearningActivitiesEdgeFragment
      }
      nodes {
        ...SkillLearningActivityFragment
      }
    }
    node {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    updatedBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
  }
}
Variables
{"input": CreateSkillInput}
Response
{
  "data": {
    "createSkill": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "title": "xyz789",
      "description": "abc123",
      "nodeId": 4,
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z",
      "createdBySub": "abc123",
      "updatedBySub": "xyz789",
      "learningActivities": SkillLearningActivitiesConnection,
      "node": HierarchyNode,
      "createdBy": User,
      "updatedBy": User
    }
  }
}

createStopCause

Response

Returns [StopCauseCategory!]

Arguments
Name Description
deviceOwner - ID
peripheralId - ID
name - String
description - String
meta - [StopCauseMetaInput!]
requireInitials - Boolean
requireComment - Boolean
stopType - StopType!
stopCauseCategoryId - ID!
legacyStopCauseId - ID
targetSetup - TargetSetupInput
enableCountermeasure - Boolean

Example

Query
mutation CreateStopCause(
  $deviceOwner: ID,
  $peripheralId: ID,
  $name: String,
  $description: String,
  $meta: [StopCauseMetaInput!],
  $requireInitials: Boolean,
  $requireComment: Boolean,
  $stopType: StopType!,
  $stopCauseCategoryId: ID!,
  $legacyStopCauseId: ID,
  $targetSetup: TargetSetupInput,
  $enableCountermeasure: Boolean
) {
  createStopCause(
    deviceOwner: $deviceOwner,
    peripheralId: $peripheralId,
    name: $name,
    description: $description,
    meta: $meta,
    requireInitials: $requireInitials,
    requireComment: $requireComment,
    stopType: $stopType,
    stopCauseCategoryId: $stopCauseCategoryId,
    legacyStopCauseId: $legacyStopCauseId,
    targetSetup: $targetSetup,
    enableCountermeasure: $enableCountermeasure
  ) {
    _id
    id
    ownerType
    order
    name
    meta {
      name
      languageCode
    }
    languageCode
    deleted
    stopCauses {
      _id
      id
      stopType
      categoryId
      categoryName
      name
      description
      meta {
        ...StopCauseMetaFragment
      }
      order
      requireInitials
      requireComment
      deleted
      languageCode
      legacyStopCauseId
      targetSetup {
        ...TargetSetupFragment
      }
      enableCountermeasure
    }
    legacyCategoryId
  }
}
Variables
{
  "deviceOwner": 4,
  "peripheralId": "4",
  "name": "xyz789",
  "description": "abc123",
  "meta": [StopCauseMetaInput],
  "requireInitials": false,
  "requireComment": false,
  "stopType": "NO_ACT",
  "stopCauseCategoryId": "4",
  "legacyStopCauseId": "4",
  "targetSetup": TargetSetupInput,
  "enableCountermeasure": false
}
Response
{
  "data": {
    "createStopCause": [
      {
        "_id": "4",
        "id": 4,
        "ownerType": "SENSOR",
        "order": 987,
        "name": "abc123",
        "meta": [StopCauseCategoryMeta],
        "languageCode": "abc123",
        "deleted": false,
        "stopCauses": [StopCause],
        "legacyCategoryId": 4
      }
    ]
  }
}

createStopCauseCategory

Response

Returns [StopCauseCategory!]

Arguments
Name Description
peripheralId - ID
name - String!

Example

Query
mutation CreateStopCauseCategory(
  $peripheralId: ID,
  $name: String!
) {
  createStopCauseCategory(
    peripheralId: $peripheralId,
    name: $name
  ) {
    _id
    id
    ownerType
    order
    name
    meta {
      name
      languageCode
    }
    languageCode
    deleted
    stopCauses {
      _id
      id
      stopType
      categoryId
      categoryName
      name
      description
      meta {
        ...StopCauseMetaFragment
      }
      order
      requireInitials
      requireComment
      deleted
      languageCode
      legacyStopCauseId
      targetSetup {
        ...TargetSetupFragment
      }
      enableCountermeasure
    }
    legacyCategoryId
  }
}
Variables
{"peripheralId": 4, "name": "abc123"}
Response
{
  "data": {
    "createStopCauseCategory": [
      {
        "_id": "4",
        "id": "4",
        "ownerType": "SENSOR",
        "order": 123,
        "name": "xyz789",
        "meta": [StopCauseCategoryMeta],
        "languageCode": "abc123",
        "deleted": false,
        "stopCauses": [StopCause],
        "legacyCategoryId": 4
      }
    ]
  }
}

createTreeNode

Description

Create a new node in the organizational equipment tree structure.

Response

Returns a Node!

Arguments
Name Description
treeId - String!
input - CreateNodeInput

Example

Query
mutation CreateTreeNode(
  $treeId: String!,
  $input: CreateNodeInput
) {
  createTreeNode(
    treeId: $treeId,
    input: $input
  ) {
    id
    breadcrumb {
      name
      id
    }
    refId
    alarmStatus
    children {
      id
      breadcrumb {
        ...BreadcrumbFragment
      }
      refId
      alarmStatus
      children {
        ...NodeFragment
      }
      leafDescendants {
        ...NodesWithPageTokenFragment
      }
      line {
        ...LineFragment
      }
      peripheral {
        ...PeripheralFragment
      }
    }
    leafDescendants {
      nodes {
        ...NodeFragment
      }
      nextPageToken
    }
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    peripheral {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
  }
}
Variables
{
  "treeId": "abc123",
  "input": CreateNodeInput
}
Response
{
  "data": {
    "createTreeNode": {
      "id": "4",
      "breadcrumb": [Breadcrumb],
      "refId": 4,
      "alarmStatus": "Ongoing",
      "children": [Node],
      "leafDescendants": NodesWithPageToken,
      "line": Line,
      "peripheral": Peripheral
    }
  }
}

createUser

Response

Returns a User

Arguments
Name Description
companyId - ID
username - String!
attributes - UserAttributes!
groupIds - [ID!]
locationRoles - [LocationRoleInput!]

Example

Query
mutation CreateUser(
  $companyId: ID,
  $username: String!,
  $attributes: UserAttributes!,
  $groupIds: [ID!],
  $locationRoles: [LocationRoleInput!]
) {
  createUser(
    companyId: $companyId,
    username: $username,
    attributes: $attributes,
    groupIds: $groupIds,
    locationRoles: $locationRoles
  ) {
    company {
      id
      name
      groups {
        ...GroupFragment
      }
      roles {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      group {
        ...GroupFragment
      }
      appClients {
        ...AppClientFragment
      }
      trialStatus {
        ...TrialStatusFragment
      }
      authConfiguration {
        ...AuthConfigurationFragment
      }
      factoryOverviewSettings {
        ...FactoryOverviewSettingsFragment
      }
    }
    username
    enabled
    userStatus
    userCreateDate
    userLastModifiedDate
    sub
    email
    givenName
    familyName
    emailVerified
    groups {
      id
      defaultGroup
      externalIds
      peripheralIds
      lineIds
      owner {
        ...CompanyFragment
      }
      name
      description
      nodeId
      role {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      sensors {
        ...SensorFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralsPaginated {
        ...PeripheralsPaginatedFragment
      }
      lines {
        ...LineFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
    }
    locationRoles {
      roleId
      locationId
    }
    devices {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
    lines {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    linesPaginated {
      items {
        ...LineFragment
      }
      nextOffset
      total
    }
    skills {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserSkillEdgeFragment
      }
      nodes {
        ...UserSkillFragment
      }
    }
    learningRoles {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserLearningRoleEdgeFragment
      }
      nodes {
        ...UserLearningRoleFragment
      }
    }
    learningActivities {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserLearningActivityEdgeFragment
      }
      nodes {
        ...UserLearningActivityFragment
      }
    }
    sessions {
      generatedAt
      expiresAt
      userSub
    }
  }
}
Variables
{
  "companyId": "4",
  "username": "xyz789",
  "attributes": UserAttributes,
  "groupIds": ["4"],
  "locationRoles": [LocationRoleInput]
}
Response
{
  "data": {
    "createUser": {
      "company": Company,
      "username": "abc123",
      "enabled": true,
      "userStatus": "abc123",
      "userCreateDate": "2007-12-03",
      "userLastModifiedDate": "2007-12-03",
      "sub": "abc123",
      "email": "abc123",
      "givenName": "abc123",
      "familyName": "abc123",
      "emailVerified": "abc123",
      "groups": [Group],
      "locationRoles": [LocationRole],
      "devices": [Device],
      "lines": [Line],
      "linesPaginated": LinesPaginated,
      "skills": UserSkillConnection,
      "learningRoles": UserLearningRoleConnection,
      "learningActivities": UserLearningActivityConnection,
      "sessions": [Session]
    }
  }
}

createWebhook

Description

Create a new webhook.

Response

Returns a Webhook!

Arguments
Name Description
input - CreateWebhookInput!

Example

Query
mutation CreateWebhook($input: CreateWebhookInput!) {
  createWebhook(input: $input) {
    id
    name
    url
    description
    headers
    triggerType
    disabled
    locationId
    createdAt
    updatedAt
    deletedAt
  }
}
Variables
{"input": CreateWebhookInput}
Response
{
  "data": {
    "createWebhook": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "name": "xyz789",
      "url": "abc123",
      "description": "xyz789",
      "headers": {},
      "triggerType": "abc123",
      "disabled": true,
      "locationId": NodeId,
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z",
      "deletedAt": "2007-12-03T10:15:30Z"
    }
  }
}

dataOverrideDelete

Response

Returns a DataOverride!

Arguments
Name Description
peripheralId - ID!
from - Date!

Example

Query
mutation DataOverrideDelete(
  $peripheralId: ID!,
  $from: Date!
) {
  dataOverrideDelete(
    peripheralId: $peripheralId,
    from: $from
  ) {
    peripheralId
    timeRange {
      from
      to
    }
    value
    author
    comment
  }
}
Variables
{
  "peripheralId": "4",
  "from": "2007-12-03"
}
Response
{
  "data": {
    "dataOverrideDelete": {
      "peripheralId": "4",
      "timeRange": TimeRange,
      "value": 123,
      "author": "abc123",
      "comment": "abc123"
    }
  }
}

dataOverrideUpsert

Response

Returns a DataOverride!

Arguments
Name Description
peripheralId - ID!
input - DataOverrideUpsertInput!

Example

Query
mutation DataOverrideUpsert(
  $peripheralId: ID!,
  $input: DataOverrideUpsertInput!
) {
  dataOverrideUpsert(
    peripheralId: $peripheralId,
    input: $input
  ) {
    peripheralId
    timeRange {
      from
      to
    }
    value
    author
    comment
  }
}
Variables
{"peripheralId": 4, "input": DataOverrideUpsertInput}
Response
{
  "data": {
    "dataOverrideUpsert": {
      "peripheralId": 4,
      "timeRange": TimeRange,
      "value": 123,
      "author": "xyz789",
      "comment": "abc123"
    }
  }
}

deleteActionPlanTask

Response

Returns a String!

Arguments
Name Description
id - String!

Example

Query
mutation DeleteActionPlanTask($id: String!) {
  deleteActionPlanTask(id: $id)
}
Variables
{"id": "xyz789"}
Response
{"data": {"deleteActionPlanTask": "xyz789"}}

deleteActivityTag

Internal use only
Response

Returns a Boolean!

Arguments
Name Description
id - ActivityTagId!

Example

Query
mutation DeleteActivityTag($id: ActivityTagId!) {
  deleteActivityTag(id: $id)
}
Variables
{"id": ActivityTagId}
Response
{"data": {"deleteActivityTag": true}}

deleteActivityTags

Internal use only
Response

Returns a Boolean!

Arguments
Name Description
ids - [ActivityTagId!]!

Example

Query
mutation DeleteActivityTags($ids: [ActivityTagId!]!) {
  deleteActivityTags(ids: $ids)
}
Variables
{"ids": [ActivityTagId]}
Response
{"data": {"deleteActivityTags": true}}

deleteActivityTemplate

Internal use only
Response

Returns an ActivityTemplate!

Arguments
Name Description
id - ActivityTemplateId!

Example

Query
mutation DeleteActivityTemplate($id: ActivityTemplateId!) {
  deleteActivityTemplate(id: $id) {
    id
    title
    description
    translations {
      title
      description
      languageCode
    }
    customFormId
    customFormVersion
    triggers {
      id
      type {
        ...ActivityTriggerTypeFragment
      }
      conditions {
        ...TriggerConditionsFragment
      }
      isActive
    }
    expiresAfterMinutes
    locationIds
    version
    createdAt
    deletedAt
    versions {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...VersionedActivityTemplateEdgeFragment
      }
      nodes {
        ...ActivityTemplateFragment
      }
    }
    customForm {
      id
      title
      description
      translations {
        ...CustomFormTranslationFragment
      }
      fields {
        ...CustomFormFieldFragment
      }
      requireInitials
      version
      createdAt
      deletedAt
    }
    tags {
      id
      name
      createdAt
      modifiedAt
      deletedAt
      templateCount
    }
  }
}
Variables
{"id": ActivityTemplateId}
Response
{
  "data": {
    "deleteActivityTemplate": {
      "id": ActivityTemplateId,
      "title": "xyz789",
      "description": "xyz789",
      "translations": [ActivityTemplateTranslation],
      "customFormId": CustomFormId,
      "customFormVersion": 123,
      "triggers": [Trigger],
      "expiresAfterMinutes": 987,
      "locationIds": [NodeId],
      "version": 987,
      "createdAt": "2007-12-03T10:15:30Z",
      "deletedAt": "2007-12-03T10:15:30Z",
      "versions": VersionedActivityTemplatesConnection,
      "customForm": CustomForm,
      "tags": [ActivityTag]
    }
  }
}

deleteAlarm

Response

Returns an Int!

Arguments
Name Description
peripheralId - ID!
alarmId - ID!

Example

Query
mutation DeleteAlarm(
  $peripheralId: ID!,
  $alarmId: ID!
) {
  deleteAlarm(
    peripheralId: $peripheralId,
    alarmId: $alarmId
  )
}
Variables
{"peripheralId": 4, "alarmId": 4}
Response
{"data": {"deleteAlarm": 123}}

deleteAppClient

Response

Returns an ID

Arguments
Name Description
id - ID!

Example

Query
mutation DeleteAppClient($id: ID!) {
  deleteAppClient(id: $id)
}
Variables
{"id": 4}
Response
{"data": {"deleteAppClient": "4"}}

deleteBatch

Response

Returns an ID!

Arguments
Name Description
lineId - ID!
batchId - ID!

Example

Query
mutation DeleteBatch(
  $lineId: ID!,
  $batchId: ID!
) {
  deleteBatch(
    lineId: $lineId,
    batchId: $batchId
  )
}
Variables
{"lineId": 4, "batchId": "4"}
Response
{"data": {"deleteBatch": 4}}

deleteControlReceipt

Response

Returns an ID!

Arguments
Name Description
userPoolId - ID
controlReceiptId - ID!

Example

Query
mutation DeleteControlReceipt(
  $userPoolId: ID,
  $controlReceiptId: ID!
) {
  deleteControlReceipt(
    userPoolId: $userPoolId,
    controlReceiptId: $controlReceiptId
  )
}
Variables
{
  "userPoolId": "4",
  "controlReceiptId": "4"
}
Response
{"data": {"deleteControlReceipt": "4"}}

deleteCustomForm

Internal use only
Response

Returns a CustomForm!

Arguments
Name Description
id - CustomFormId!

Example

Query
mutation DeleteCustomForm($id: CustomFormId!) {
  deleteCustomForm(id: $id) {
    id
    title
    description
    translations {
      title
      description
      languageCode
    }
    fields {
      id
      name
      description
      translations {
        ...CustomFormFieldTranslationFragment
      }
      fieldOptions {
        ...CustomFormFieldOptionsFragment
      }
    }
    requireInitials
    version
    createdAt
    deletedAt
  }
}
Variables
{"id": CustomFormId}
Response
{
  "data": {
    "deleteCustomForm": {
      "id": CustomFormId,
      "title": "abc123",
      "description": "abc123",
      "translations": [CustomFormTranslation],
      "fields": [CustomFormField],
      "requireInitials": true,
      "version": 123,
      "createdAt": "2007-12-03T10:15:30Z",
      "deletedAt": "2007-12-03T10:15:30Z"
    }
  }
}

deleteCustomizableReport

Internal use only
Description

Delete a customizable report (idempotent - succeeds even if already deleted)

Arguments
Name Description
id - UUID!

Example

Query
mutation DeleteCustomizableReport($id: UUID!) {
  deleteCustomizableReport(id: $id) {
    id
  }
}
Variables
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
}
Response
{
  "data": {
    "deleteCustomizableReport": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
    }
  }
}

deleteDevice

Description

Deletes a device.

uuid' represents the allocated software identifier. idrepresents the hardware identifier. One ofuuidorid` must be provided, but not both.

Response

Returns a Boolean!

Arguments
Name Description
uuid - ID
id - ID

Example

Query
mutation DeleteDevice(
  $uuid: ID,
  $id: ID
) {
  deleteDevice(
    uuid: $uuid,
    id: $id
  )
}
Variables
{"uuid": 4, "id": 4}
Response
{"data": {"deleteDevice": false}}

deleteEscalation

Response

Returns a String!

Arguments
Name Description
escalationId - String!
actionPlanId - String!

Example

Query
mutation DeleteEscalation(
  $escalationId: String!,
  $actionPlanId: String!
) {
  deleteEscalation(
    escalationId: $escalationId,
    actionPlanId: $actionPlanId
  )
}
Variables
{
  "escalationId": "abc123",
  "actionPlanId": "abc123"
}
Response
{"data": {"deleteEscalation": "xyz789"}}

deleteEventActionConfiguration

Response

Returns a Boolean!

Arguments
Name Description
peripheralId - ID!
value - String!

Example

Query
mutation DeleteEventActionConfiguration(
  $peripheralId: ID!,
  $value: String!
) {
  deleteEventActionConfiguration(
    peripheralId: $peripheralId,
    value: $value
  )
}
Variables
{"peripheralId": 4, "value": "xyz789"}
Response
{"data": {"deleteEventActionConfiguration": false}}

deleteGroup

Response

Returns an ID

Arguments
Name Description
companyId - ID
id - ID!

Example

Query
mutation DeleteGroup(
  $companyId: ID,
  $id: ID!
) {
  deleteGroup(
    companyId: $companyId,
    id: $id
  )
}
Variables
{"companyId": 4, "id": "4"}
Response
{"data": {"deleteGroup": "4"}}

deleteHierarchyNode

Description

Remove node from hierarchy

Note that the ability to remove lines and nodes from the hierarchy is deprecated. These nodes should always exist somewhere in the hierarchy. As such, the correct way of removing them from the hierarchy is to delete them entirely.

Response

Returns a Boolean!

Arguments
Name Description
nodeId - NodeId!

Example

Query
mutation DeleteHierarchyNode($nodeId: NodeId!) {
  deleteHierarchyNode(nodeId: $nodeId)
}
Variables
{"nodeId": NodeId}
Response
{"data": {"deleteHierarchyNode": true}}

deleteLearningActivity

Internal use only
Response

Returns a UUID

Arguments
Name Description
id - UUID!

Example

Query
mutation DeleteLearningActivity($id: UUID!) {
  deleteLearningActivity(id: $id)
}
Variables
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
}
Response
{
  "data": {
    "deleteLearningActivity": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
  }
}

deleteLearningRole

Internal use only
Response

Returns a UUID

Arguments
Name Description
id - UUID!

Example

Query
mutation DeleteLearningRole($id: UUID!) {
  deleteLearningRole(id: $id)
}
Variables
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
}
Response
{
  "data": {
    "deleteLearningRole": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
  }
}

deleteLine

Response

Returns a Boolean!

Arguments
Name Description
lineId - ID! The ID must be a valid LineId

Example

Query
mutation DeleteLine($lineId: ID!) {
  deleteLine(lineId: $lineId)
}
Variables
{"lineId": 4}
Response
{"data": {"deleteLine": true}}

deleteMaintenancePlan

Response

Returns a MaintenancePlan!

Arguments
Name Description
planId - MaintenancePlanId!
lineId - LineId!

Example

Query
mutation DeleteMaintenancePlan(
  $planId: MaintenancePlanId!,
  $lineId: LineId!
) {
  deleteMaintenancePlan(
    planId: $planId,
    lineId: $lineId
  ) {
    planId
    lineId
    title
    asset
    tagPartNumber
    instructions
    startFrom
    trackBy {
      time {
        ...TrackByTimeFragment
      }
      production {
        ...TrackByProductionFragment
      }
      calendar {
        ...TrackByCalendarFragment
      }
    }
    repeat
    version
    role {
      id
      name
    }
    log {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...MaintenanceLogEntryEdgeFragment
      }
      nodes {
        ...MaintenanceLogEntryFragment
      }
    }
    nextWorkOrder {
      plan {
        ...MaintenancePlanFragment
      }
      dueAt
      overdueAt
      produced
      latestMaintenance {
        ...MaintenanceLogEntryFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      line {
        ...LineFragment
      }
    }
    peripheral {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{
  "planId": MaintenancePlanId,
  "lineId": LineId
}
Response
{
  "data": {
    "deleteMaintenancePlan": {
      "planId": MaintenancePlanId,
      "lineId": LineId,
      "title": "xyz789",
      "asset": "xyz789",
      "tagPartNumber": "xyz789",
      "instructions": "xyz789",
      "startFrom": "2007-12-03T10:15:30Z",
      "trackBy": TrackByOptions,
      "repeat": "YES",
      "version": 123,
      "role": MaintenanceRole,
      "log": MaintenanceLogEntryConnection,
      "nextWorkOrder": MaintenanceWorkOrder,
      "peripheral": Peripheral,
      "line": Line
    }
  }
}

deleteNode

Internal use only.
Description

Delete an existing node and return the updated list of line nodes on the line.

Response

Returns [LineNode!]!

Arguments
Name Description
lineId - ID! The ID must be a valid LineId
nodeId - ID! The peripheral ID of the node to delete.

Example

Query
mutation DeleteNode(
  $lineId: ID!,
  $nodeId: ID!
) {
  deleteNode(
    lineId: $lineId,
    nodeId: $nodeId
  ) {
    id
    type
    peripheralId
    position
    sensor {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
  }
}
Variables
{"lineId": 4, "nodeId": "4"}
Response
{
  "data": {
    "deleteNode": [
      {
        "id": 4,
        "type": "Main",
        "peripheralId": "4",
        "position": "DOWNSTREAM_FROM_MAIN",
        "sensor": Sensor
      }
    ]
  }
}

deletePackaging

Response

Returns an ID!

Arguments
Name Description
lineId - ID!
packagingId - ID!

Example

Query
mutation DeletePackaging(
  $lineId: ID!,
  $packagingId: ID!
) {
  deletePackaging(
    lineId: $lineId,
    packagingId: $packagingId
  )
}
Variables
{
  "lineId": "4",
  "packagingId": "4"
}
Response
{"data": {"deletePackaging": "4"}}

deletePeripheral

Response

Returns a Boolean!

Arguments
Name Description
peripheralId - ID!

Example

Query
mutation DeletePeripheral($peripheralId: ID!) {
  deletePeripheral(peripheralId: $peripheralId)
}
Variables
{"peripheralId": "4"}
Response
{"data": {"deletePeripheral": false}}

deleteProduct

Response

Returns an ID!

Arguments
Name Description
lineId - ID!
productId - ID!

Example

Query
mutation DeleteProduct(
  $lineId: ID!,
  $productId: ID!
) {
  deleteProduct(
    lineId: $lineId,
    productId: $productId
  )
}
Variables
{"lineId": 4, "productId": 4}
Response
{"data": {"deleteProduct": 4}}

deleteRole

Response

Returns an ID

Arguments
Name Description
companyId - ID
id - ID!

Example

Query
mutation DeleteRole(
  $companyId: ID,
  $id: ID!
) {
  deleteRole(
    companyId: $companyId,
    id: $id
  )
}
Variables
{
  "companyId": "4",
  "id": "4"
}
Response
{"data": {"deleteRole": "4"}}

deleteSchedule

Description

Delete a schedule.

Response

Returns a Boolean!

Arguments
Name Description
lineId - ID!
scheduleId - ID!
isExceptionalWeek - Boolean Default = false

Example

Query
mutation DeleteSchedule(
  $lineId: ID!,
  $scheduleId: ID!,
  $isExceptionalWeek: Boolean
) {
  deleteSchedule(
    lineId: $lineId,
    scheduleId: $scheduleId,
    isExceptionalWeek: $isExceptionalWeek
  )
}
Variables
{
  "lineId": 4,
  "scheduleId": "4",
  "isExceptionalWeek": false
}
Response
{"data": {"deleteSchedule": false}}

deleteScheduledReportForGroup

Response

Returns an Int!

Arguments
Name Description
groupId - ID!
id - ID!

Example

Query
mutation DeleteScheduledReportForGroup(
  $groupId: ID!,
  $id: ID!
) {
  deleteScheduledReportForGroup(
    groupId: $groupId,
    id: $id
  )
}
Variables
{"groupId": "4", "id": 4}
Response
{"data": {"deleteScheduledReportForGroup": 987}}

deleteScheduledReportForLine

Response

Returns an Int!

Arguments
Name Description
lineId - ID!
id - ID!

Example

Query
mutation DeleteScheduledReportForLine(
  $lineId: ID!,
  $id: ID!
) {
  deleteScheduledReportForLine(
    lineId: $lineId,
    id: $id
  )
}
Variables
{"lineId": "4", "id": 4}
Response
{"data": {"deleteScheduledReportForLine": 123}}

deleteScheduledReportForSensor

Response

Returns an Int!

Arguments
Name Description
peripheralId - ID!
id - ID!

Example

Query
mutation DeleteScheduledReportForSensor(
  $peripheralId: ID!,
  $id: ID!
) {
  deleteScheduledReportForSensor(
    peripheralId: $peripheralId,
    id: $id
  )
}
Variables
{
  "peripheralId": "4",
  "id": "4"
}
Response
{"data": {"deleteScheduledReportForSensor": 123}}

deleteSkill

Internal use only
Response

Returns a UUID

Arguments
Name Description
id - UUID!

Example

Query
mutation DeleteSkill($id: UUID!) {
  deleteSkill(id: $id)
}
Variables
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
}
Response
{
  "data": {
    "deleteSkill": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
  }
}

deleteStopCause

Response

Returns [StopCauseCategory]

Arguments
Name Description
deviceOwner - ID
peripheralId - ID
stopCauseId - ID!

Example

Query
mutation DeleteStopCause(
  $deviceOwner: ID,
  $peripheralId: ID,
  $stopCauseId: ID!
) {
  deleteStopCause(
    deviceOwner: $deviceOwner,
    peripheralId: $peripheralId,
    stopCauseId: $stopCauseId
  ) {
    _id
    id
    ownerType
    order
    name
    meta {
      name
      languageCode
    }
    languageCode
    deleted
    stopCauses {
      _id
      id
      stopType
      categoryId
      categoryName
      name
      description
      meta {
        ...StopCauseMetaFragment
      }
      order
      requireInitials
      requireComment
      deleted
      languageCode
      legacyStopCauseId
      targetSetup {
        ...TargetSetupFragment
      }
      enableCountermeasure
    }
    legacyCategoryId
  }
}
Variables
{
  "deviceOwner": "4",
  "peripheralId": 4,
  "stopCauseId": "4"
}
Response
{
  "data": {
    "deleteStopCause": [
      {
        "_id": 4,
        "id": 4,
        "ownerType": "SENSOR",
        "order": 987,
        "name": "abc123",
        "meta": [StopCauseCategoryMeta],
        "languageCode": "abc123",
        "deleted": false,
        "stopCauses": [StopCause],
        "legacyCategoryId": 4
      }
    ]
  }
}

deleteStopCauseCategory

Response

Returns [StopCauseCategory!]

Arguments
Name Description
deviceOwner - ID
peripheralId - ID
stopCauseCategoryId - ID!

Example

Query
mutation DeleteStopCauseCategory(
  $deviceOwner: ID,
  $peripheralId: ID,
  $stopCauseCategoryId: ID!
) {
  deleteStopCauseCategory(
    deviceOwner: $deviceOwner,
    peripheralId: $peripheralId,
    stopCauseCategoryId: $stopCauseCategoryId
  ) {
    _id
    id
    ownerType
    order
    name
    meta {
      name
      languageCode
    }
    languageCode
    deleted
    stopCauses {
      _id
      id
      stopType
      categoryId
      categoryName
      name
      description
      meta {
        ...StopCauseMetaFragment
      }
      order
      requireInitials
      requireComment
      deleted
      languageCode
      legacyStopCauseId
      targetSetup {
        ...TargetSetupFragment
      }
      enableCountermeasure
    }
    legacyCategoryId
  }
}
Variables
{"deviceOwner": 4, "peripheralId": 4, "stopCauseCategoryId": 4}
Response
{
  "data": {
    "deleteStopCauseCategory": [
      {
        "_id": "4",
        "id": "4",
        "ownerType": "SENSOR",
        "order": 987,
        "name": "xyz789",
        "meta": [StopCauseCategoryMeta],
        "languageCode": "abc123",
        "deleted": false,
        "stopCauses": [StopCause],
        "legacyCategoryId": "4"
      }
    ]
  }
}

deleteTarget

Description

Delete a target.

Response

Returns a Boolean!

Arguments
Name Description
lineId - ID!
targetId - ID!

Example

Query
mutation DeleteTarget(
  $lineId: ID!,
  $targetId: ID!
) {
  deleteTarget(
    lineId: $lineId,
    targetId: $targetId
  )
}
Variables
{"lineId": "4", "targetId": 4}
Response
{"data": {"deleteTarget": true}}

deleteUser

Response

Returns a User

Arguments
Name Description
companyId - ID
username - String!

Example

Query
mutation DeleteUser(
  $companyId: ID,
  $username: String!
) {
  deleteUser(
    companyId: $companyId,
    username: $username
  ) {
    company {
      id
      name
      groups {
        ...GroupFragment
      }
      roles {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      group {
        ...GroupFragment
      }
      appClients {
        ...AppClientFragment
      }
      trialStatus {
        ...TrialStatusFragment
      }
      authConfiguration {
        ...AuthConfigurationFragment
      }
      factoryOverviewSettings {
        ...FactoryOverviewSettingsFragment
      }
    }
    username
    enabled
    userStatus
    userCreateDate
    userLastModifiedDate
    sub
    email
    givenName
    familyName
    emailVerified
    groups {
      id
      defaultGroup
      externalIds
      peripheralIds
      lineIds
      owner {
        ...CompanyFragment
      }
      name
      description
      nodeId
      role {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      sensors {
        ...SensorFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralsPaginated {
        ...PeripheralsPaginatedFragment
      }
      lines {
        ...LineFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
    }
    locationRoles {
      roleId
      locationId
    }
    devices {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
    lines {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    linesPaginated {
      items {
        ...LineFragment
      }
      nextOffset
      total
    }
    skills {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserSkillEdgeFragment
      }
      nodes {
        ...UserSkillFragment
      }
    }
    learningRoles {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserLearningRoleEdgeFragment
      }
      nodes {
        ...UserLearningRoleFragment
      }
    }
    learningActivities {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserLearningActivityEdgeFragment
      }
      nodes {
        ...UserLearningActivityFragment
      }
    }
    sessions {
      generatedAt
      expiresAt
      userSub
    }
  }
}
Variables
{
  "companyId": "4",
  "username": "xyz789"
}
Response
{
  "data": {
    "deleteUser": {
      "company": Company,
      "username": "xyz789",
      "enabled": true,
      "userStatus": "xyz789",
      "userCreateDate": "2007-12-03",
      "userLastModifiedDate": "2007-12-03",
      "sub": "abc123",
      "email": "xyz789",
      "givenName": "xyz789",
      "familyName": "xyz789",
      "emailVerified": "xyz789",
      "groups": [Group],
      "locationRoles": [LocationRole],
      "devices": [Device],
      "lines": [Line],
      "linesPaginated": LinesPaginated,
      "skills": UserSkillConnection,
      "learningRoles": UserLearningRoleConnection,
      "learningActivities": UserLearningActivityConnection,
      "sessions": [Session]
    }
  }
}

deleteWebhook

Description

Delete a webhook by its ID.

Response

Returns a Boolean!

Arguments
Name Description
id - UUID!

Example

Query
mutation DeleteWebhook($id: UUID!) {
  deleteWebhook(id: $id)
}
Variables
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
}
Response
{"data": {"deleteWebhook": false}}

detachCamera

Response

Returns a Camera!

Arguments
Name Description
peripheralId - ID!
sensorPeripheralId - ID!

Example

Query
mutation DetachCamera(
  $peripheralId: ID!,
  $sensorPeripheralId: ID!
) {
  detachCamera(
    peripheralId: $peripheralId,
    sensorPeripheralId: $sensorPeripheralId
  ) {
    _id
    id
    name
    index
    peripheralId
    owner
    hardwareId
    description
    peripheralType
    offlineStatus {
      expiration
      lastReceived
    }
    attachedSensors {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
    streamURL
    device {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
    hardwareDevice {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
  }
}
Variables
{
  "peripheralId": "4",
  "sensorPeripheralId": 4
}
Response
{
  "data": {
    "detachCamera": {
      "_id": 4,
      "id": "4",
      "name": "xyz789",
      "index": "4",
      "peripheralId": "4",
      "owner": "4",
      "hardwareId": 4,
      "description": "xyz789",
      "peripheralType": "SENSOR",
      "offlineStatus": OfflineStatus,
      "attachedSensors": [Sensor],
      "streamURL": "xyz789",
      "device": Device,
      "hardwareDevice": Device
    }
  }
}

detachControlReceipt

Response

Returns a Product!

Arguments
Name Description
lineId - ID!
productId - ID!
userPoolId - ID
controlReceiptId - ID!

Example

Query
mutation DetachControlReceipt(
  $lineId: ID!,
  $productId: ID!,
  $userPoolId: ID,
  $controlReceiptId: ID!
) {
  detachControlReceipt(
    lineId: $lineId,
    productId: $productId,
    userPoolId: $userPoolId,
    controlReceiptId: $controlReceiptId
  ) {
    productId
    name
    itemNumber
    validatedLineSpeed
    expectedAverageSpeed
    comment
    lineId
    dataMultiplier
    packaging {
      packagingId
      packagingNumber
      lineId
      name
      unit
      comment
    }
    overwrittenByBatch
    parameters {
      key
      value
      alarm {
        ...AlarmFragment
      }
      setpoint {
        ...SetPointFragment
      }
    }
    attachedControlReceipts {
      controlReceiptId
      userPoolId
      name
      description
      entries {
        ...ControlReceiptEntryFragment
      }
      deleted
      attachedProducts {
        ...ProductFragment
      }
    }
  }
}
Variables
{
  "lineId": "4",
  "productId": "4",
  "userPoolId": "4",
  "controlReceiptId": "4"
}
Response
{
  "data": {
    "detachControlReceipt": {
      "productId": "4",
      "name": "xyz789",
      "itemNumber": "abc123",
      "validatedLineSpeed": 987.65,
      "expectedAverageSpeed": 987.65,
      "comment": "xyz789",
      "lineId": "4",
      "dataMultiplier": 123.45,
      "packaging": Packaging,
      "overwrittenByBatch": false,
      "parameters": [Parameter],
      "attachedControlReceipts": [ControlReceipt]
    }
  }
}

disableUser

Response

Returns a UserSub!

Arguments
Name Description
companyId - ID
username - String!

Example

Query
mutation DisableUser(
  $companyId: ID,
  $username: String!
) {
  disableUser(
    companyId: $companyId,
    username: $username
  ) {
    sub
    username
  }
}
Variables
{
  "companyId": "4",
  "username": "xyz789"
}
Response
{
  "data": {
    "disableUser": {
      "sub": "abc123",
      "username": "abc123"
    }
  }
}

downloadVideoClip

Response

Returns a DownloadVideoClip!

Arguments
Name Description
uuid - ID!
startTime - Date!
endTime - Date
index - String

Example

Query
mutation DownloadVideoClip(
  $uuid: ID!,
  $startTime: Date!,
  $endTime: Date,
  $index: String
) {
  downloadVideoClip(
    uuid: $uuid,
    startTime: $startTime,
    endTime: $endTime,
    index: $index
  ) {
    videoClipUrl
  }
}
Variables
{
  "uuid": 4,
  "startTime": "2007-12-03",
  "endTime": "2007-12-03",
  "index": "abc123"
}
Response
{
  "data": {
    "downloadVideoClip": {
      "videoClipUrl": "abc123"
    }
  }
}

editHierarchyNode

Response

Returns a HierarchyNode!

Arguments
Name Description
input - EditHierarchyNodeInput!

Example

Query
mutation EditHierarchyNode($input: EditHierarchyNodeInput!) {
  editHierarchyNode(input: $input) {
    id
    version
    meta {
      ... on LineNodeMeta {
        ...LineNodeMetaFragment
      }
      ... on DirectoryNodeMeta {
        ...DirectoryNodeMetaFragment
      }
      ... on PeripheralNodeMeta {
        ...PeripheralNodeMetaFragment
      }
      ... on AssetNodeMeta {
        ...AssetNodeMetaFragment
      }
    }
    type
    descendants {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...HierarchyNodeEdgeFragment
      }
      nodes {
        ...HierarchyNodeFragment
      }
    }
    ancestors {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
    childrenCount
  }
}
Variables
{"input": EditHierarchyNodeInput}
Response
{
  "data": {
    "editHierarchyNode": {
      "id": NodeId,
      "version": 987,
      "meta": LineNodeMeta,
      "type": "LINE",
      "descendants": HierarchyNodeConnection,
      "ancestors": [HierarchyNode],
      "childrenCount": 987
    }
  }
}

editManualData

Response

Returns a Boolean!

Arguments
Name Description
input - EditManualDataInput!

Example

Query
mutation EditManualData($input: EditManualDataInput!) {
  editManualData(input: $input)
}
Variables
{"input": EditManualDataInput}
Response
{"data": {"editManualData": true}}

enableBatchImportKey

Response

Returns an ID!

Example

Query
mutation EnableBatchImportKey {
  enableBatchImportKey
}
Response
{"data": {"enableBatchImportKey": "4"}}

enableUser

Response

Returns a UserSub!

Arguments
Name Description
companyId - ID
username - String!

Example

Query
mutation EnableUser(
  $companyId: ID,
  $username: String!
) {
  enableUser(
    companyId: $companyId,
    username: $username
  ) {
    sub
    username
  }
}
Variables
{"companyId": 4, "username": "abc123"}
Response
{
  "data": {
    "enableUser": {
      "sub": "abc123",
      "username": "xyz789"
    }
  }
}

enrollUserInLearningRole

Internal use only
Response

Returns a UserLearningRole!

Arguments
Name Description
input - EnrollUserInLearningRoleInput!

Example

Query
mutation EnrollUserInLearningRole($input: EnrollUserInLearningRoleInput!) {
  enrollUserInLearningRole(input: $input) {
    id
    learningRoleId
    userId
    title
    status
    description
    nodeId
    createdAt
    updatedAt
    createdBySub
    updatedBySub
    expiresAt
    completedAt
    enrolledBySub
    skills {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserLearningRoleSkillsEdgeFragment
      }
      nodes {
        ...UserLearningRoleSkillFragment
      }
    }
    node {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
    user {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    updatedBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    enrolledBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
  }
}
Variables
{"input": EnrollUserInLearningRoleInput}
Response
{
  "data": {
    "enrollUserInLearningRole": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "learningRoleId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "userId": "4",
      "title": "xyz789",
      "status": "ENROLLED",
      "description": "abc123",
      "nodeId": "4",
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z",
      "createdBySub": "abc123",
      "updatedBySub": "xyz789",
      "expiresAt": "2007-12-03T10:15:30Z",
      "completedAt": "2007-12-03T10:15:30Z",
      "enrolledBySub": "xyz789",
      "skills": UserLearningRoleSkillsConnection,
      "node": HierarchyNode,
      "user": User,
      "createdBy": User,
      "updatedBy": User,
      "enrolledBy": User
    }
  }
}

enrollUserInSkill

Internal use only
Response

Returns a UserSkill!

Arguments
Name Description
input - EnrollUserInSkillInput!

Example

Query
mutation EnrollUserInSkill($input: EnrollUserInSkillInput!) {
  enrollUserInSkill(input: $input) {
    id
    skillId
    userId
    title
    status
    description
    nodeId
    createdAt
    updatedAt
    createdBySub
    updatedBySub
    expiresAt
    completedAt
    enrolledBySub
    learningActivities {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserSkillLearningActivitiesEdgeFragment
      }
      nodes {
        ...UserSkillLearningActivityFragment
      }
    }
    node {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    updatedBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    enrolledBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
  }
}
Variables
{"input": EnrollUserInSkillInput}
Response
{
  "data": {
    "enrollUserInSkill": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "skillId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "userId": 4,
      "title": "abc123",
      "status": "ENROLLED",
      "description": "abc123",
      "nodeId": "4",
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z",
      "createdBySub": "abc123",
      "updatedBySub": "xyz789",
      "expiresAt": "2007-12-03T10:15:30Z",
      "completedAt": "2007-12-03T10:15:30Z",
      "enrolledBySub": "xyz789",
      "learningActivities": UserSkillLearningActivitiesConnection,
      "node": HierarchyNode,
      "createdBy": User,
      "updatedBy": User,
      "enrolledBy": User
    }
  }
}

escalateActionPlan

Response

Returns an Escalation!

Arguments
Name Description
id - String!
toNode - String!
assignedSub - String
sendNotification - Boolean Send a notification to the assignee (if assigned in input), defaults to true

Example

Query
mutation EscalateActionPlan(
  $id: String!,
  $toNode: String!,
  $assignedSub: String,
  $sendNotification: Boolean
) {
  escalateActionPlan(
    id: $id,
    toNode: $toNode,
    assignedSub: $assignedSub,
    sendNotification: $sendNotification
  ) {
    nodeId
    creationDate
    createdBySub
    assignedToSub
    priority
    version
    plan {
      state
      title
      pdcaState
      followUpInterval
      followUpState
      dueDate
      linkedProductionData
      version
      category {
        ...ActionPlanCategoryFragment
      }
      content {
        ...ActionPlanContentFragment
      }
      escalations {
        ...EscalationFragment
      }
      attachedFiles
      tasks {
        ...ActionPlanTaskFragment
      }
      id
    }
    id
    assignedTo {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    node {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
  }
}
Variables
{
  "id": "abc123",
  "toNode": "xyz789",
  "assignedSub": "abc123",
  "sendNotification": true
}
Response
{
  "data": {
    "escalateActionPlan": {
      "nodeId": "abc123",
      "creationDate": "2007-12-03T10:15:30Z",
      "createdBySub": "xyz789",
      "assignedToSub": "abc123",
      "priority": true,
      "version": 987,
      "plan": ActionPlan,
      "id": "xyz789",
      "assignedTo": User,
      "createdBy": User,
      "node": HierarchyNode
    }
  }
}

executeWebhook

Description

Executes the webhook with its current configuration, sending a request with the provided payload. This is useful for testing webhook integrations.

Response

Returns a Boolean!

Arguments
Name Description
id - UUID! The ID of the webhook to execute.
payload - JSON The payload to send with the webhook request. If not provided, an empty object will be sent.

Example

Query
mutation ExecuteWebhook(
  $id: UUID!,
  $payload: JSON
) {
  executeWebhook(
    id: $id,
    payload: $payload
  )
}
Variables
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "payload": {}
}
Response
{"data": {"executeWebhook": false}}

forgetWiFi

Description

Forget a WiFi configuration of the specified device.

`uuid' is deprecated and used to represent the allocated software identifier.

`id' refers to the hardware identifier of the device.

Response

Returns a Boolean!

Arguments
Name Description
uuid - ID
id - ID
input - ID!

Example

Query
mutation ForgetWiFi(
  $uuid: ID,
  $id: ID,
  $input: ID!
) {
  forgetWiFi(
    uuid: $uuid,
    id: $id,
    input: $input
  )
}
Variables
{
  "uuid": 4,
  "id": "4",
  "input": "4"
}
Response
{"data": {"forgetWiFi": true}}

generateAPIToken

Description

Generate an API token for the user as specified from the input.

Response

Returns a GeneratedAPIToken!

Arguments
Name Description
input - GenerateAPITokenInput!

Example

Query
mutation GenerateAPIToken($input: GenerateAPITokenInput!) {
  generateAPIToken(input: $input) {
    tokenId
    token
    name
    description
    generatedAt
    expiration
    isActive
    userSub
  }
}
Variables
{"input": GenerateAPITokenInput}
Response
{
  "data": {
    "generateAPIToken": {
      "tokenId": "4",
      "token": "abc123",
      "name": "xyz789",
      "description": "xyz789",
      "generatedAt": "2007-12-03",
      "expiration": 123.45,
      "isActive": false,
      "userSub": "4"
    }
  }
}

generateActivityTemplate

Internal use only
Response

Returns a GeneratedActivityTemplate!

Arguments
Name Description
input - GeneratedActivityTemplateInput!

Example

Query
mutation GenerateActivityTemplate($input: GeneratedActivityTemplateInput!) {
  generateActivityTemplate(input: $input) {
    id
    status
    templateContent {
      id
      title
      description
      customForm {
        ...CustomFormFragment
      }
      translations {
        ...GeneratedActivityTemplateTranslationFragment
      }
    }
  }
}
Variables
{"input": GeneratedActivityTemplateInput}
Response
{
  "data": {
    "generateActivityTemplate": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "status": "PENDING",
      "templateContent": GeneratedActivityTemplateContent
    }
  }
}

ignorePendingGoldenBatch

Internal use only
Description

Ignore a pending golden batch. The batch will not be proposed as a golden batch again.

Response

Returns a Boolean!

Arguments
Name Description
batchId - ID!

Example

Query
mutation IgnorePendingGoldenBatch($batchId: ID!) {
  ignorePendingGoldenBatch(batchId: $batchId)
}
Variables
{"batchId": "4"}
Response
{"data": {"ignorePendingGoldenBatch": true}}

importStopCauseCategories

Response

Returns a Boolean

Arguments
Name Description
peripheralId - ID!
objectKey - String

Example

Query
mutation ImportStopCauseCategories(
  $peripheralId: ID!,
  $objectKey: String
) {
  importStopCauseCategories(
    peripheralId: $peripheralId,
    objectKey: $objectKey
  )
}
Variables
{
  "peripheralId": "4",
  "objectKey": "xyz789"
}
Response
{"data": {"importStopCauseCategories": false}}

initializeHierarchy

Response

Returns a HierarchyNode!

Arguments
Name Description
input - InitializeHierarchyInput!

Example

Query
mutation InitializeHierarchy($input: InitializeHierarchyInput!) {
  initializeHierarchy(input: $input) {
    id
    version
    meta {
      ... on LineNodeMeta {
        ...LineNodeMetaFragment
      }
      ... on DirectoryNodeMeta {
        ...DirectoryNodeMetaFragment
      }
      ... on PeripheralNodeMeta {
        ...PeripheralNodeMetaFragment
      }
      ... on AssetNodeMeta {
        ...AssetNodeMetaFragment
      }
    }
    type
    descendants {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...HierarchyNodeEdgeFragment
      }
      nodes {
        ...HierarchyNodeFragment
      }
    }
    ancestors {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
    childrenCount
  }
}
Variables
{"input": InitializeHierarchyInput}
Response
{
  "data": {
    "initializeHierarchy": {
      "id": NodeId,
      "version": 987,
      "meta": LineNodeMeta,
      "type": "LINE",
      "descendants": HierarchyNodeConnection,
      "ancestors": [HierarchyNode],
      "childrenCount": 987
    }
  }
}

invalidateSession

Description

Invalidates a session.

Response

Returns a Boolean!

Arguments
Name Description
input - InvalidateSessionInput!

Example

Query
mutation InvalidateSession($input: InvalidateSessionInput!) {
  invalidateSession(input: $input)
}
Variables
{"input": InvalidateSessionInput}
Response
{"data": {"invalidateSession": false}}

invalidateUserSession

Description

Invalidates a session of a specific user.

Response

Returns a Boolean!

Arguments
Name Description
input - InvalidateUserSessionInput!

Example

Query
mutation InvalidateUserSession($input: InvalidateUserSessionInput!) {
  invalidateUserSession(input: $input)
}
Variables
{"input": InvalidateUserSessionInput}
Response
{"data": {"invalidateUserSession": false}}

issueCertificate

Response

Returns an IssuedCertificate!

Arguments
Name Description
input - IssueCertificateInput!

Example

Query
mutation IssueCertificate($input: IssueCertificateInput!) {
  issueCertificate(input: $input) {
    url
    certificate {
      id
      isActive
      createdAt
      validAt
      expiresAt
      subject
      issuer
    }
  }
}
Variables
{"input": IssueCertificateInput}
Response
{
  "data": {
    "issueCertificate": {
      "url": "xyz789",
      "certificate": Certificate
    }
  }
}

manuallyTriggerBatchControl

Response

Returns a BatchControl!

Arguments
Name Description
lineId - ID!
batchId - ID!
controlId - ID!
controlReceiptId - ID!

Example

Query
mutation ManuallyTriggerBatchControl(
  $lineId: ID!,
  $batchId: ID!,
  $controlId: ID!,
  $controlReceiptId: ID!
) {
  manuallyTriggerBatchControl(
    lineId: $lineId,
    batchId: $batchId,
    controlId: $controlId,
    controlReceiptId: $controlReceiptId
  ) {
    batchControlId
    batchId
    comment
    controlReceiptId
    controlReceiptName
    entryId
    fieldValues {
      controlReceiptField {
        ...ControlReceiptEntryFieldFragment
      }
      value
    }
    followUp {
      enabled
      delayMs
    }
    history {
      comment
      fieldValues {
        ...BatchControlFieldValueFragment
      }
      initials
      status
      timeControlUpdated
      timeControlled
    }
    initials
    initialsSettings
    originalControl {
      controlId
      timeTriggered
    }
    status
    timeControlUpdated
    timeControlled
    timeTriggered
    title
    trigger {
      type
      payload {
        ...TimedTriggerPayloadFragment
      }
      delayWhenStopped
    }
  }
}
Variables
{
  "lineId": "4",
  "batchId": 4,
  "controlId": "4",
  "controlReceiptId": "4"
}
Response
{
  "data": {
    "manuallyTriggerBatchControl": {
      "batchControlId": "4",
      "batchId": 4,
      "comment": "xyz789",
      "controlReceiptId": "4",
      "controlReceiptName": "abc123",
      "entryId": 4,
      "fieldValues": [BatchControlFieldValue],
      "followUp": FollowUpSettings,
      "history": [BatchControlHistory],
      "initials": "abc123",
      "initialsSettings": "REQUIRED_IF_OUTSIDE_LIMITS",
      "originalControl": OriginalControlDetails,
      "status": "CANCELED",
      "timeControlUpdated": "2007-12-03",
      "timeControlled": "2007-12-03",
      "timeTriggered": "2007-12-03",
      "title": "abc123",
      "trigger": ControlTrigger
    }
  }
}

modifyStopCause

Response

Returns [StopCauseCategory!]

Arguments
Name Description
deviceOwner - ID
peripheralId - ID
stopCauseId - ID!
languageCode - String
newName - String
newDescription - String
newMeta - [StopCauseMetaInput!]
newRequireInitials - Boolean
newRequireComment - Boolean
newStopType - StopType
newStopCauseCategory - NewStopCauseCategory
newTargetSetup - TargetSetupInput
newEnableCountermeasure - Boolean

Example

Query
mutation ModifyStopCause(
  $deviceOwner: ID,
  $peripheralId: ID,
  $stopCauseId: ID!,
  $languageCode: String,
  $newName: String,
  $newDescription: String,
  $newMeta: [StopCauseMetaInput!],
  $newRequireInitials: Boolean,
  $newRequireComment: Boolean,
  $newStopType: StopType,
  $newStopCauseCategory: NewStopCauseCategory,
  $newTargetSetup: TargetSetupInput,
  $newEnableCountermeasure: Boolean
) {
  modifyStopCause(
    deviceOwner: $deviceOwner,
    peripheralId: $peripheralId,
    stopCauseId: $stopCauseId,
    languageCode: $languageCode,
    newName: $newName,
    newDescription: $newDescription,
    newMeta: $newMeta,
    newRequireInitials: $newRequireInitials,
    newRequireComment: $newRequireComment,
    newStopType: $newStopType,
    newStopCauseCategory: $newStopCauseCategory,
    newTargetSetup: $newTargetSetup,
    newEnableCountermeasure: $newEnableCountermeasure
  ) {
    _id
    id
    ownerType
    order
    name
    meta {
      name
      languageCode
    }
    languageCode
    deleted
    stopCauses {
      _id
      id
      stopType
      categoryId
      categoryName
      name
      description
      meta {
        ...StopCauseMetaFragment
      }
      order
      requireInitials
      requireComment
      deleted
      languageCode
      legacyStopCauseId
      targetSetup {
        ...TargetSetupFragment
      }
      enableCountermeasure
    }
    legacyCategoryId
  }
}
Variables
{
  "deviceOwner": 4,
  "peripheralId": "4",
  "stopCauseId": "4",
  "languageCode": "abc123",
  "newName": "abc123",
  "newDescription": "abc123",
  "newMeta": [StopCauseMetaInput],
  "newRequireInitials": false,
  "newRequireComment": true,
  "newStopType": "NO_ACT",
  "newStopCauseCategory": NewStopCauseCategory,
  "newTargetSetup": TargetSetupInput,
  "newEnableCountermeasure": false
}
Response
{
  "data": {
    "modifyStopCause": [
      {
        "_id": "4",
        "id": 4,
        "ownerType": "SENSOR",
        "order": 123,
        "name": "xyz789",
        "meta": [StopCauseCategoryMeta],
        "languageCode": "abc123",
        "deleted": true,
        "stopCauses": [StopCause],
        "legacyCategoryId": "4"
      }
    ]
  }
}

modifyStopCauseCategory

Response

Returns [StopCauseCategory!]

Arguments
Name Description
deviceOwner - ID
peripheralId - ID
stopCauseCategoryId - ID!
languageCode - String
newName - String
newMeta - [StopCauseCategoryMetaInput!]

Example

Query
mutation ModifyStopCauseCategory(
  $deviceOwner: ID,
  $peripheralId: ID,
  $stopCauseCategoryId: ID!,
  $languageCode: String,
  $newName: String,
  $newMeta: [StopCauseCategoryMetaInput!]
) {
  modifyStopCauseCategory(
    deviceOwner: $deviceOwner,
    peripheralId: $peripheralId,
    stopCauseCategoryId: $stopCauseCategoryId,
    languageCode: $languageCode,
    newName: $newName,
    newMeta: $newMeta
  ) {
    _id
    id
    ownerType
    order
    name
    meta {
      name
      languageCode
    }
    languageCode
    deleted
    stopCauses {
      _id
      id
      stopType
      categoryId
      categoryName
      name
      description
      meta {
        ...StopCauseMetaFragment
      }
      order
      requireInitials
      requireComment
      deleted
      languageCode
      legacyStopCauseId
      targetSetup {
        ...TargetSetupFragment
      }
      enableCountermeasure
    }
    legacyCategoryId
  }
}
Variables
{
  "deviceOwner": "4",
  "peripheralId": 4,
  "stopCauseCategoryId": 4,
  "languageCode": "abc123",
  "newName": "xyz789",
  "newMeta": [StopCauseCategoryMetaInput]
}
Response
{
  "data": {
    "modifyStopCauseCategory": [
      {
        "_id": 4,
        "id": 4,
        "ownerType": "SENSOR",
        "order": 987,
        "name": "xyz789",
        "meta": [StopCauseCategoryMeta],
        "languageCode": "abc123",
        "deleted": true,
        "stopCauses": [StopCause],
        "legacyCategoryId": 4
      }
    ]
  }
}

moveHierarchyNode

Response

Returns a HierarchyNode!

Arguments
Name Description
nodeId - NodeId!
newParentId - NodeId!

Example

Query
mutation MoveHierarchyNode(
  $nodeId: NodeId!,
  $newParentId: NodeId!
) {
  moveHierarchyNode(
    nodeId: $nodeId,
    newParentId: $newParentId
  ) {
    id
    version
    meta {
      ... on LineNodeMeta {
        ...LineNodeMetaFragment
      }
      ... on DirectoryNodeMeta {
        ...DirectoryNodeMetaFragment
      }
      ... on PeripheralNodeMeta {
        ...PeripheralNodeMetaFragment
      }
      ... on AssetNodeMeta {
        ...AssetNodeMetaFragment
      }
    }
    type
    descendants {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...HierarchyNodeEdgeFragment
      }
      nodes {
        ...HierarchyNodeFragment
      }
    }
    ancestors {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
    childrenCount
  }
}
Variables
{
  "nodeId": NodeId,
  "newParentId": NodeId
}
Response
{
  "data": {
    "moveHierarchyNode": {
      "id": NodeId,
      "version": 123,
      "meta": LineNodeMeta,
      "type": "LINE",
      "descendants": HierarchyNodeConnection,
      "ancestors": [HierarchyNode],
      "childrenCount": 123
    }
  }
}

processCompletedBatch

Internal use only
Description

Process a completed batch, saving it as a pending golden batch if 1) there is no current golden batch, or 2) it scores higher than the current golden batch. Returns the completed batch if it was saved.

Response

Returns a GoldenBatch

Arguments
Name Description
lineId - ID!
productId - ID!
completedBatchId - ID!

Example

Query
mutation ProcessCompletedBatch(
  $lineId: ID!,
  $productId: ID!,
  $completedBatchId: ID!
) {
  processCompletedBatch(
    lineId: $lineId,
    productId: $productId,
    completedBatchId: $completedBatchId
  ) {
    batchId
    lineId
    productId
    oee1
    state
    acceptedAt
  }
}
Variables
{
  "lineId": "4",
  "productId": 4,
  "completedBatchId": "4"
}
Response
{
  "data": {
    "processCompletedBatch": {
      "batchId": 4,
      "lineId": "4",
      "productId": 4,
      "oee1": 987.65,
      "state": "xyz789",
      "acceptedAt": "2007-12-03T10:15:30Z"
    }
  }
}

publishData

Response

Returns a Boolean!

Arguments
Name Description
input - PublishDataInput!

Example

Query
mutation PublishData($input: PublishDataInput!) {
  publishData(input: $input)
}
Variables
{"input": PublishDataInput}
Response
{"data": {"publishData": false}}

registerStop

Response

Returns [Stop!]!

Arguments
Name Description
deviceOwner - ID
peripheralId - ID!
time - [Time!]!
stopCauseId - ID
comment - String
initials - String
target - TargetInput
standalone - StandaloneConfigurationInput
countermeasure - String
countermeasureInitials - String

Example

Query
mutation RegisterStop(
  $deviceOwner: ID,
  $peripheralId: ID!,
  $time: [Time!]!,
  $stopCauseId: ID,
  $comment: String,
  $initials: String,
  $target: TargetInput,
  $standalone: StandaloneConfigurationInput,
  $countermeasure: String,
  $countermeasureInitials: String
) {
  registerStop(
    deviceOwner: $deviceOwner,
    peripheralId: $peripheralId,
    time: $time,
    stopCauseId: $stopCauseId,
    comment: $comment,
    initials: $initials,
    target: $target,
    standalone: $standalone,
    countermeasure: $countermeasure,
    countermeasureInitials: $countermeasureInitials
  ) {
    _id
    timeRange {
      from
      to
    }
    originalStart
    ongoing
    duration
    stopCause {
      _id
      id
      stopType
      categoryId
      categoryName
      name
      description
      meta {
        ...StopCauseMetaFragment
      }
      order
      requireInitials
      requireComment
      deleted
      languageCode
      legacyStopCauseId
      targetSetup {
        ...TargetSetupFragment
      }
      enableCountermeasure
    }
    comment
    initials
    registeredTime
    isMicroStop
    isAutomaticRegistration
    standalone {
      excludeProduction
    }
    target {
      previousBatch
      nextBatch
      currentShift
      target
    }
    countermeasure
    countermeasureInitials
  }
}
Variables
{
  "deviceOwner": "4",
  "peripheralId": "4",
  "time": [Time],
  "stopCauseId": 4,
  "comment": "abc123",
  "initials": "xyz789",
  "target": TargetInput,
  "standalone": StandaloneConfigurationInput,
  "countermeasure": "xyz789",
  "countermeasureInitials": "xyz789"
}
Response
{
  "data": {
    "registerStop": [
      {
        "_id": 4,
        "timeRange": TimeRange,
        "originalStart": "2007-12-03",
        "ongoing": false,
        "duration": 987.65,
        "stopCause": StopCause,
        "comment": "abc123",
        "initials": "abc123",
        "registeredTime": "2007-12-03",
        "isMicroStop": true,
        "isAutomaticRegistration": false,
        "standalone": StandaloneConfiguration,
        "target": Target,
        "countermeasure": "abc123",
        "countermeasureInitials": "xyz789"
      }
    ]
  }
}

removeAppClientFromGroups

Response

Returns an AppClient

Arguments
Name Description
id - ID!
groupIds - [ID!]!

Example

Query
mutation RemoveAppClientFromGroups(
  $id: ID!,
  $groupIds: [ID!]!
) {
  removeAppClientFromGroups(
    id: $id,
    groupIds: $groupIds
  ) {
    id
    name
    groups {
      id
      defaultGroup
      externalIds
      peripheralIds
      lineIds
      owner {
        ...CompanyFragment
      }
      name
      description
      nodeId
      role {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      sensors {
        ...SensorFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralsPaginated {
        ...PeripheralsPaginatedFragment
      }
      lines {
        ...LineFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
    }
  }
}
Variables
{"id": 4, "groupIds": [4]}
Response
{
  "data": {
    "removeAppClientFromGroups": {
      "id": "4",
      "name": "xyz789",
      "groups": [Group]
    }
  }
}

removeHorizontalAnnotation

Description

Remove a horizontal reference line annotation from equipment charts.

Response

Returns a Boolean!

Arguments
Name Description
peripheralId - ID!
horizontalAnnotationId - ID!

Example

Query
mutation RemoveHorizontalAnnotation(
  $peripheralId: ID!,
  $horizontalAnnotationId: ID!
) {
  removeHorizontalAnnotation(
    peripheralId: $peripheralId,
    horizontalAnnotationId: $horizontalAnnotationId
  )
}
Variables
{
  "peripheralId": "4",
  "horizontalAnnotationId": "4"
}
Response
{"data": {"removeHorizontalAnnotation": true}}

removeLineFromGroups

Response

Returns an ID

Arguments
Name Description
companyId - ID
lineId - ID!
groupIds - [ID!]!

Example

Query
mutation RemoveLineFromGroups(
  $companyId: ID,
  $lineId: ID!,
  $groupIds: [ID!]!
) {
  removeLineFromGroups(
    companyId: $companyId,
    lineId: $lineId,
    groupIds: $groupIds
  )
}
Variables
{
  "companyId": 4,
  "lineId": "4",
  "groupIds": ["4"]
}
Response
{"data": {"removeLineFromGroups": "4"}}

removePeripheralFromGroups

Response

Returns an ID

Arguments
Name Description
companyId - ID
peripheralId - ID!
groupIds - [ID!]!

Example

Query
mutation RemovePeripheralFromGroups(
  $companyId: ID,
  $peripheralId: ID!,
  $groupIds: [ID!]!
) {
  removePeripheralFromGroups(
    companyId: $companyId,
    peripheralId: $peripheralId,
    groupIds: $groupIds
  )
}
Variables
{
  "companyId": "4",
  "peripheralId": 4,
  "groupIds": [4]
}
Response
{"data": {"removePeripheralFromGroups": 4}}

removeUserFromGroups

Response

Returns a User

Arguments
Name Description
companyId - ID
userId - ID!
groupIds - [ID!]!

Example

Query
mutation RemoveUserFromGroups(
  $companyId: ID,
  $userId: ID!,
  $groupIds: [ID!]!
) {
  removeUserFromGroups(
    companyId: $companyId,
    userId: $userId,
    groupIds: $groupIds
  ) {
    company {
      id
      name
      groups {
        ...GroupFragment
      }
      roles {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      group {
        ...GroupFragment
      }
      appClients {
        ...AppClientFragment
      }
      trialStatus {
        ...TrialStatusFragment
      }
      authConfiguration {
        ...AuthConfigurationFragment
      }
      factoryOverviewSettings {
        ...FactoryOverviewSettingsFragment
      }
    }
    username
    enabled
    userStatus
    userCreateDate
    userLastModifiedDate
    sub
    email
    givenName
    familyName
    emailVerified
    groups {
      id
      defaultGroup
      externalIds
      peripheralIds
      lineIds
      owner {
        ...CompanyFragment
      }
      name
      description
      nodeId
      role {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      sensors {
        ...SensorFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralsPaginated {
        ...PeripheralsPaginatedFragment
      }
      lines {
        ...LineFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
    }
    locationRoles {
      roleId
      locationId
    }
    devices {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
    lines {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    linesPaginated {
      items {
        ...LineFragment
      }
      nextOffset
      total
    }
    skills {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserSkillEdgeFragment
      }
      nodes {
        ...UserSkillFragment
      }
    }
    learningRoles {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserLearningRoleEdgeFragment
      }
      nodes {
        ...UserLearningRoleFragment
      }
    }
    learningActivities {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserLearningActivityEdgeFragment
      }
      nodes {
        ...UserLearningActivityFragment
      }
    }
    sessions {
      generatedAt
      expiresAt
      userSub
    }
  }
}
Variables
{
  "companyId": 4,
  "userId": "4",
  "groupIds": [4]
}
Response
{
  "data": {
    "removeUserFromGroups": {
      "company": Company,
      "username": "xyz789",
      "enabled": true,
      "userStatus": "abc123",
      "userCreateDate": "2007-12-03",
      "userLastModifiedDate": "2007-12-03",
      "sub": "xyz789",
      "email": "xyz789",
      "givenName": "xyz789",
      "familyName": "xyz789",
      "emailVerified": "abc123",
      "groups": [Group],
      "locationRoles": [LocationRole],
      "devices": [Device],
      "lines": [Line],
      "linesPaginated": LinesPaginated,
      "skills": UserSkillConnection,
      "learningRoles": UserLearningRoleConnection,
      "learningActivities": UserLearningActivityConnection,
      "sessions": [Session]
    }
  }
}

removeVerticalAnnotation

Description

Remove a vertical time-based annotation from equipment timeline.

Response

Returns a Boolean!

Arguments
Name Description
peripheralId - ID!
timestamp - Date
verticalAnnotationId - ID!

Example

Query
mutation RemoveVerticalAnnotation(
  $peripheralId: ID!,
  $timestamp: Date,
  $verticalAnnotationId: ID!
) {
  removeVerticalAnnotation(
    peripheralId: $peripheralId,
    timestamp: $timestamp,
    verticalAnnotationId: $verticalAnnotationId
  )
}
Variables
{
  "peripheralId": 4,
  "timestamp": "2007-12-03",
  "verticalAnnotationId": 4
}
Response
{"data": {"removeVerticalAnnotation": true}}

replaceDevice

Response

Returns a Boolean!

Arguments
Name Description
input - ReplaceDeviceInput!

Example

Query
mutation ReplaceDevice($input: ReplaceDeviceInput!) {
  replaceDevice(input: $input)
}
Variables
{"input": ReplaceDeviceInput}
Response
{"data": {"replaceDevice": true}}

replacePeripherals

Response

Returns a Boolean!

Arguments
Name Description
input - ReplacePeripheralsInput!

Example

Query
mutation ReplacePeripherals($input: ReplacePeripheralsInput!) {
  replacePeripherals(input: $input)
}
Variables
{"input": ReplacePeripheralsInput}
Response
{"data": {"replacePeripherals": true}}

resetUserPassword

Response

Returns a UserSub

Arguments
Name Description
companyId - ID
username - String!

Example

Query
mutation ResetUserPassword(
  $companyId: ID,
  $username: String!
) {
  resetUserPassword(
    companyId: $companyId,
    username: $username
  ) {
    sub
    username
  }
}
Variables
{"companyId": 4, "username": "abc123"}
Response
{
  "data": {
    "resetUserPassword": {
      "sub": "abc123",
      "username": "xyz789"
    }
  }
}

respondAssistantConversationAsync

Internal use only
Description

Add a human response to an AI assistant conversation Use assistant_conversation to get updates on the conversation.

Response

Returns an AssistantConversation!

Arguments
Name Description
conversationId - UUID!
text - String!
messageContext - MessageContext
timeZone - String

Example

Query
mutation RespondAssistantConversationAsync(
  $conversationId: UUID!,
  $text: String!,
  $messageContext: MessageContext,
  $timeZone: String
) {
  respondAssistantConversationAsync(
    conversationId: $conversationId,
    text: $text,
    messageContext: $messageContext,
    timeZone: $timeZone
  ) {
    id
    messages {
      role
      messageId
      status
      content {
        ... on ConversationContentText {
          ...ConversationContentTextFragment
        }
        ... on ConversationContentVisualizationOptions {
          ...ConversationContentVisualizationOptionsFragment
        }
      }
    }
  }
}
Variables
{
  "conversationId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "text": "xyz789",
  "messageContext": MessageContext,
  "timeZone": "xyz789"
}
Response
{
  "data": {
    "respondAssistantConversationAsync": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "messages": [ConversationMessage]
    }
  }
}

revokeAPIToken

Description

Revoke a specific API token if permitted to do so.

Response

Returns a Boolean!

Arguments
Name Description
input - RevokeAPITokenInput!

Example

Query
mutation RevokeAPIToken($input: RevokeAPITokenInput!) {
  revokeAPIToken(input: $input)
}
Variables
{"input": RevokeAPITokenInput}
Response
{"data": {"revokeAPIToken": false}}

sendActionPlansReminder

Response

Returns an ActionPlansSentReminderResponse!

Arguments
Name Description
escalationId - String!

Example

Query
mutation SendActionPlansReminder($escalationId: String!) {
  sendActionPlansReminder(escalationId: $escalationId) {
    email
  }
}
Variables
{"escalationId": "xyz789"}
Response
{
  "data": {
    "sendActionPlansReminder": {
      "email": "xyz789"
    }
  }
}

setStopCauseCategoryOrder

Response

Returns [StopCauseCategory!]

Arguments
Name Description
deviceOwner - ID
peripheralId - ID
stopCauseCategoryIdsInOrder - [ID!]!

Example

Query
mutation SetStopCauseCategoryOrder(
  $deviceOwner: ID,
  $peripheralId: ID,
  $stopCauseCategoryIdsInOrder: [ID!]!
) {
  setStopCauseCategoryOrder(
    deviceOwner: $deviceOwner,
    peripheralId: $peripheralId,
    stopCauseCategoryIdsInOrder: $stopCauseCategoryIdsInOrder
  ) {
    _id
    id
    ownerType
    order
    name
    meta {
      name
      languageCode
    }
    languageCode
    deleted
    stopCauses {
      _id
      id
      stopType
      categoryId
      categoryName
      name
      description
      meta {
        ...StopCauseMetaFragment
      }
      order
      requireInitials
      requireComment
      deleted
      languageCode
      legacyStopCauseId
      targetSetup {
        ...TargetSetupFragment
      }
      enableCountermeasure
    }
    legacyCategoryId
  }
}
Variables
{
  "deviceOwner": "4",
  "peripheralId": 4,
  "stopCauseCategoryIdsInOrder": ["4"]
}
Response
{
  "data": {
    "setStopCauseCategoryOrder": [
      {
        "_id": 4,
        "id": 4,
        "ownerType": "SENSOR",
        "order": 987,
        "name": "abc123",
        "meta": [StopCauseCategoryMeta],
        "languageCode": "abc123",
        "deleted": false,
        "stopCauses": [StopCause],
        "legacyCategoryId": "4"
      }
    ]
  }
}

setStopCauseOrder

Response

Returns [StopCauseCategory!]

Arguments
Name Description
deviceOwner - ID
peripheralId - ID
stopCauseCategoryId - ID!
stopCauseIdsInOrder - [ID!]!

Example

Query
mutation SetStopCauseOrder(
  $deviceOwner: ID,
  $peripheralId: ID,
  $stopCauseCategoryId: ID!,
  $stopCauseIdsInOrder: [ID!]!
) {
  setStopCauseOrder(
    deviceOwner: $deviceOwner,
    peripheralId: $peripheralId,
    stopCauseCategoryId: $stopCauseCategoryId,
    stopCauseIdsInOrder: $stopCauseIdsInOrder
  ) {
    _id
    id
    ownerType
    order
    name
    meta {
      name
      languageCode
    }
    languageCode
    deleted
    stopCauses {
      _id
      id
      stopType
      categoryId
      categoryName
      name
      description
      meta {
        ...StopCauseMetaFragment
      }
      order
      requireInitials
      requireComment
      deleted
      languageCode
      legacyStopCauseId
      targetSetup {
        ...TargetSetupFragment
      }
      enableCountermeasure
    }
    legacyCategoryId
  }
}
Variables
{
  "deviceOwner": 4,
  "peripheralId": 4,
  "stopCauseCategoryId": "4",
  "stopCauseIdsInOrder": [4]
}
Response
{
  "data": {
    "setStopCauseOrder": [
      {
        "_id": 4,
        "id": "4",
        "ownerType": "SENSOR",
        "order": 123,
        "name": "abc123",
        "meta": [StopCauseCategoryMeta],
        "languageCode": "abc123",
        "deleted": true,
        "stopCauses": [StopCause],
        "legacyCategoryId": 4
      }
    ]
  }
}

skipAllPendingActivities

Internal use only
Response

Returns a Boolean!

Arguments
Name Description
locationId - NodeId!

Example

Query
mutation SkipAllPendingActivities($locationId: NodeId!) {
  skipAllPendingActivities(locationId: $locationId)
}
Variables
{"locationId": NodeId}
Response
{"data": {"skipAllPendingActivities": true}}

snoozeAlarm

Response

Returns an Int!

Arguments
Name Description
peripheralId - ID!
alarmId - ID!

Example

Query
mutation SnoozeAlarm(
  $peripheralId: ID!,
  $alarmId: ID!
) {
  snoozeAlarm(
    peripheralId: $peripheralId,
    alarmId: $alarmId
  )
}
Variables
{
  "peripheralId": "4",
  "alarmId": "4"
}
Response
{"data": {"snoozeAlarm": 123}}

startBatchByBatchNumber

Description

Start a batch by its batch number and optionally set the time and forcefully stop a batch if one is running already.

Response

Returns a Batch!

Arguments
Name Description
input - StartBatchByBatchNumberInput!

Example

Query
mutation StartBatchByBatchNumber($input: StartBatchByBatchNumberInput!) {
  startBatchByBatchNumber(input: $input) {
    actualStart
    actualStop
    amount
    batchId
    batchNumber
    comment
    lineId
    manualScrap
    plannedStart
    produced
    product {
      productId
      name
      itemNumber
      validatedLineSpeed
      expectedAverageSpeed
      comment
      lineId
      dataMultiplier
      packaging {
        ...PackagingFragment
      }
      overwrittenByBatch
      parameters {
        ...ParameterFragment
      }
      attachedControlReceipts {
        ...ControlReceiptFragment
      }
    }
    sorting
    state
    tags
    controls {
      batchControlId
      batchId
      comment
      controlReceiptId
      controlReceiptName
      entryId
      fieldValues {
        ...BatchControlFieldValueFragment
      }
      followUp {
        ...FollowUpSettingsFragment
      }
      history {
        ...BatchControlHistoryFragment
      }
      initials
      initialsSettings
      originalControl {
        ...OriginalControlDetailsFragment
      }
      status
      timeControlUpdated
      timeControlled
      timeTriggered
      title
      trigger {
        ...ControlTriggerFragment
      }
    }
    samples {
      data {
        ...SampleDataFragment
      }
      timeRange {
        ...TimeRangeFragment
      }
    }
    stops {
      _id
      timeRange {
        ...TimeRangeFragment
      }
      originalStart
      ongoing
      duration
      stopCause {
        ...StopCauseFragment
      }
      comment
      initials
      registeredTime
      isMicroStop
      isAutomaticRegistration
      standalone {
        ...StandaloneConfigurationFragment
      }
      target {
        ...TargetFragment
      }
      countermeasure
      countermeasureInitials
    }
    stopStats {
      longestNonStop
      lastStop {
        ...StopFragment
      }
      stopCauseStats {
        ...StopCauseStatFragment
      }
    }
    stats {
      timeRange {
        ...TimeRangeFragment
      }
      data {
        ...DataFragment
      }
    }
    scrap {
      data {
        ...SampleDataFragment
      }
      timeRange {
        ...TimeRangeFragment
      }
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    plannedEtc
    actualEtc
  }
}
Variables
{"input": StartBatchByBatchNumberInput}
Response
{
  "data": {
    "startBatchByBatchNumber": {
      "actualStart": "2007-12-03",
      "actualStop": "2007-12-03",
      "amount": 123.45,
      "batchId": "4",
      "batchNumber": "abc123",
      "comment": "xyz789",
      "lineId": 4,
      "manualScrap": 123.45,
      "plannedStart": "2007-12-03",
      "produced": 987.65,
      "product": Product,
      "sorting": "abc123",
      "state": "COMPLETED",
      "tags": ["xyz789"],
      "controls": [BatchControl],
      "samples": [Sample],
      "stops": [Stop],
      "stopStats": StopStats,
      "stats": Stat,
      "scrap": [Sample],
      "createdBy": User,
      "line": Line,
      "plannedEtc": "2007-12-03",
      "actualEtc": "2007-12-03"
    }
  }
}

stopBatchByBatchNumber

Description

Stop a batch by its batch number

Response

Returns a Batch!

Arguments
Name Description
input - StopBatchByBatchNumberInput!

Example

Query
mutation StopBatchByBatchNumber($input: StopBatchByBatchNumberInput!) {
  stopBatchByBatchNumber(input: $input) {
    actualStart
    actualStop
    amount
    batchId
    batchNumber
    comment
    lineId
    manualScrap
    plannedStart
    produced
    product {
      productId
      name
      itemNumber
      validatedLineSpeed
      expectedAverageSpeed
      comment
      lineId
      dataMultiplier
      packaging {
        ...PackagingFragment
      }
      overwrittenByBatch
      parameters {
        ...ParameterFragment
      }
      attachedControlReceipts {
        ...ControlReceiptFragment
      }
    }
    sorting
    state
    tags
    controls {
      batchControlId
      batchId
      comment
      controlReceiptId
      controlReceiptName
      entryId
      fieldValues {
        ...BatchControlFieldValueFragment
      }
      followUp {
        ...FollowUpSettingsFragment
      }
      history {
        ...BatchControlHistoryFragment
      }
      initials
      initialsSettings
      originalControl {
        ...OriginalControlDetailsFragment
      }
      status
      timeControlUpdated
      timeControlled
      timeTriggered
      title
      trigger {
        ...ControlTriggerFragment
      }
    }
    samples {
      data {
        ...SampleDataFragment
      }
      timeRange {
        ...TimeRangeFragment
      }
    }
    stops {
      _id
      timeRange {
        ...TimeRangeFragment
      }
      originalStart
      ongoing
      duration
      stopCause {
        ...StopCauseFragment
      }
      comment
      initials
      registeredTime
      isMicroStop
      isAutomaticRegistration
      standalone {
        ...StandaloneConfigurationFragment
      }
      target {
        ...TargetFragment
      }
      countermeasure
      countermeasureInitials
    }
    stopStats {
      longestNonStop
      lastStop {
        ...StopFragment
      }
      stopCauseStats {
        ...StopCauseStatFragment
      }
    }
    stats {
      timeRange {
        ...TimeRangeFragment
      }
      data {
        ...DataFragment
      }
    }
    scrap {
      data {
        ...SampleDataFragment
      }
      timeRange {
        ...TimeRangeFragment
      }
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    plannedEtc
    actualEtc
  }
}
Variables
{"input": StopBatchByBatchNumberInput}
Response
{
  "data": {
    "stopBatchByBatchNumber": {
      "actualStart": "2007-12-03",
      "actualStop": "2007-12-03",
      "amount": 987.65,
      "batchId": 4,
      "batchNumber": "xyz789",
      "comment": "abc123",
      "lineId": 4,
      "manualScrap": 987.65,
      "plannedStart": "2007-12-03",
      "produced": 987.65,
      "product": Product,
      "sorting": "xyz789",
      "state": "COMPLETED",
      "tags": ["abc123"],
      "controls": [BatchControl],
      "samples": [Sample],
      "stops": [Stop],
      "stopStats": StopStats,
      "stats": Stat,
      "scrap": [Sample],
      "createdBy": User,
      "line": Line,
      "plannedEtc": "2007-12-03",
      "actualEtc": "2007-12-03"
    }
  }
}

subscribeToWebPush

Description

Subscribes the current user to web push notifications

Response

Returns a Boolean!

Arguments
Name Description
subscription - WebPushSubscription!

Example

Query
mutation SubscribeToWebPush($subscription: WebPushSubscription!) {
  subscribeToWebPush(subscription: $subscription)
}
Variables
{"subscription": WebPushSubscription}
Response
{"data": {"subscribeToWebPush": false}}

swapPeripherals

Response

Returns a Boolean!

Arguments
Name Description
input - SwapPeripheralsInput!

Example

Query
mutation SwapPeripherals($input: SwapPeripheralsInput!) {
  swapPeripherals(input: $input)
}
Variables
{"input": SwapPeripheralsInput}
Response
{"data": {"swapPeripherals": true}}

translateAlarm

Response

Returns an Alarm!

Arguments
Name Description
peripheralId - ID!
alarmId - ID!
name - String!
description - String!
languageCode - String!

Example

Query
mutation TranslateAlarm(
  $peripheralId: ID!,
  $alarmId: ID!,
  $name: String!,
  $description: String!,
  $languageCode: String!
) {
  translateAlarm(
    peripheralId: $peripheralId,
    alarmId: $alarmId,
    name: $name,
    description: $description,
    languageCode: $languageCode
  ) {
    id
    name
    description
    peripheralId
    status
    threshold
    repeatNotification
    enabled
    type
    alarmConfiguration {
      x
      t
      y
      n
      stopType
    }
    languageCode
    snoozeDuration
    alarmLogs {
      lastEvaluatedKey {
        ...AlarmLogLastEvaluatedKeyFragment
      }
      entries {
        ...AlarmLogFragment
      }
    }
    subscribers {
      type
      languageCode
      value
    }
    timeRange {
      from
      to
    }
    peripheral {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
  }
}
Variables
{
  "peripheralId": "4",
  "alarmId": 4,
  "name": "xyz789",
  "description": "abc123",
  "languageCode": "xyz789"
}
Response
{
  "data": {
    "translateAlarm": {
      "id": 4,
      "name": "xyz789",
      "description": "xyz789",
      "peripheralId": "4",
      "status": "NORMAL",
      "threshold": 987,
      "repeatNotification": true,
      "enabled": false,
      "type": "AboveX",
      "alarmConfiguration": AlarmConfiguration,
      "languageCode": "abc123",
      "snoozeDuration": 123,
      "alarmLogs": AlarmLogs,
      "subscribers": [SubscriberOutput],
      "timeRange": TimeRange,
      "peripheral": Peripheral
    }
  }
}

updateActionPlan

Response

Returns an ActionPlan!

Arguments
Name Description
input - UpdateActionPlanInput!

Example

Query
mutation UpdateActionPlan($input: UpdateActionPlanInput!) {
  updateActionPlan(input: $input) {
    state
    title
    pdcaState
    followUpInterval
    followUpState
    dueDate
    linkedProductionData
    version
    category {
      id
      meta {
        ...ActionPlanCategoryMetaFragment
      }
      color
      version
      nodeId
    }
    content {
      column
      content
    }
    escalations {
      nodeId
      creationDate
      createdBySub
      assignedToSub
      priority
      version
      plan {
        ...ActionPlanFragment
      }
      id
      assignedTo {
        ...UserFragment
      }
      createdBy {
        ...UserFragment
      }
      node {
        ...HierarchyNodeFragment
      }
    }
    attachedFiles
    tasks {
      content
      checked
      version
      plan {
        ...ActionPlanFragment
      }
      id
    }
    id
  }
}
Variables
{"input": UpdateActionPlanInput}
Response
{
  "data": {
    "updateActionPlan": {
      "state": "OPEN",
      "title": "xyz789",
      "pdcaState": "PLAN",
      "followUpInterval": "DAILY",
      "followUpState": 987,
      "dueDate": "2007-12-03T10:15:30Z",
      "linkedProductionData": ["xyz789"],
      "version": 123,
      "category": ActionPlanCategory,
      "content": [ActionPlanContent],
      "escalations": [Escalation],
      "attachedFiles": ["abc123"],
      "tasks": [ActionPlanTask],
      "id": "xyz789"
    }
  }
}

updateActionPlanTask

Response

Returns an ActionPlanTask!

Arguments
Name Description
input - UpdateActionPlanTaskInput!

Example

Query
mutation UpdateActionPlanTask($input: UpdateActionPlanTaskInput!) {
  updateActionPlanTask(input: $input) {
    content
    checked
    version
    plan {
      state
      title
      pdcaState
      followUpInterval
      followUpState
      dueDate
      linkedProductionData
      version
      category {
        ...ActionPlanCategoryFragment
      }
      content {
        ...ActionPlanContentFragment
      }
      escalations {
        ...EscalationFragment
      }
      attachedFiles
      tasks {
        ...ActionPlanTaskFragment
      }
      id
    }
    id
  }
}
Variables
{"input": UpdateActionPlanTaskInput}
Response
{
  "data": {
    "updateActionPlanTask": {
      "content": "abc123",
      "checked": true,
      "version": 987,
      "plan": ActionPlan,
      "id": "xyz789"
    }
  }
}

updateActivity

Internal use only
Response

Returns an Activity!

Arguments
Name Description
id - ActivityId!
input - UpdateActivityInput!
version - Int!

Example

Query
mutation UpdateActivity(
  $id: ActivityId!,
  $input: UpdateActivityInput!,
  $version: Int!
) {
  updateActivity(
    id: $id,
    input: $input,
    version: $version
  ) {
    id
    status
    activityTemplate {
      id
      title
      description
      translations {
        ...ActivityTemplateTranslationFragment
      }
      customFormId
      customFormVersion
      triggers {
        ...TriggerFragment
      }
      expiresAfterMinutes
      locationIds
      version
      createdAt
      deletedAt
      versions {
        ...VersionedActivityTemplatesConnectionFragment
      }
      customForm {
        ...CustomFormFragment
      }
      tags {
        ...ActivityTagFragment
      }
    }
    trigger {
      id
      type {
        ...ActivityTriggerTypeFragment
      }
      conditions {
        ...TriggerConditionsFragment
      }
      isActive
    }
    customFormData {
      formId
      formVersion
      values {
        ...CustomFieldValueFragment
      }
      initials
      form {
        ...CustomFormFragment
      }
      schema
    }
    stopRegistration {
      start
      end
      comment
      initials
      stopCause {
        ...ActivityStopCauseFragment
      }
    }
    createdAt
    archivedAt
    version
    locationId
    isPassing
    batch {
      actualStart
      actualStop
      amount
      batchId
      batchNumber
      comment
      lineId
      manualScrap
      plannedStart
      produced
      product {
        ...ProductFragment
      }
      sorting
      state
      tags
      controls {
        ...BatchControlFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
      scrap {
        ...SampleFragment
      }
      createdBy {
        ...UserFragment
      }
      line {
        ...LineFragment
      }
      plannedEtc
      actualEtc
    }
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{
  "id": ActivityId,
  "input": UpdateActivityInput,
  "version": 123
}
Response
{
  "data": {
    "updateActivity": {
      "id": ActivityId,
      "status": "PENDING",
      "activityTemplate": ActivityTemplate,
      "trigger": Trigger,
      "customFormData": CustomFormData,
      "stopRegistration": ActivityStopRegistration,
      "createdAt": "2007-12-03T10:15:30Z",
      "archivedAt": "2007-12-03T10:15:30Z",
      "version": 987,
      "locationId": NodeId,
      "isPassing": false,
      "batch": Batch,
      "line": Line
    }
  }
}

updateActivityTag

Internal use only
Response

Returns an ActivityTag!

Arguments
Name Description
id - ActivityTagId!
input - ActivityTagInput!

Example

Query
mutation UpdateActivityTag(
  $id: ActivityTagId!,
  $input: ActivityTagInput!
) {
  updateActivityTag(
    id: $id,
    input: $input
  ) {
    id
    name
    createdAt
    modifiedAt
    deletedAt
    templateCount
  }
}
Variables
{
  "id": ActivityTagId,
  "input": ActivityTagInput
}
Response
{
  "data": {
    "updateActivityTag": {
      "id": ActivityTagId,
      "name": "xyz789",
      "createdAt": "2007-12-03T10:15:30Z",
      "modifiedAt": "2007-12-03T10:15:30Z",
      "deletedAt": "2007-12-03T10:15:30Z",
      "templateCount": 123
    }
  }
}

updateActivityTemplate

Internal use only
Response

Returns an ActivityTemplate!

Arguments
Name Description
id - ActivityTemplateId!
input - ActivityTemplateInput!
version - Int!

Example

Query
mutation UpdateActivityTemplate(
  $id: ActivityTemplateId!,
  $input: ActivityTemplateInput!,
  $version: Int!
) {
  updateActivityTemplate(
    id: $id,
    input: $input,
    version: $version
  ) {
    id
    title
    description
    translations {
      title
      description
      languageCode
    }
    customFormId
    customFormVersion
    triggers {
      id
      type {
        ...ActivityTriggerTypeFragment
      }
      conditions {
        ...TriggerConditionsFragment
      }
      isActive
    }
    expiresAfterMinutes
    locationIds
    version
    createdAt
    deletedAt
    versions {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...VersionedActivityTemplateEdgeFragment
      }
      nodes {
        ...ActivityTemplateFragment
      }
    }
    customForm {
      id
      title
      description
      translations {
        ...CustomFormTranslationFragment
      }
      fields {
        ...CustomFormFieldFragment
      }
      requireInitials
      version
      createdAt
      deletedAt
    }
    tags {
      id
      name
      createdAt
      modifiedAt
      deletedAt
      templateCount
    }
  }
}
Variables
{
  "id": ActivityTemplateId,
  "input": ActivityTemplateInput,
  "version": 987
}
Response
{
  "data": {
    "updateActivityTemplate": {
      "id": ActivityTemplateId,
      "title": "xyz789",
      "description": "xyz789",
      "translations": [ActivityTemplateTranslation],
      "customFormId": CustomFormId,
      "customFormVersion": 987,
      "triggers": [Trigger],
      "expiresAfterMinutes": 987,
      "locationIds": [NodeId],
      "version": 987,
      "createdAt": "2007-12-03T10:15:30Z",
      "deletedAt": "2007-12-03T10:15:30Z",
      "versions": VersionedActivityTemplatesConnection,
      "customForm": CustomForm,
      "tags": [ActivityTag]
    }
  }
}

updateAlarm

Response

Returns an Alarm!

Arguments
Name Description
peripheralId - ID!
alarmId - ID!
enabled - Boolean
name - String
description - String
threshold - Int
repeatNotification - Boolean
type - AlarmType
alarmConfiguration - AlarmConfigurationInput
languageCode - String
snoozeDuration - Int
subscribers - [SubscriberInput!]

Example

Query
mutation UpdateAlarm(
  $peripheralId: ID!,
  $alarmId: ID!,
  $enabled: Boolean,
  $name: String,
  $description: String,
  $threshold: Int,
  $repeatNotification: Boolean,
  $type: AlarmType,
  $alarmConfiguration: AlarmConfigurationInput,
  $languageCode: String,
  $snoozeDuration: Int,
  $subscribers: [SubscriberInput!]
) {
  updateAlarm(
    peripheralId: $peripheralId,
    alarmId: $alarmId,
    enabled: $enabled,
    name: $name,
    description: $description,
    threshold: $threshold,
    repeatNotification: $repeatNotification,
    type: $type,
    alarmConfiguration: $alarmConfiguration,
    languageCode: $languageCode,
    snoozeDuration: $snoozeDuration,
    subscribers: $subscribers
  ) {
    id
    name
    description
    peripheralId
    status
    threshold
    repeatNotification
    enabled
    type
    alarmConfiguration {
      x
      t
      y
      n
      stopType
    }
    languageCode
    snoozeDuration
    alarmLogs {
      lastEvaluatedKey {
        ...AlarmLogLastEvaluatedKeyFragment
      }
      entries {
        ...AlarmLogFragment
      }
    }
    subscribers {
      type
      languageCode
      value
    }
    timeRange {
      from
      to
    }
    peripheral {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
  }
}
Variables
{
  "peripheralId": 4,
  "alarmId": "4",
  "enabled": true,
  "name": "abc123",
  "description": "xyz789",
  "threshold": 123,
  "repeatNotification": false,
  "type": "AboveX",
  "alarmConfiguration": AlarmConfigurationInput,
  "languageCode": "abc123",
  "snoozeDuration": 987,
  "subscribers": [SubscriberInput]
}
Response
{
  "data": {
    "updateAlarm": {
      "id": 4,
      "name": "xyz789",
      "description": "abc123",
      "peripheralId": 4,
      "status": "NORMAL",
      "threshold": 123,
      "repeatNotification": false,
      "enabled": true,
      "type": "AboveX",
      "alarmConfiguration": AlarmConfiguration,
      "languageCode": "abc123",
      "snoozeDuration": 987,
      "alarmLogs": AlarmLogs,
      "subscribers": [SubscriberOutput],
      "timeRange": TimeRange,
      "peripheral": Peripheral
    }
  }
}

updateBatch

Response

Returns a Batch!

Arguments
Name Description
lineId - ID!
batchId - ID!
batchNumber - String
plannedStart - Date
actualStart - Date
actualStop - Date
amount - Float
manualScrap - Float
comment - String
productId - ID
dataMultiplier - Float
validatedLineSpeed - Float
expectedAverageSpeed - Float
forceStop - Boolean

Example

Query
mutation UpdateBatch(
  $lineId: ID!,
  $batchId: ID!,
  $batchNumber: String,
  $plannedStart: Date,
  $actualStart: Date,
  $actualStop: Date,
  $amount: Float,
  $manualScrap: Float,
  $comment: String,
  $productId: ID,
  $dataMultiplier: Float,
  $validatedLineSpeed: Float,
  $expectedAverageSpeed: Float,
  $forceStop: Boolean
) {
  updateBatch(
    lineId: $lineId,
    batchId: $batchId,
    batchNumber: $batchNumber,
    plannedStart: $plannedStart,
    actualStart: $actualStart,
    actualStop: $actualStop,
    amount: $amount,
    manualScrap: $manualScrap,
    comment: $comment,
    productId: $productId,
    dataMultiplier: $dataMultiplier,
    validatedLineSpeed: $validatedLineSpeed,
    expectedAverageSpeed: $expectedAverageSpeed,
    forceStop: $forceStop
  ) {
    actualStart
    actualStop
    amount
    batchId
    batchNumber
    comment
    lineId
    manualScrap
    plannedStart
    produced
    product {
      productId
      name
      itemNumber
      validatedLineSpeed
      expectedAverageSpeed
      comment
      lineId
      dataMultiplier
      packaging {
        ...PackagingFragment
      }
      overwrittenByBatch
      parameters {
        ...ParameterFragment
      }
      attachedControlReceipts {
        ...ControlReceiptFragment
      }
    }
    sorting
    state
    tags
    controls {
      batchControlId
      batchId
      comment
      controlReceiptId
      controlReceiptName
      entryId
      fieldValues {
        ...BatchControlFieldValueFragment
      }
      followUp {
        ...FollowUpSettingsFragment
      }
      history {
        ...BatchControlHistoryFragment
      }
      initials
      initialsSettings
      originalControl {
        ...OriginalControlDetailsFragment
      }
      status
      timeControlUpdated
      timeControlled
      timeTriggered
      title
      trigger {
        ...ControlTriggerFragment
      }
    }
    samples {
      data {
        ...SampleDataFragment
      }
      timeRange {
        ...TimeRangeFragment
      }
    }
    stops {
      _id
      timeRange {
        ...TimeRangeFragment
      }
      originalStart
      ongoing
      duration
      stopCause {
        ...StopCauseFragment
      }
      comment
      initials
      registeredTime
      isMicroStop
      isAutomaticRegistration
      standalone {
        ...StandaloneConfigurationFragment
      }
      target {
        ...TargetFragment
      }
      countermeasure
      countermeasureInitials
    }
    stopStats {
      longestNonStop
      lastStop {
        ...StopFragment
      }
      stopCauseStats {
        ...StopCauseStatFragment
      }
    }
    stats {
      timeRange {
        ...TimeRangeFragment
      }
      data {
        ...DataFragment
      }
    }
    scrap {
      data {
        ...SampleDataFragment
      }
      timeRange {
        ...TimeRangeFragment
      }
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    plannedEtc
    actualEtc
  }
}
Variables
{
  "lineId": 4,
  "batchId": "4",
  "batchNumber": "abc123",
  "plannedStart": "2007-12-03",
  "actualStart": "2007-12-03",
  "actualStop": "2007-12-03",
  "amount": 987.65,
  "manualScrap": 123.45,
  "comment": "xyz789",
  "productId": 4,
  "dataMultiplier": 123.45,
  "validatedLineSpeed": 987.65,
  "expectedAverageSpeed": 987.65,
  "forceStop": true
}
Response
{
  "data": {
    "updateBatch": {
      "actualStart": "2007-12-03",
      "actualStop": "2007-12-03",
      "amount": 987.65,
      "batchId": "4",
      "batchNumber": "abc123",
      "comment": "xyz789",
      "lineId": "4",
      "manualScrap": 123.45,
      "plannedStart": "2007-12-03",
      "produced": 987.65,
      "product": Product,
      "sorting": "abc123",
      "state": "COMPLETED",
      "tags": ["abc123"],
      "controls": [BatchControl],
      "samples": [Sample],
      "stops": [Stop],
      "stopStats": StopStats,
      "stats": Stat,
      "scrap": [Sample],
      "createdBy": User,
      "line": Line,
      "plannedEtc": "2007-12-03",
      "actualEtc": "2007-12-03"
    }
  }
}

updateBatchByBatchNumber

Description

Update a batch by its batch number

Response

Returns a Batch!

Arguments
Name Description
input - UpdateBatchByBatchNumberInput!

Example

Query
mutation UpdateBatchByBatchNumber($input: UpdateBatchByBatchNumberInput!) {
  updateBatchByBatchNumber(input: $input) {
    actualStart
    actualStop
    amount
    batchId
    batchNumber
    comment
    lineId
    manualScrap
    plannedStart
    produced
    product {
      productId
      name
      itemNumber
      validatedLineSpeed
      expectedAverageSpeed
      comment
      lineId
      dataMultiplier
      packaging {
        ...PackagingFragment
      }
      overwrittenByBatch
      parameters {
        ...ParameterFragment
      }
      attachedControlReceipts {
        ...ControlReceiptFragment
      }
    }
    sorting
    state
    tags
    controls {
      batchControlId
      batchId
      comment
      controlReceiptId
      controlReceiptName
      entryId
      fieldValues {
        ...BatchControlFieldValueFragment
      }
      followUp {
        ...FollowUpSettingsFragment
      }
      history {
        ...BatchControlHistoryFragment
      }
      initials
      initialsSettings
      originalControl {
        ...OriginalControlDetailsFragment
      }
      status
      timeControlUpdated
      timeControlled
      timeTriggered
      title
      trigger {
        ...ControlTriggerFragment
      }
    }
    samples {
      data {
        ...SampleDataFragment
      }
      timeRange {
        ...TimeRangeFragment
      }
    }
    stops {
      _id
      timeRange {
        ...TimeRangeFragment
      }
      originalStart
      ongoing
      duration
      stopCause {
        ...StopCauseFragment
      }
      comment
      initials
      registeredTime
      isMicroStop
      isAutomaticRegistration
      standalone {
        ...StandaloneConfigurationFragment
      }
      target {
        ...TargetFragment
      }
      countermeasure
      countermeasureInitials
    }
    stopStats {
      longestNonStop
      lastStop {
        ...StopFragment
      }
      stopCauseStats {
        ...StopCauseStatFragment
      }
    }
    stats {
      timeRange {
        ...TimeRangeFragment
      }
      data {
        ...DataFragment
      }
    }
    scrap {
      data {
        ...SampleDataFragment
      }
      timeRange {
        ...TimeRangeFragment
      }
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    plannedEtc
    actualEtc
  }
}
Variables
{"input": UpdateBatchByBatchNumberInput}
Response
{
  "data": {
    "updateBatchByBatchNumber": {
      "actualStart": "2007-12-03",
      "actualStop": "2007-12-03",
      "amount": 123.45,
      "batchId": 4,
      "batchNumber": "abc123",
      "comment": "abc123",
      "lineId": "4",
      "manualScrap": 123.45,
      "plannedStart": "2007-12-03",
      "produced": 123.45,
      "product": Product,
      "sorting": "xyz789",
      "state": "COMPLETED",
      "tags": ["xyz789"],
      "controls": [BatchControl],
      "samples": [Sample],
      "stops": [Stop],
      "stopStats": StopStats,
      "stats": Stat,
      "scrap": [Sample],
      "createdBy": User,
      "line": Line,
      "plannedEtc": "2007-12-03",
      "actualEtc": "2007-12-03"
    }
  }
}

updateBatchControl

Response

Returns a BatchControl!

Arguments
Name Description
lineId - ID!
batchId - ID!
controlId - ID!
fields - [BatchControlFieldInput!]
comment - String
initials - String

Example

Query
mutation UpdateBatchControl(
  $lineId: ID!,
  $batchId: ID!,
  $controlId: ID!,
  $fields: [BatchControlFieldInput!],
  $comment: String,
  $initials: String
) {
  updateBatchControl(
    lineId: $lineId,
    batchId: $batchId,
    controlId: $controlId,
    fields: $fields,
    comment: $comment,
    initials: $initials
  ) {
    batchControlId
    batchId
    comment
    controlReceiptId
    controlReceiptName
    entryId
    fieldValues {
      controlReceiptField {
        ...ControlReceiptEntryFieldFragment
      }
      value
    }
    followUp {
      enabled
      delayMs
    }
    history {
      comment
      fieldValues {
        ...BatchControlFieldValueFragment
      }
      initials
      status
      timeControlUpdated
      timeControlled
    }
    initials
    initialsSettings
    originalControl {
      controlId
      timeTriggered
    }
    status
    timeControlUpdated
    timeControlled
    timeTriggered
    title
    trigger {
      type
      payload {
        ...TimedTriggerPayloadFragment
      }
      delayWhenStopped
    }
  }
}
Variables
{
  "lineId": "4",
  "batchId": "4",
  "controlId": "4",
  "fields": [BatchControlFieldInput],
  "comment": "abc123",
  "initials": "xyz789"
}
Response
{
  "data": {
    "updateBatchControl": {
      "batchControlId": 4,
      "batchId": "4",
      "comment": "abc123",
      "controlReceiptId": "4",
      "controlReceiptName": "xyz789",
      "entryId": 4,
      "fieldValues": [BatchControlFieldValue],
      "followUp": FollowUpSettings,
      "history": [BatchControlHistory],
      "initials": "xyz789",
      "initialsSettings": "REQUIRED_IF_OUTSIDE_LIMITS",
      "originalControl": OriginalControlDetails,
      "status": "CANCELED",
      "timeControlUpdated": "2007-12-03",
      "timeControlled": "2007-12-03",
      "timeTriggered": "2007-12-03",
      "title": "abc123",
      "trigger": ControlTrigger
    }
  }
}

updateControlReceipt

Response

Returns a ControlReceipt!

Arguments
Name Description
userPoolId - ID
controlReceiptId - ID!
name - String
description - String
entries - [ControlReceiptEntryInput!]
updateRecipeAndPendingBatches - Boolean

Example

Query
mutation UpdateControlReceipt(
  $userPoolId: ID,
  $controlReceiptId: ID!,
  $name: String,
  $description: String,
  $entries: [ControlReceiptEntryInput!],
  $updateRecipeAndPendingBatches: Boolean
) {
  updateControlReceipt(
    userPoolId: $userPoolId,
    controlReceiptId: $controlReceiptId,
    name: $name,
    description: $description,
    entries: $entries,
    updateRecipeAndPendingBatches: $updateRecipeAndPendingBatches
  ) {
    controlReceiptId
    userPoolId
    name
    description
    entries {
      entryId
      title
      trigger {
        ...ControlTriggerFragment
      }
      followUp {
        ...FollowUpSettingsFragment
      }
      initialsSettings
      fields {
        ...ControlReceiptEntryFieldFragment
      }
    }
    deleted
    attachedProducts {
      productId
      name
      itemNumber
      validatedLineSpeed
      expectedAverageSpeed
      comment
      lineId
      dataMultiplier
      packaging {
        ...PackagingFragment
      }
      overwrittenByBatch
      parameters {
        ...ParameterFragment
      }
      attachedControlReceipts {
        ...ControlReceiptFragment
      }
    }
  }
}
Variables
{
  "userPoolId": 4,
  "controlReceiptId": "4",
  "name": "abc123",
  "description": "abc123",
  "entries": [ControlReceiptEntryInput],
  "updateRecipeAndPendingBatches": true
}
Response
{
  "data": {
    "updateControlReceipt": {
      "controlReceiptId": 4,
      "userPoolId": "4",
      "name": "abc123",
      "description": "xyz789",
      "entries": [ControlReceiptEntry],
      "deleted": false,
      "attachedProducts": [Product]
    }
  }
}

updateCustomForm

Internal use only
Response

Returns a CustomForm!

Arguments
Name Description
id - CustomFormId!
input - CustomFormInput!
version - Int!

Example

Query
mutation UpdateCustomForm(
  $id: CustomFormId!,
  $input: CustomFormInput!,
  $version: Int!
) {
  updateCustomForm(
    id: $id,
    input: $input,
    version: $version
  ) {
    id
    title
    description
    translations {
      title
      description
      languageCode
    }
    fields {
      id
      name
      description
      translations {
        ...CustomFormFieldTranslationFragment
      }
      fieldOptions {
        ...CustomFormFieldOptionsFragment
      }
    }
    requireInitials
    version
    createdAt
    deletedAt
  }
}
Variables
{
  "id": CustomFormId,
  "input": CustomFormInput,
  "version": 123
}
Response
{
  "data": {
    "updateCustomForm": {
      "id": CustomFormId,
      "title": "abc123",
      "description": "abc123",
      "translations": [CustomFormTranslation],
      "fields": [CustomFormField],
      "requireInitials": false,
      "version": 123,
      "createdAt": "2007-12-03T10:15:30Z",
      "deletedAt": "2007-12-03T10:15:30Z"
    }
  }
}

updateCustomizableReport

Internal use only
Description

Update an existing customizable report

Response

Returns a CustomizableReport!

Arguments
Name Description
id - UUID!
version - Int!
input - UpdateCustomizableReportInput!

Example

Query
mutation UpdateCustomizableReport(
  $id: UUID!,
  $version: Int!,
  $input: UpdateCustomizableReportInput!
) {
  updateCustomizableReport(
    id: $id,
    version: $version,
    input: $input
  ) {
    id
    title
    widgets {
      id
      type
      title
      parameters {
        ...WidgetParametersFragment
      }
      customConfig {
        ... on KpiWidgetCustomConfig {
          ...KpiWidgetCustomConfigFragment
        }
        ... on GaugeWidgetCustomConfig {
          ...GaugeWidgetCustomConfigFragment
        }
        ... on BarWidgetCustomConfig {
          ...BarWidgetCustomConfigFragment
        }
      }
    }
    widgetLayouts {
      widgetId
      rowIndex
      orderInRow
    }
    version
    currentUserAccessType
    createdBy
    createdAt
    updatedAt
  }
}
Variables
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "version": 123,
  "input": UpdateCustomizableReportInput
}
Response
{
  "data": {
    "updateCustomizableReport": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "title": "abc123",
      "widgets": [Widget],
      "widgetLayouts": [WidgetLayout],
      "version": 987,
      "currentUserAccessType": "VIEW",
      "createdBy": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

updateDevice

Response

Returns a Device!

Arguments
Name Description
uuid - ID
id - ID
meta - DeviceMetaInput

Example

Query
mutation UpdateDevice(
  $uuid: ID,
  $id: ID,
  $meta: DeviceMetaInput
) {
  updateDevice(
    uuid: $uuid,
    id: $id,
    meta: $meta
  ) {
    _id
    uuid
    owner
    type
    hardwareId
    name
    numInputPorts
    sensor {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
    status {
      firmwareVersions {
        ...FirmwareVersionsFragment
      }
      hardwareVersion
    }
    network {
      wifi {
        ...WiFiConfigShadowFragment
      }
      connection
      general {
        ...GeneralNetworkShadowSettingsFragment
      }
    }
    sensors {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
    peripheral {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    peripherals {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    peripheralPhysicalInput {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    peripheralPhysicalInputs {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    pendingJobExecutions {
      thingName
      jobId
      executionNumber
      lastUpdatedAt
      queuedAt
      retryAttempt
      startedAt
      status
      describeJobExecution {
        ...DescribeJobExecutionFragment
      }
    }
    updateAvailable
    certificates {
      id
      isActive
      createdAt
      validAt
      expiresAt
      subject
      issuer
    }
  }
}
Variables
{"uuid": 4, "id": 4, "meta": DeviceMetaInput}
Response
{
  "data": {
    "updateDevice": {
      "_id": 4,
      "uuid": "4",
      "owner": "4",
      "type": "xyz789",
      "hardwareId": "4",
      "name": "abc123",
      "numInputPorts": 987,
      "sensor": Sensor,
      "status": DeviceStatus,
      "network": NetworkConfig,
      "sensors": [Sensor],
      "peripheral": Peripheral,
      "peripherals": [Peripheral],
      "peripheralPhysicalInput": Peripheral,
      "peripheralPhysicalInputs": [Peripheral],
      "pendingJobExecutions": [JobExecutionSummary],
      "updateAvailable": true,
      "certificates": [Certificate]
    }
  }
}

updateDeviceNetworkSettings

Description

Update the device network settings.

`uuid' is deprecated and used to represent the allocated software identifier.

`id' refers to the hardware identifier of the device.

Response

Returns a Boolean!

Arguments
Name Description
uuid - ID
id - ID
input - GeneralNetworkSettingsInput!

Example

Query
mutation UpdateDeviceNetworkSettings(
  $uuid: ID,
  $id: ID,
  $input: GeneralNetworkSettingsInput!
) {
  updateDeviceNetworkSettings(
    uuid: $uuid,
    id: $id,
    input: $input
  )
}
Variables
{
  "uuid": "4",
  "id": 4,
  "input": GeneralNetworkSettingsInput
}
Response
{"data": {"updateDeviceNetworkSettings": false}}

updateEscalation

Response

Returns an Escalation!

Arguments
Name Description
input - UpdateEscalation!

Example

Query
mutation UpdateEscalation($input: UpdateEscalation!) {
  updateEscalation(input: $input) {
    nodeId
    creationDate
    createdBySub
    assignedToSub
    priority
    version
    plan {
      state
      title
      pdcaState
      followUpInterval
      followUpState
      dueDate
      linkedProductionData
      version
      category {
        ...ActionPlanCategoryFragment
      }
      content {
        ...ActionPlanContentFragment
      }
      escalations {
        ...EscalationFragment
      }
      attachedFiles
      tasks {
        ...ActionPlanTaskFragment
      }
      id
    }
    id
    assignedTo {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    node {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
  }
}
Variables
{"input": UpdateEscalation}
Response
{
  "data": {
    "updateEscalation": {
      "nodeId": "xyz789",
      "creationDate": "2007-12-03T10:15:30Z",
      "createdBySub": "xyz789",
      "assignedToSub": "abc123",
      "priority": true,
      "version": 987,
      "plan": ActionPlan,
      "id": "abc123",
      "assignedTo": User,
      "createdBy": User,
      "node": HierarchyNode
    }
  }
}

updateFactoryOverviewSettings

Internal use only
Response

Returns a FactoryOverviewSettings

Arguments
Name Description
input - UpdateFactoryOverviewSettingsInput!

Example

Query
mutation UpdateFactoryOverviewSettings($input: UpdateFactoryOverviewSettingsInput!) {
  updateFactoryOverviewSettings(input: $input) {
    oeeType
  }
}
Variables
{"input": UpdateFactoryOverviewSettingsInput}
Response
{"data": {"updateFactoryOverviewSettings": {"oeeType": "OEE1"}}}

updateGoldenBatchSettings

Internal use only
Description

Update the golden batch settings for the current user pool.

Response

Returns a GoldenBatchSettings!

Arguments
Name Description
input - UpdateGoldenBatchSettingsInput!

Example

Query
mutation UpdateGoldenBatchSettings($input: UpdateGoldenBatchSettingsInput!) {
  updateGoldenBatchSettings(input: $input) {
    timePeriodMonths
  }
}
Variables
{"input": UpdateGoldenBatchSettingsInput}
Response
{"data": {"updateGoldenBatchSettings": {"timePeriodMonths": 123}}}

updateGroup

Response

Returns a Group

Arguments
Name Description
companyId - ID
id - ID!
attributes - GroupAttributes!

Example

Query
mutation UpdateGroup(
  $companyId: ID,
  $id: ID!,
  $attributes: GroupAttributes!
) {
  updateGroup(
    companyId: $companyId,
    id: $id,
    attributes: $attributes
  ) {
    id
    defaultGroup
    externalIds
    peripheralIds
    lineIds
    owner {
      id
      name
      groups {
        ...GroupFragment
      }
      roles {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      group {
        ...GroupFragment
      }
      appClients {
        ...AppClientFragment
      }
      trialStatus {
        ...TrialStatusFragment
      }
      authConfiguration {
        ...AuthConfigurationFragment
      }
      factoryOverviewSettings {
        ...FactoryOverviewSettingsFragment
      }
    }
    name
    description
    nodeId
    role {
      id
      name
      type
      permissions {
        ...PermissionFragment
      }
    }
    users {
      pagination {
        ...TokenFragment
      }
      items {
        ...UserFragment
      }
    }
    sensors {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
    peripherals {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    peripheralsPaginated {
      items {
        ...PeripheralFragment
      }
      nextOffset
      total
    }
    lines {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    scheduledReports {
      id
      type
      entityId
      entityType
      name
      description
      enabled
      subscribers {
        ...ReportSubscriberFragment
      }
      trigger {
        ...ScheduledReportTriggerFragment
      }
      nextTriggerDate
      timezone
      stopFilter {
        ...ReportStopFilterFragment
      }
    }
  }
}
Variables
{
  "companyId": 4,
  "id": "4",
  "attributes": GroupAttributes
}
Response
{
  "data": {
    "updateGroup": {
      "id": "4",
      "defaultGroup": false,
      "externalIds": ["xyz789"],
      "peripheralIds": [4],
      "lineIds": [4],
      "owner": Company,
      "name": "xyz789",
      "description": "xyz789",
      "nodeId": "4",
      "role": Role,
      "users": UserList,
      "sensors": [Sensor],
      "peripherals": [Peripheral],
      "peripheralsPaginated": PeripheralsPaginated,
      "lines": [Line],
      "scheduledReports": [ScheduledReport]
    }
  }
}

updateLearningActivity

Internal use only
Response

Returns a LearningActivity!

Arguments
Name Description
input - UpdateLearningActivityInput!

Example

Query
mutation UpdateLearningActivity($input: UpdateLearningActivityInput!) {
  updateLearningActivity(input: $input) {
    id
    version
    nodeId
    title
    description
    content
    startEndDatesRequired
    validityInMonths
    createdAt
    updatedAt
    createdBySub
    updatedBySub
    node {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    updatedBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
  }
}
Variables
{"input": UpdateLearningActivityInput}
Response
{
  "data": {
    "updateLearningActivity": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "version": 123,
      "nodeId": "abc123",
      "title": "xyz789",
      "description": "abc123",
      "content": "xyz789",
      "startEndDatesRequired": true,
      "validityInMonths": 123,
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z",
      "createdBySub": "xyz789",
      "updatedBySub": "abc123",
      "node": HierarchyNode,
      "createdBy": User,
      "updatedBy": User
    }
  }
}

updateLearningRole

Internal use only
Response

Returns a LearningRole!

Arguments
Name Description
id - UUID!
input - UpdateLearningRoleInput!

Example

Query
mutation UpdateLearningRole(
  $id: UUID!,
  $input: UpdateLearningRoleInput!
) {
  updateLearningRole(
    id: $id,
    input: $input
  ) {
    id
    title
    description
    nodeId
    createdAt
    updatedAt
    createdBySub
    updatedBySub
    skills {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...LearningRoleSkillsEdgeFragment
      }
      nodes {
        ...LearningRoleSkillFragment
      }
    }
    node {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    updatedBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
  }
}
Variables
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "input": UpdateLearningRoleInput
}
Response
{
  "data": {
    "updateLearningRole": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "title": "abc123",
      "description": "abc123",
      "nodeId": "4",
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z",
      "createdBySub": "abc123",
      "updatedBySub": "xyz789",
      "skills": LearningRoleSkillsConnection,
      "node": HierarchyNode,
      "createdBy": User,
      "updatedBy": User
    }
  }
}

updateLine

Response

Returns a Line!

Arguments
Name Description
lineId - ID! The ID must be a valid LineId
name - String!
description - String
languageCode - String!

Example

Query
mutation UpdateLine(
  $lineId: ID!,
  $name: String!,
  $description: String,
  $languageCode: String!
) {
  updateLine(
    lineId: $lineId,
    name: $name,
    description: $description,
    languageCode: $languageCode
  ) {
    id
    languageCode
    owner
    location {
      timeZone
    }
    name
    description
    mainPeripheralId
    nodes {
      id
      type
      peripheralId
      position
      sensor {
        ...SensorFragment
      }
    }
    edges {
      from
      to
    }
    settings {
      oee {
        ...LineOEESettingsFragment
      }
      batch {
        ...LineBatchSettingsFragment
      }
    }
    goldenBatch {
      batchId
      lineId
      productId
      oee1
      state
      acceptedAt
    }
    bestPendingGoldenBatch {
      batchId
      lineId
      productId
      oee1
      state
      acceptedAt
    }
    time {
      configs {
        ...SensorConfigFragment
      }
      alarmLogs {
        ...AlarmLogsFragment
      }
      batches {
        ...BatchListFragment
      }
      dataOverrides {
        ...DataOverrideFragment
      }
      pendingControls {
        ...BatchControlListFragment
      }
      samples {
        ...SampleFragment
      }
      scrap {
        ...SampleFragment
      }
      shifts {
        ...ShiftInstanceFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
      changeoverStops {
        ...ChangeoverStopFragment
      }
      _id
      timeRange {
        ...TimeRangeFragment
      }
    }
    products {
      nextToken
      items {
        ...ProductFragment
      }
    }
    packagings {
      nextToken
      items {
        ...PackagingFragment
      }
    }
    batches {
      count
      items {
        ...BatchFragment
      }
      nextToken
      pages
    }
    batch {
      actualStart
      actualStop
      amount
      batchId
      batchNumber
      comment
      lineId
      manualScrap
      plannedStart
      produced
      product {
        ...ProductFragment
      }
      sorting
      state
      tags
      controls {
        ...BatchControlFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
      scrap {
        ...SampleFragment
      }
      createdBy {
        ...UserFragment
      }
      line {
        ...LineFragment
      }
      plannedEtc
      actualEtc
    }
    schedule {
      id
      lineId
      validFrom {
        ...ScheduleTimeFragment
      }
      validTo {
        ...ScheduleTimeFragment
      }
      shifts {
        ...ShiftFragment
      }
      weeklyTargets {
        ...TargetsFragment
      }
      configuration {
        ...ScheduleConfigurationFragment
      }
      isExceptionalWeek
      isFallbackSchedule
    }
    mainSensor {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
    scheduledReports {
      id
      type
      entityId
      entityType
      name
      description
      enabled
      subscribers {
        ...ReportSubscriberFragment
      }
      trigger {
        ...ScheduledReportTriggerFragment
      }
      nextTriggerDate
      timezone
      stopFilter {
        ...ReportStopFilterFragment
      }
    }
    andonSchedules {
      id
      name
      lineIds
      shifts {
        ...AndonShiftFragment
      }
      shift {
        ...AndonShiftFragment
      }
      lines {
        ...LineFragment
      }
    }
    nextShift {
      id
      from
      to
      name
      description
      shiftId
      scheduleEntry {
        ...ShiftFragment
      }
      batches {
        ...BatchListFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
    }
    scheduledEnd
    previousShift {
      id
      from
      to
      name
      description
      shiftId
      scheduleEntry {
        ...ShiftFragment
      }
      batches {
        ...BatchListFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
    }
    maintenanceWorkOrders {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...MaintenanceWorkOrderEdgeFragment
      }
      nodes {
        ...MaintenanceWorkOrderFragment
      }
    }
    groups {
      id
      defaultGroup
      externalIds
      peripheralIds
      lineIds
      owner {
        ...CompanyFragment
      }
      name
      description
      nodeId
      role {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      sensors {
        ...SensorFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralsPaginated {
        ...PeripheralsPaginatedFragment
      }
      lines {
        ...LineFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
    }
  }
}
Variables
{
  "lineId": 4,
  "name": "xyz789",
  "description": "abc123",
  "languageCode": "xyz789"
}
Response
{
  "data": {
    "updateLine": {
      "id": 4,
      "languageCode": "abc123",
      "owner": "4",
      "location": Location,
      "name": "abc123",
      "description": "abc123",
      "mainPeripheralId": 4,
      "nodes": [LineNode],
      "edges": [LineEdge],
      "settings": LineSettings,
      "goldenBatch": GoldenBatch,
      "bestPendingGoldenBatch": GoldenBatch,
      "time": [LineTimeData],
      "products": ProductList,
      "packagings": PackagingList,
      "batches": BatchList,
      "batch": Batch,
      "schedule": Schedule,
      "mainSensor": Sensor,
      "scheduledReports": [ScheduledReport],
      "andonSchedules": [AndonSchedule],
      "nextShift": ShiftInstance,
      "scheduledEnd": "2007-12-03",
      "previousShift": ShiftInstance,
      "maintenanceWorkOrders": MaintenanceWorkOrderConnection,
      "groups": [Group]
    }
  }
}

updateLineWithTopology

Description

Update a line with the provided nodes and edges.

Response

Returns a Line!

Arguments
Name Description
lineId - ID! The ID must be a valid LineId
name - String!
description - String!
nodes - [LineNodeInput!]!
edges - [LineEdgeInput!]!
languageCode - String!
settings - LineSettingsInput

Example

Query
mutation UpdateLineWithTopology(
  $lineId: ID!,
  $name: String!,
  $description: String!,
  $nodes: [LineNodeInput!]!,
  $edges: [LineEdgeInput!]!,
  $languageCode: String!,
  $settings: LineSettingsInput
) {
  updateLineWithTopology(
    lineId: $lineId,
    name: $name,
    description: $description,
    nodes: $nodes,
    edges: $edges,
    languageCode: $languageCode,
    settings: $settings
  ) {
    id
    languageCode
    owner
    location {
      timeZone
    }
    name
    description
    mainPeripheralId
    nodes {
      id
      type
      peripheralId
      position
      sensor {
        ...SensorFragment
      }
    }
    edges {
      from
      to
    }
    settings {
      oee {
        ...LineOEESettingsFragment
      }
      batch {
        ...LineBatchSettingsFragment
      }
    }
    goldenBatch {
      batchId
      lineId
      productId
      oee1
      state
      acceptedAt
    }
    bestPendingGoldenBatch {
      batchId
      lineId
      productId
      oee1
      state
      acceptedAt
    }
    time {
      configs {
        ...SensorConfigFragment
      }
      alarmLogs {
        ...AlarmLogsFragment
      }
      batches {
        ...BatchListFragment
      }
      dataOverrides {
        ...DataOverrideFragment
      }
      pendingControls {
        ...BatchControlListFragment
      }
      samples {
        ...SampleFragment
      }
      scrap {
        ...SampleFragment
      }
      shifts {
        ...ShiftInstanceFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
      changeoverStops {
        ...ChangeoverStopFragment
      }
      _id
      timeRange {
        ...TimeRangeFragment
      }
    }
    products {
      nextToken
      items {
        ...ProductFragment
      }
    }
    packagings {
      nextToken
      items {
        ...PackagingFragment
      }
    }
    batches {
      count
      items {
        ...BatchFragment
      }
      nextToken
      pages
    }
    batch {
      actualStart
      actualStop
      amount
      batchId
      batchNumber
      comment
      lineId
      manualScrap
      plannedStart
      produced
      product {
        ...ProductFragment
      }
      sorting
      state
      tags
      controls {
        ...BatchControlFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
      scrap {
        ...SampleFragment
      }
      createdBy {
        ...UserFragment
      }
      line {
        ...LineFragment
      }
      plannedEtc
      actualEtc
    }
    schedule {
      id
      lineId
      validFrom {
        ...ScheduleTimeFragment
      }
      validTo {
        ...ScheduleTimeFragment
      }
      shifts {
        ...ShiftFragment
      }
      weeklyTargets {
        ...TargetsFragment
      }
      configuration {
        ...ScheduleConfigurationFragment
      }
      isExceptionalWeek
      isFallbackSchedule
    }
    mainSensor {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      config {
        ...SensorConfigFragment
      }
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      customKPIs {
        ...CustomKPIFragment
      }
      cameras {
        ...CameraFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
      peripheralInformation {
        ...PeripheralInformationFragment
      }
      alarms {
        ...AlarmFragment
      }
      alarm {
        ...AlarmFragment
      }
      stopCauseCategories {
        ...StopCauseCategoryFragment
      }
      stopCauseMappings {
        ...StopCauseMappingFragment
      }
      time {
        ...SensorTimeDataFragment
      }
      groups {
        ...GroupFragment
      }
      horizontalAnnotations {
        ...HorizontalAnnotationFragment
      }
      verticalAnnotations {
        ...VerticalAnnotationFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
    }
    scheduledReports {
      id
      type
      entityId
      entityType
      name
      description
      enabled
      subscribers {
        ...ReportSubscriberFragment
      }
      trigger {
        ...ScheduledReportTriggerFragment
      }
      nextTriggerDate
      timezone
      stopFilter {
        ...ReportStopFilterFragment
      }
    }
    andonSchedules {
      id
      name
      lineIds
      shifts {
        ...AndonShiftFragment
      }
      shift {
        ...AndonShiftFragment
      }
      lines {
        ...LineFragment
      }
    }
    nextShift {
      id
      from
      to
      name
      description
      shiftId
      scheduleEntry {
        ...ShiftFragment
      }
      batches {
        ...BatchListFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
    }
    scheduledEnd
    previousShift {
      id
      from
      to
      name
      description
      shiftId
      scheduleEntry {
        ...ShiftFragment
      }
      batches {
        ...BatchListFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
    }
    maintenanceWorkOrders {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...MaintenanceWorkOrderEdgeFragment
      }
      nodes {
        ...MaintenanceWorkOrderFragment
      }
    }
    groups {
      id
      defaultGroup
      externalIds
      peripheralIds
      lineIds
      owner {
        ...CompanyFragment
      }
      name
      description
      nodeId
      role {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      sensors {
        ...SensorFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralsPaginated {
        ...PeripheralsPaginatedFragment
      }
      lines {
        ...LineFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
    }
  }
}
Variables
{
  "lineId": 4,
  "name": "abc123",
  "description": "abc123",
  "nodes": [LineNodeInput],
  "edges": [LineEdgeInput],
  "languageCode": "abc123",
  "settings": LineSettingsInput
}
Response
{
  "data": {
    "updateLineWithTopology": {
      "id": "4",
      "languageCode": "abc123",
      "owner": 4,
      "location": Location,
      "name": "abc123",
      "description": "abc123",
      "mainPeripheralId": 4,
      "nodes": [LineNode],
      "edges": [LineEdge],
      "settings": LineSettings,
      "goldenBatch": GoldenBatch,
      "bestPendingGoldenBatch": GoldenBatch,
      "time": [LineTimeData],
      "products": ProductList,
      "packagings": PackagingList,
      "batches": BatchList,
      "batch": Batch,
      "schedule": Schedule,
      "mainSensor": Sensor,
      "scheduledReports": [ScheduledReport],
      "andonSchedules": [AndonSchedule],
      "nextShift": ShiftInstance,
      "scheduledEnd": "2007-12-03",
      "previousShift": ShiftInstance,
      "maintenanceWorkOrders": MaintenanceWorkOrderConnection,
      "groups": [Group]
    }
  }
}

updateMaintenanceLogEntry

Response

Returns a MaintenanceLogEntry!

Arguments
Name Description
lineId - LineId!
planId - MaintenancePlanId
timestamp - DateTime!
version - Int!
toUpdate - UpdateMaintenanceLogEntryInput!

Example

Query
mutation UpdateMaintenanceLogEntry(
  $lineId: LineId!,
  $planId: MaintenancePlanId,
  $timestamp: DateTime!,
  $version: Int!,
  $toUpdate: UpdateMaintenanceLogEntryInput!
) {
  updateMaintenanceLogEntry(
    lineId: $lineId,
    planId: $planId,
    timestamp: $timestamp,
    version: $version,
    toUpdate: $toUpdate
  ) {
    planId
    lineId
    status
    workOrderDueAt
    workOrderOverdueAt
    timestamp
    produced
    startFrom
    initials
    comment
    planSnapshot {
      title
      asset
      tagPartNumber
      instructions
      trackBy {
        ...TrackByOptionsFragment
      }
    }
    customData {
      formId
      formVersion
      values {
        ...CustomFieldValueFragment
      }
      initials
      form {
        ...CustomFormFragment
      }
      schema
    }
    andonCallId
    stopCauseIds
    stopCausePeripheralId
    assetIds
    startOfService
    endOfService
    startOfStop
    endOfStop
    version
    effectiveDuration
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    stopCauses {
      _id
      id
      stopType
      categoryId
      categoryName
      name
      description
      meta {
        ...StopCauseMetaFragment
      }
      order
      requireInitials
      requireComment
      deleted
      languageCode
      legacyStopCauseId
      targetSetup {
        ...TargetSetupFragment
      }
      enableCountermeasure
    }
    assets {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
  }
}
Variables
{
  "lineId": LineId,
  "planId": MaintenancePlanId,
  "timestamp": "2007-12-03T10:15:30Z",
  "version": 123,
  "toUpdate": UpdateMaintenanceLogEntryInput
}
Response
{
  "data": {
    "updateMaintenanceLogEntry": {
      "planId": MaintenancePlanId,
      "lineId": LineId,
      "status": "COMPLETED",
      "workOrderDueAt": "2007-12-03T10:15:30Z",
      "workOrderOverdueAt": "2007-12-03T10:15:30Z",
      "timestamp": "2007-12-03T10:15:30Z",
      "produced": 123,
      "startFrom": "2007-12-03T10:15:30Z",
      "initials": "abc123",
      "comment": "xyz789",
      "planSnapshot": MaintenancePlanSnapshot,
      "customData": CustomFormData,
      "andonCallId": "xyz789",
      "stopCauseIds": ["abc123"],
      "stopCausePeripheralId": PeripheralId,
      "assetIds": [NodeId],
      "startOfService": "2007-12-03T10:15:30Z",
      "endOfService": "2007-12-03T10:15:30Z",
      "startOfStop": "2007-12-03T10:15:30Z",
      "endOfStop": "2007-12-03T10:15:30Z",
      "version": 123,
      "effectiveDuration": 123,
      "line": Line,
      "stopCauses": [StopCause],
      "assets": [HierarchyNode]
    }
  }
}

updateMaintenancePlan

Response

Returns a MaintenancePlan!

Arguments
Name Description
planId - MaintenancePlanId!
lineId - LineId!
version - Int!
toUpdate - UpdateMaintenancePlanInput!

Example

Query
mutation UpdateMaintenancePlan(
  $planId: MaintenancePlanId!,
  $lineId: LineId!,
  $version: Int!,
  $toUpdate: UpdateMaintenancePlanInput!
) {
  updateMaintenancePlan(
    planId: $planId,
    lineId: $lineId,
    version: $version,
    toUpdate: $toUpdate
  ) {
    planId
    lineId
    title
    asset
    tagPartNumber
    instructions
    startFrom
    trackBy {
      time {
        ...TrackByTimeFragment
      }
      production {
        ...TrackByProductionFragment
      }
      calendar {
        ...TrackByCalendarFragment
      }
    }
    repeat
    version
    role {
      id
      name
    }
    log {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...MaintenanceLogEntryEdgeFragment
      }
      nodes {
        ...MaintenanceLogEntryFragment
      }
    }
    nextWorkOrder {
      plan {
        ...MaintenancePlanFragment
      }
      dueAt
      overdueAt
      produced
      latestMaintenance {
        ...MaintenanceLogEntryFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      line {
        ...LineFragment
      }
    }
    peripheral {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    line {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
  }
}
Variables
{
  "planId": MaintenancePlanId,
  "lineId": LineId,
  "version": 987,
  "toUpdate": UpdateMaintenancePlanInput
}
Response
{
  "data": {
    "updateMaintenancePlan": {
      "planId": MaintenancePlanId,
      "lineId": LineId,
      "title": "abc123",
      "asset": "abc123",
      "tagPartNumber": "xyz789",
      "instructions": "abc123",
      "startFrom": "2007-12-03T10:15:30Z",
      "trackBy": TrackByOptions,
      "repeat": "YES",
      "version": 987,
      "role": MaintenanceRole,
      "log": MaintenanceLogEntryConnection,
      "nextWorkOrder": MaintenanceWorkOrder,
      "peripheral": Peripheral,
      "line": Line
    }
  }
}

updatePackaging

Response

Returns a Packaging!

Arguments
Name Description
packagingId - ID!
lineId - ID!
name - String
packagingNumber - String
unit - String
comment - String

Example

Query
mutation UpdatePackaging(
  $packagingId: ID!,
  $lineId: ID!,
  $name: String,
  $packagingNumber: String,
  $unit: String,
  $comment: String
) {
  updatePackaging(
    packagingId: $packagingId,
    lineId: $lineId,
    name: $name,
    packagingNumber: $packagingNumber,
    unit: $unit,
    comment: $comment
  ) {
    packagingId
    packagingNumber
    lineId
    name
    unit
    comment
  }
}
Variables
{
  "packagingId": "4",
  "lineId": 4,
  "name": "abc123",
  "packagingNumber": "xyz789",
  "unit": "abc123",
  "comment": "xyz789"
}
Response
{
  "data": {
    "updatePackaging": {
      "packagingId": "4",
      "packagingNumber": "abc123",
      "lineId": "xyz789",
      "name": "abc123",
      "unit": "abc123",
      "comment": "xyz789"
    }
  }
}

updatePendingBatchControl

Response

Returns a BatchControl!

Arguments
Name Description
lineId - ID!
batchId - ID!
controlId - ID!
fields - [BatchControlFieldInput!]
comment - String
initials - String

Example

Query
mutation UpdatePendingBatchControl(
  $lineId: ID!,
  $batchId: ID!,
  $controlId: ID!,
  $fields: [BatchControlFieldInput!],
  $comment: String,
  $initials: String
) {
  updatePendingBatchControl(
    lineId: $lineId,
    batchId: $batchId,
    controlId: $controlId,
    fields: $fields,
    comment: $comment,
    initials: $initials
  ) {
    batchControlId
    batchId
    comment
    controlReceiptId
    controlReceiptName
    entryId
    fieldValues {
      controlReceiptField {
        ...ControlReceiptEntryFieldFragment
      }
      value
    }
    followUp {
      enabled
      delayMs
    }
    history {
      comment
      fieldValues {
        ...BatchControlFieldValueFragment
      }
      initials
      status
      timeControlUpdated
      timeControlled
    }
    initials
    initialsSettings
    originalControl {
      controlId
      timeTriggered
    }
    status
    timeControlUpdated
    timeControlled
    timeTriggered
    title
    trigger {
      type
      payload {
        ...TimedTriggerPayloadFragment
      }
      delayWhenStopped
    }
  }
}
Variables
{
  "lineId": "4",
  "batchId": "4",
  "controlId": 4,
  "fields": [BatchControlFieldInput],
  "comment": "abc123",
  "initials": "abc123"
}
Response
{
  "data": {
    "updatePendingBatchControl": {
      "batchControlId": "4",
      "batchId": "4",
      "comment": "xyz789",
      "controlReceiptId": 4,
      "controlReceiptName": "xyz789",
      "entryId": 4,
      "fieldValues": [BatchControlFieldValue],
      "followUp": FollowUpSettings,
      "history": [BatchControlHistory],
      "initials": "xyz789",
      "initialsSettings": "REQUIRED_IF_OUTSIDE_LIMITS",
      "originalControl": OriginalControlDetails,
      "status": "CANCELED",
      "timeControlUpdated": "2007-12-03",
      "timeControlled": "2007-12-03",
      "timeTriggered": "2007-12-03",
      "title": "abc123",
      "trigger": ControlTrigger
    }
  }
}

updatePeripheral

Response

Returns a Peripheral

Arguments
Name Description
peripheralId - ID!
meta - PeripheralMetaInput
config - UpdateConfigInput

Example

Query
mutation UpdatePeripheral(
  $peripheralId: ID!,
  $meta: PeripheralMetaInput,
  $config: UpdateConfigInput
) {
  updatePeripheral(
    peripheralId: $peripheralId,
    meta: $meta,
    config: $config
  ) {
    _id
    id
    name
    index
    peripheralId
    owner
    hardwareId
    peripheralType
    description
    offlineStatus {
      expiration
      lastReceived
    }
    device {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
    hardwareDevice {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
  }
}
Variables
{
  "peripheralId": 4,
  "meta": PeripheralMetaInput,
  "config": UpdateConfigInput
}
Response
{
  "data": {
    "updatePeripheral": {
      "_id": 4,
      "id": "4",
      "name": "abc123",
      "index": 4,
      "peripheralId": "4",
      "owner": "4",
      "hardwareId": "4",
      "peripheralType": "SENSOR",
      "description": "abc123",
      "offlineStatus": OfflineStatus,
      "device": Device,
      "hardwareDevice": Device
    }
  }
}

updateProduct

Response

Returns a Product!

Arguments
Name Description
productId - ID!
lineId - ID!
itemNumber - String
name - String
validatedLineSpeed - Float
expectedAverageSpeed - Float
comment - String
dataMultiplier - Float
packagingId - ID
parameters - [InputParameter!]
updateBatches - Boolean

Example

Query
mutation UpdateProduct(
  $productId: ID!,
  $lineId: ID!,
  $itemNumber: String,
  $name: String,
  $validatedLineSpeed: Float,
  $expectedAverageSpeed: Float,
  $comment: String,
  $dataMultiplier: Float,
  $packagingId: ID,
  $parameters: [InputParameter!],
  $updateBatches: Boolean
) {
  updateProduct(
    productId: $productId,
    lineId: $lineId,
    itemNumber: $itemNumber,
    name: $name,
    validatedLineSpeed: $validatedLineSpeed,
    expectedAverageSpeed: $expectedAverageSpeed,
    comment: $comment,
    dataMultiplier: $dataMultiplier,
    packagingId: $packagingId,
    parameters: $parameters,
    updateBatches: $updateBatches
  ) {
    productId
    name
    itemNumber
    validatedLineSpeed
    expectedAverageSpeed
    comment
    lineId
    dataMultiplier
    packaging {
      packagingId
      packagingNumber
      lineId
      name
      unit
      comment
    }
    overwrittenByBatch
    parameters {
      key
      value
      alarm {
        ...AlarmFragment
      }
      setpoint {
        ...SetPointFragment
      }
    }
    attachedControlReceipts {
      controlReceiptId
      userPoolId
      name
      description
      entries {
        ...ControlReceiptEntryFragment
      }
      deleted
      attachedProducts {
        ...ProductFragment
      }
    }
  }
}
Variables
{
  "productId": 4,
  "lineId": "4",
  "itemNumber": "abc123",
  "name": "abc123",
  "validatedLineSpeed": 987.65,
  "expectedAverageSpeed": 987.65,
  "comment": "xyz789",
  "dataMultiplier": 987.65,
  "packagingId": "4",
  "parameters": [InputParameter],
  "updateBatches": true
}
Response
{
  "data": {
    "updateProduct": {
      "productId": 4,
      "name": "abc123",
      "itemNumber": "xyz789",
      "validatedLineSpeed": 123.45,
      "expectedAverageSpeed": 987.65,
      "comment": "xyz789",
      "lineId": 4,
      "dataMultiplier": 123.45,
      "packaging": Packaging,
      "overwrittenByBatch": false,
      "parameters": [Parameter],
      "attachedControlReceipts": [ControlReceipt]
    }
  }
}

updateRole

Response

Returns a Role

Arguments
Name Description
companyId - ID
id - ID!
attributes - RoleAttributes!

Example

Query
mutation UpdateRole(
  $companyId: ID,
  $id: ID!,
  $attributes: RoleAttributes!
) {
  updateRole(
    companyId: $companyId,
    id: $id,
    attributes: $attributes
  ) {
    id
    name
    type
    permissions {
      key
      type
      description
    }
  }
}
Variables
{
  "companyId": "4",
  "id": "4",
  "attributes": RoleAttributes
}
Response
{
  "data": {
    "updateRole": {
      "id": "4",
      "name": "xyz789",
      "type": "SUPER",
      "permissions": [Permission]
    }
  }
}

updateSchedule

Description

Update an existing schedule. Note that if you update a schedule in a new week, you should use upsertSchedule instead.

Response

Returns a Schedule!

Arguments
Name Description
lineId - ID!
scheduleId - ID!
shifts - [ShiftInput!]
weeklyTargets - TargetsInput
configuration - ScheduleConfigurationInput

Example

Query
mutation UpdateSchedule(
  $lineId: ID!,
  $scheduleId: ID!,
  $shifts: [ShiftInput!],
  $weeklyTargets: TargetsInput,
  $configuration: ScheduleConfigurationInput
) {
  updateSchedule(
    lineId: $lineId,
    scheduleId: $scheduleId,
    shifts: $shifts,
    weeklyTargets: $weeklyTargets,
    configuration: $configuration
  ) {
    id
    lineId
    validFrom {
      year
      week
    }
    validTo {
      year
      week
    }
    shifts {
      id
      name
      description
      timeRange {
        ...ShiftTimeRangeFragment
      }
      targets {
        ...TargetsFragment
      }
    }
    weeklyTargets {
      lineId
      validFrom {
        ...ScheduleTimeFragment
      }
      id
      oee
      oee2
      oee3
      tcu
      produced
      numberOfBatches
      mainOeeType
    }
    configuration {
      lineId
      disableLostConnectionAlarmOutsideWorkingHours
      automaticStopRegistration {
        ...AutomaticStopRegistrationFragment
      }
      startDayOfWeek
      timezone
    }
    isExceptionalWeek
    isFallbackSchedule
  }
}
Variables
{
  "lineId": 4,
  "scheduleId": 4,
  "shifts": [ShiftInput],
  "weeklyTargets": TargetsInput,
  "configuration": ScheduleConfigurationInput
}
Response
{
  "data": {
    "updateSchedule": {
      "id": 4,
      "lineId": "4",
      "validFrom": ScheduleTime,
      "validTo": ScheduleTime,
      "shifts": [Shift],
      "weeklyTargets": Targets,
      "configuration": ScheduleConfiguration,
      "isExceptionalWeek": true,
      "isFallbackSchedule": true
    }
  }
}

updateScheduledReportForGroup

Response

Returns a ScheduledReport!

Arguments
Name Description
groupId - ID!
id - ID!
type - ReportType
name - String
description - String
trigger - TriggerType
triggerParameters - String
subscribers - [ReportSubscriberInput!]
enabled - Boolean
timezone - String
stopFilter - StopFilterInput

Example

Query
mutation UpdateScheduledReportForGroup(
  $groupId: ID!,
  $id: ID!,
  $type: ReportType,
  $name: String,
  $description: String,
  $trigger: TriggerType,
  $triggerParameters: String,
  $subscribers: [ReportSubscriberInput!],
  $enabled: Boolean,
  $timezone: String,
  $stopFilter: StopFilterInput
) {
  updateScheduledReportForGroup(
    groupId: $groupId,
    id: $id,
    type: $type,
    name: $name,
    description: $description,
    trigger: $trigger,
    triggerParameters: $triggerParameters,
    subscribers: $subscribers,
    enabled: $enabled,
    timezone: $timezone,
    stopFilter: $stopFilter
  ) {
    id
    type
    entityId
    entityType
    name
    description
    enabled
    subscribers {
      type
      value
      languageCode
      disabled
    }
    trigger {
      type
      parameters
    }
    nextTriggerDate
    timezone
    stopFilter {
      stopTypes
      stopCauseIds
      includeMicroStops
    }
  }
}
Variables
{
  "groupId": 4,
  "id": 4,
  "type": "STOPS_LAST_6_DAYS",
  "name": "xyz789",
  "description": "xyz789",
  "trigger": "CRON",
  "triggerParameters": "abc123",
  "subscribers": [ReportSubscriberInput],
  "enabled": false,
  "timezone": "xyz789",
  "stopFilter": StopFilterInput
}
Response
{
  "data": {
    "updateScheduledReportForGroup": {
      "id": "4",
      "type": "STOPS_LAST_6_DAYS",
      "entityId": "4",
      "entityType": "LINE",
      "name": "xyz789",
      "description": "xyz789",
      "enabled": true,
      "subscribers": [ReportSubscriber],
      "trigger": ScheduledReportTrigger,
      "nextTriggerDate": "2007-12-03",
      "timezone": "abc123",
      "stopFilter": ReportStopFilter
    }
  }
}

updateScheduledReportForLine

Response

Returns a ScheduledReport!

Arguments
Name Description
lineId - ID!
id - ID!
type - ReportType
name - String
description - String
trigger - TriggerType
triggerParameters - String
subscribers - [ReportSubscriberInput!]
enabled - Boolean
timezone - String
stopFilter - StopFilterInput

Example

Query
mutation UpdateScheduledReportForLine(
  $lineId: ID!,
  $id: ID!,
  $type: ReportType,
  $name: String,
  $description: String,
  $trigger: TriggerType,
  $triggerParameters: String,
  $subscribers: [ReportSubscriberInput!],
  $enabled: Boolean,
  $timezone: String,
  $stopFilter: StopFilterInput
) {
  updateScheduledReportForLine(
    lineId: $lineId,
    id: $id,
    type: $type,
    name: $name,
    description: $description,
    trigger: $trigger,
    triggerParameters: $triggerParameters,
    subscribers: $subscribers,
    enabled: $enabled,
    timezone: $timezone,
    stopFilter: $stopFilter
  ) {
    id
    type
    entityId
    entityType
    name
    description
    enabled
    subscribers {
      type
      value
      languageCode
      disabled
    }
    trigger {
      type
      parameters
    }
    nextTriggerDate
    timezone
    stopFilter {
      stopTypes
      stopCauseIds
      includeMicroStops
    }
  }
}
Variables
{
  "lineId": "4",
  "id": "4",
  "type": "STOPS_LAST_6_DAYS",
  "name": "abc123",
  "description": "abc123",
  "trigger": "CRON",
  "triggerParameters": "xyz789",
  "subscribers": [ReportSubscriberInput],
  "enabled": false,
  "timezone": "abc123",
  "stopFilter": StopFilterInput
}
Response
{
  "data": {
    "updateScheduledReportForLine": {
      "id": "4",
      "type": "STOPS_LAST_6_DAYS",
      "entityId": "4",
      "entityType": "LINE",
      "name": "abc123",
      "description": "xyz789",
      "enabled": false,
      "subscribers": [ReportSubscriber],
      "trigger": ScheduledReportTrigger,
      "nextTriggerDate": "2007-12-03",
      "timezone": "abc123",
      "stopFilter": ReportStopFilter
    }
  }
}

updateScheduledReportForSensor

Response

Returns a ScheduledReport!

Arguments
Name Description
peripheralId - ID!
id - ID!
type - ReportType
name - String
description - String
trigger - TriggerType
triggerParameters - String
subscribers - [ReportSubscriberInput!]
enabled - Boolean
timezone - String
stopFilter - StopFilterInput

Example

Query
mutation UpdateScheduledReportForSensor(
  $peripheralId: ID!,
  $id: ID!,
  $type: ReportType,
  $name: String,
  $description: String,
  $trigger: TriggerType,
  $triggerParameters: String,
  $subscribers: [ReportSubscriberInput!],
  $enabled: Boolean,
  $timezone: String,
  $stopFilter: StopFilterInput
) {
  updateScheduledReportForSensor(
    peripheralId: $peripheralId,
    id: $id,
    type: $type,
    name: $name,
    description: $description,
    trigger: $trigger,
    triggerParameters: $triggerParameters,
    subscribers: $subscribers,
    enabled: $enabled,
    timezone: $timezone,
    stopFilter: $stopFilter
  ) {
    id
    type
    entityId
    entityType
    name
    description
    enabled
    subscribers {
      type
      value
      languageCode
      disabled
    }
    trigger {
      type
      parameters
    }
    nextTriggerDate
    timezone
    stopFilter {
      stopTypes
      stopCauseIds
      includeMicroStops
    }
  }
}
Variables
{
  "peripheralId": 4,
  "id": "4",
  "type": "STOPS_LAST_6_DAYS",
  "name": "abc123",
  "description": "abc123",
  "trigger": "CRON",
  "triggerParameters": "abc123",
  "subscribers": [ReportSubscriberInput],
  "enabled": false,
  "timezone": "abc123",
  "stopFilter": StopFilterInput
}
Response
{
  "data": {
    "updateScheduledReportForSensor": {
      "id": 4,
      "type": "STOPS_LAST_6_DAYS",
      "entityId": "4",
      "entityType": "LINE",
      "name": "abc123",
      "description": "abc123",
      "enabled": false,
      "subscribers": [ReportSubscriber],
      "trigger": ScheduledReportTrigger,
      "nextTriggerDate": "2007-12-03",
      "timezone": "abc123",
      "stopFilter": ReportStopFilter
    }
  }
}

updateSensor

Use updatePeripheral instead.
Response

Returns a Sensor

Arguments
Name Description
peripheralId - ID!
newName - String
newDescription - String
newSensorConfig - SensorConfigInput

Example

Query
mutation UpdateSensor(
  $peripheralId: ID!,
  $newName: String,
  $newDescription: String,
  $newSensorConfig: SensorConfigInput
) {
  updateSensor(
    peripheralId: $peripheralId,
    newName: $newName,
    newDescription: $newDescription,
    newSensorConfig: $newSensorConfig
  ) {
    _id
    id
    name
    index
    peripheralId
    owner
    hardwareId
    description
    config {
      validFrom
      type
      energyMeter
      wiring {
        ...SensorWiringStateFragment
      }
      inputMode {
        ...InputModeStateFragment
      }
      debounce {
        ...DebounceStateFragment
      }
      stopThreshold
      stopRegisterThreshold
      stopValueThreshold
      dataMultiplier
      validatedSpeed
      expectedSpeed
      analogOffset
      analogInputRange
      sensorUnit {
        ...SensorUnitFragment
      }
      chartTimeScale
      accumulatorConfig {
        ...AccumulatorConfigFragment
      }
      discreteConfig {
        ...DiscreteConfigFragment
      }
      manualConfig {
        ...ManualConfigFragment
      }
      publishRate
      sampleRate
      triggerIndex
      dataAlarm {
        ...DataAlarmFragment
      }
      findStops
      chart {
        ...ChartConfigurationFragment
      }
      kpiConfig {
        ...KPIConfigurationFragment
      }
      subtractCycleTime
      extraMultiplierForFrontend
    }
    peripheralType
    offlineStatus {
      expiration
      lastReceived
    }
    customKPIs {
      id
      peripheralId
      name
      description
      unit
      decimals
      type
      templateParameters {
        ...KPIParameterFragment
      }
      kpiParameters {
        ...KPIParameterFragment
      }
    }
    cameras {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      description
      peripheralType
      offlineStatus {
        ...OfflineStatusFragment
      }
      attachedSensors {
        ...SensorFragment
      }
      streamURL
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
    device {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
    hardwareDevice {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
    peripheralInformation {
      line {
        ...LineFragment
      }
      node {
        ...LineNodeFragment
      }
    }
    alarms {
      id
      name
      description
      peripheralId
      status
      threshold
      repeatNotification
      enabled
      type
      alarmConfiguration {
        ...AlarmConfigurationFragment
      }
      languageCode
      snoozeDuration
      alarmLogs {
        ...AlarmLogsFragment
      }
      subscribers {
        ...SubscriberOutputFragment
      }
      timeRange {
        ...TimeRangeFragment
      }
      peripheral {
        ...PeripheralFragment
      }
    }
    alarm {
      id
      name
      description
      peripheralId
      status
      threshold
      repeatNotification
      enabled
      type
      alarmConfiguration {
        ...AlarmConfigurationFragment
      }
      languageCode
      snoozeDuration
      alarmLogs {
        ...AlarmLogsFragment
      }
      subscribers {
        ...SubscriberOutputFragment
      }
      timeRange {
        ...TimeRangeFragment
      }
      peripheral {
        ...PeripheralFragment
      }
    }
    stopCauseCategories {
      _id
      id
      ownerType
      order
      name
      meta {
        ...StopCauseCategoryMetaFragment
      }
      languageCode
      deleted
      stopCauses {
        ...StopCauseFragment
      }
      legacyCategoryId
    }
    stopCauseMappings {
      _id
      peripheralIdEvent
      peripheralIdTarget
      value
      stopCauseId
      buffer
      lookForward
      lookBack
      userPool
      split
      regPriority
    }
    time {
      configs {
        ...SensorConfigFragment
      }
      alarmLogs {
        ...AlarmLogsFragment
      }
      batches {
        ...BatchListFragment
      }
      dataOverrides {
        ...DataOverrideFragment
      }
      samples {
        ...SampleFragment
      }
      stops {
        ...StopFragment
      }
      stopStats {
        ...StopStatsFragment
      }
      stats {
        ...StatFragment
      }
      _id
      timeRange {
        ...TimeRangeFragment
      }
    }
    groups {
      id
      defaultGroup
      externalIds
      peripheralIds
      lineIds
      owner {
        ...CompanyFragment
      }
      name
      description
      nodeId
      role {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      sensors {
        ...SensorFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralsPaginated {
        ...PeripheralsPaginatedFragment
      }
      lines {
        ...LineFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
    }
    horizontalAnnotations {
      id
      label
      axisValue
    }
    verticalAnnotations {
      id
      label
      timestamp
      timestampEnd
      tags
    }
    scheduledReports {
      id
      type
      entityId
      entityType
      name
      description
      enabled
      subscribers {
        ...ReportSubscriberFragment
      }
      trigger {
        ...ScheduledReportTriggerFragment
      }
      nextTriggerDate
      timezone
      stopFilter {
        ...ReportStopFilterFragment
      }
    }
    maintenanceWorkOrders {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...MaintenanceWorkOrderEdgeFragment
      }
      nodes {
        ...MaintenanceWorkOrderFragment
      }
    }
  }
}
Variables
{
  "peripheralId": 4,
  "newName": "abc123",
  "newDescription": "xyz789",
  "newSensorConfig": SensorConfigInput
}
Response
{
  "data": {
    "updateSensor": {
      "_id": "4",
      "id": "4",
      "name": "xyz789",
      "index": 4,
      "peripheralId": 4,
      "owner": 4,
      "hardwareId": 4,
      "description": "xyz789",
      "config": SensorConfig,
      "peripheralType": "SENSOR",
      "offlineStatus": OfflineStatus,
      "customKPIs": [CustomKPI],
      "cameras": [Camera],
      "device": Device,
      "hardwareDevice": Device,
      "peripheralInformation": PeripheralInformation,
      "alarms": [Alarm],
      "alarm": Alarm,
      "stopCauseCategories": [StopCauseCategory],
      "stopCauseMappings": [StopCauseMapping],
      "time": [SensorTimeData],
      "groups": [Group],
      "horizontalAnnotations": [HorizontalAnnotation],
      "verticalAnnotations": [VerticalAnnotation],
      "scheduledReports": [ScheduledReport],
      "maintenanceWorkOrders": MaintenanceWorkOrderConnection
    }
  }
}

updateSkill

Internal use only
Response

Returns a Skill!

Arguments
Name Description
id - UUID!
input - UpdateSkillInput!

Example

Query
mutation UpdateSkill(
  $id: UUID!,
  $input: UpdateSkillInput!
) {
  updateSkill(
    id: $id,
    input: $input
  ) {
    id
    title
    description
    nodeId
    createdAt
    updatedAt
    createdBySub
    updatedBySub
    learningActivities {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...SkillLearningActivitiesEdgeFragment
      }
      nodes {
        ...SkillLearningActivityFragment
      }
    }
    node {
      id
      version
      meta {
        ... on LineNodeMeta {
          ...LineNodeMetaFragment
        }
        ... on DirectoryNodeMeta {
          ...DirectoryNodeMetaFragment
        }
        ... on PeripheralNodeMeta {
          ...PeripheralNodeMetaFragment
        }
        ... on AssetNodeMeta {
          ...AssetNodeMetaFragment
        }
      }
      type
      descendants {
        ...HierarchyNodeConnectionFragment
      }
      ancestors {
        ...HierarchyNodeFragment
      }
      childrenCount
    }
    createdBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
    updatedBy {
      company {
        ...CompanyFragment
      }
      username
      enabled
      userStatus
      userCreateDate
      userLastModifiedDate
      sub
      email
      givenName
      familyName
      emailVerified
      groups {
        ...GroupFragment
      }
      locationRoles {
        ...LocationRoleFragment
      }
      devices {
        ...DeviceFragment
      }
      lines {
        ...LineFragment
      }
      linesPaginated {
        ...LinesPaginatedFragment
      }
      skills {
        ...UserSkillConnectionFragment
      }
      learningRoles {
        ...UserLearningRoleConnectionFragment
      }
      learningActivities {
        ...UserLearningActivityConnectionFragment
      }
      sessions {
        ...SessionFragment
      }
    }
  }
}
Variables
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "input": UpdateSkillInput
}
Response
{
  "data": {
    "updateSkill": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "title": "abc123",
      "description": "xyz789",
      "nodeId": 4,
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z",
      "createdBySub": "abc123",
      "updatedBySub": "xyz789",
      "learningActivities": SkillLearningActivitiesConnection,
      "node": HierarchyNode,
      "createdBy": User,
      "updatedBy": User
    }
  }
}

updateStopCauseMapping

Response

Returns a Boolean!

Arguments
Name Description
deviceOwner - ID
peripheralId - ID!
createStopCauseMapping - [StopCauseMappingInput!]!
deleteStopCauseMapping - [StopCauseMappingInput!]!

Example

Query
mutation UpdateStopCauseMapping(
  $deviceOwner: ID,
  $peripheralId: ID!,
  $createStopCauseMapping: [StopCauseMappingInput!]!,
  $deleteStopCauseMapping: [StopCauseMappingInput!]!
) {
  updateStopCauseMapping(
    deviceOwner: $deviceOwner,
    peripheralId: $peripheralId,
    createStopCauseMapping: $createStopCauseMapping,
    deleteStopCauseMapping: $deleteStopCauseMapping
  )
}
Variables
{
  "deviceOwner": 4,
  "peripheralId": "4",
  "createStopCauseMapping": [StopCauseMappingInput],
  "deleteStopCauseMapping": [StopCauseMappingInput]
}
Response
{"data": {"updateStopCauseMapping": true}}

updateSubscribers

Response

Returns an Alarm!

Arguments
Name Description
peripheralId - ID!
alarmId - ID!
subscribers - [SubscriberInput!]!

Example

Query
mutation UpdateSubscribers(
  $peripheralId: ID!,
  $alarmId: ID!,
  $subscribers: [SubscriberInput!]!
) {
  updateSubscribers(
    peripheralId: $peripheralId,
    alarmId: $alarmId,
    subscribers: $subscribers
  ) {
    id
    name
    description
    peripheralId
    status
    threshold
    repeatNotification
    enabled
    type
    alarmConfiguration {
      x
      t
      y
      n
      stopType
    }
    languageCode
    snoozeDuration
    alarmLogs {
      lastEvaluatedKey {
        ...AlarmLogLastEvaluatedKeyFragment
      }
      entries {
        ...AlarmLogFragment
      }
    }
    subscribers {
      type
      languageCode
      value
    }
    timeRange {
      from
      to
    }
    peripheral {
      _id
      id
      name
      index
      peripheralId
      owner
      hardwareId
      peripheralType
      description
      offlineStatus {
        ...OfflineStatusFragment
      }
      device {
        ...DeviceFragment
      }
      hardwareDevice {
        ...DeviceFragment
      }
    }
  }
}
Variables
{
  "peripheralId": "4",
  "alarmId": "4",
  "subscribers": [SubscriberInput]
}
Response
{
  "data": {
    "updateSubscribers": {
      "id": 4,
      "name": "xyz789",
      "description": "xyz789",
      "peripheralId": "4",
      "status": "NORMAL",
      "threshold": 987,
      "repeatNotification": true,
      "enabled": false,
      "type": "AboveX",
      "alarmConfiguration": AlarmConfiguration,
      "languageCode": "xyz789",
      "snoozeDuration": 987,
      "alarmLogs": AlarmLogs,
      "subscribers": [SubscriberOutput],
      "timeRange": TimeRange,
      "peripheral": Peripheral
    }
  }
}

updateUser

Response

Returns a User

Arguments
Name Description
companyId - ID
username - String!
attributes - UserAttributes!
groupIds - [ID!]
removedGroupIds - [ID!]
locationRoles - [LocationRoleInput!]

Example

Query
mutation UpdateUser(
  $companyId: ID,
  $username: String!,
  $attributes: UserAttributes!,
  $groupIds: [ID!],
  $removedGroupIds: [ID!],
  $locationRoles: [LocationRoleInput!]
) {
  updateUser(
    companyId: $companyId,
    username: $username,
    attributes: $attributes,
    groupIds: $groupIds,
    removedGroupIds: $removedGroupIds,
    locationRoles: $locationRoles
  ) {
    company {
      id
      name
      groups {
        ...GroupFragment
      }
      roles {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      group {
        ...GroupFragment
      }
      appClients {
        ...AppClientFragment
      }
      trialStatus {
        ...TrialStatusFragment
      }
      authConfiguration {
        ...AuthConfigurationFragment
      }
      factoryOverviewSettings {
        ...FactoryOverviewSettingsFragment
      }
    }
    username
    enabled
    userStatus
    userCreateDate
    userLastModifiedDate
    sub
    email
    givenName
    familyName
    emailVerified
    groups {
      id
      defaultGroup
      externalIds
      peripheralIds
      lineIds
      owner {
        ...CompanyFragment
      }
      name
      description
      nodeId
      role {
        ...RoleFragment
      }
      users {
        ...UserListFragment
      }
      sensors {
        ...SensorFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralsPaginated {
        ...PeripheralsPaginatedFragment
      }
      lines {
        ...LineFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
    }
    locationRoles {
      roleId
      locationId
    }
    devices {
      _id
      uuid
      owner
      type
      hardwareId
      name
      numInputPorts
      sensor {
        ...SensorFragment
      }
      status {
        ...DeviceStatusFragment
      }
      network {
        ...NetworkConfigFragment
      }
      sensors {
        ...SensorFragment
      }
      peripheral {
        ...PeripheralFragment
      }
      peripherals {
        ...PeripheralFragment
      }
      peripheralPhysicalInput {
        ...PeripheralFragment
      }
      peripheralPhysicalInputs {
        ...PeripheralFragment
      }
      pendingJobExecutions {
        ...JobExecutionSummaryFragment
      }
      updateAvailable
      certificates {
        ...CertificateFragment
      }
    }
    lines {
      id
      languageCode
      owner
      location {
        ...LocationFragment
      }
      name
      description
      mainPeripheralId
      nodes {
        ...LineNodeFragment
      }
      edges {
        ...LineEdgeFragment
      }
      settings {
        ...LineSettingsFragment
      }
      goldenBatch {
        ...GoldenBatchFragment
      }
      bestPendingGoldenBatch {
        ...GoldenBatchFragment
      }
      time {
        ...LineTimeDataFragment
      }
      products {
        ...ProductListFragment
      }
      packagings {
        ...PackagingListFragment
      }
      batches {
        ...BatchListFragment
      }
      batch {
        ...BatchFragment
      }
      schedule {
        ...ScheduleFragment
      }
      mainSensor {
        ...SensorFragment
      }
      scheduledReports {
        ...ScheduledReportFragment
      }
      andonSchedules {
        ...AndonScheduleFragment
      }
      nextShift {
        ...ShiftInstanceFragment
      }
      scheduledEnd
      previousShift {
        ...ShiftInstanceFragment
      }
      maintenanceWorkOrders {
        ...MaintenanceWorkOrderConnectionFragment
      }
      groups {
        ...GroupFragment
      }
    }
    linesPaginated {
      items {
        ...LineFragment
      }
      nextOffset
      total
    }
    skills {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserSkillEdgeFragment
      }
      nodes {
        ...UserSkillFragment
      }
    }
    learningRoles {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserLearningRoleEdgeFragment
      }
      nodes {
        ...UserLearningRoleFragment
      }
    }
    learningActivities {
      pageInfo {
        ...PageInfoFragment
      }
      edges {
        ...UserLearningActivityEdgeFragment
      }
      nodes {
        ...UserLearningActivityFragment
      }
    }
    sessions {
      generatedAt
      expiresAt
      userSub
    }
  }
}
Variables
{
  "companyId": 4,
  "username": "xyz789",
  "attributes": UserAttributes,
  "groupIds": [4],
  "removedGroupIds": ["4"],
  "locationRoles": [LocationRoleInput]
}
Response
{
  "data": {
    "updateUser": {
      "company": Company,
      "username": "xyz789",
      "enabled": true,
      "userStatus": "xyz789",
      "userCreateDate": "2007-12-03",
      "userLastModifiedDate": "2007-12-03",
      "sub": "xyz789",
      "email": "xyz789",
      "givenName": "xyz789",
      "familyName": "xyz789",
      "emailVerified": "xyz789",
      "groups": [Group],
      "locationRoles": [LocationRole],
      "devices": [Device],
      "lines": [Line],
      "linesPaginated": LinesPaginated,
      "skills": UserSkillConnection,
      "learningRoles": UserLearningRoleConnection,
      "learningActivities": UserLearningActivityConnection,
      "sessions": [Session]
    }
  }
}

updateUserLearningActivity

Internal use only
Response

Returns a UserLearningActivity!

Arguments
Name Description
input - UpdateUserLearningActivityInput!

Example

Query
mutation UpdateUserLearningActivity($input: UpdateUserLearningActivityInput!) {
  updateUserLearningActivity(input: $input) {
    id
    learningActivityId
    version
    nodeId
    title
    status
    description
    content
    startEndDatesRequired
    validityInMonths
    enrolledAt
    startedAt
    completedAt
    exemptedAt
    expiresAt
  }
}
Variables
{"input": UpdateUserLearningActivityInput}
Response
{
  "data": {
    "updateUserLearningActivity": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "learningActivityId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "version": 123,
      "nodeId": "xyz789",
      "title": "xyz789",
      "status": "ENROLLED",
      "description": "xyz789",
      "content": "abc123",
      "startEndDatesRequired": true,
      "validityInMonths": 987,
      "enrolledAt": "2007-12-03T10:15:30Z",
      "startedAt": "2007-12-03T10:15:30Z",
      "completedAt": "2007-12-03T10:15:30Z",
      "exemptedAt": "2007-12-03T10:15:30Z",
      "expiresAt": "2007-12-03T10:15:30Z"
    }
  }
}

updateVerticalAnnotation

Description

Update an existing vertical annotation's properties and timing.

Response

Returns a VerticalAnnotation!

Arguments
Name Description
peripheralId - ID!
verticalAnnotationId - ID!
oldTimestamp - Date!
newVerticalAnnotation - VerticalAnnotationInput!

Example

Query
mutation UpdateVerticalAnnotation(
  $peripheralId: ID!,
  $verticalAnnotationId: ID!,
  $oldTimestamp: Date!,
  $newVerticalAnnotation: VerticalAnnotationInput!
) {
  updateVerticalAnnotation(
    peripheralId: $peripheralId,
    verticalAnnotationId: $verticalAnnotationId,
    oldTimestamp: $oldTimestamp,
    newVerticalAnnotation: $newVerticalAnnotation
  ) {
    id
    label
    timestamp
    timestampEnd
    tags
  }
}
Variables
{
  "peripheralId": 4,
  "verticalAnnotationId": 4,
  "oldTimestamp": "2007-12-03",
  "newVerticalAnnotation": VerticalAnnotationInput
}
Response
{
  "data": {
    "updateVerticalAnnotation": {
      "id": "4",
      "label": "xyz789",
      "timestamp": "2007-12-03",
      "timestampEnd": "2007-12-03",
      "tags": ["abc123"]
    }
  }
}

updateWebhook

Description

Update an existing webhook.

Response

Returns a Webhook!

Arguments
Name Description
input - UpdateWebhookInput!

Example

Query
mutation UpdateWebhook($input: UpdateWebhookInput!) {
  updateWebhook(input: $input) {
    id
    name
    url
    description
    headers
    triggerType
    disabled
    locationId
    createdAt
    updatedAt
    deletedAt
  }
}
Variables
{"input": UpdateWebhookInput}
Response
{
  "data": {
    "updateWebhook": {
      "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
      "name": "xyz789",
      "url": "abc123",
      "description": "abc123",
      "headers": {},
      "triggerType": "xyz789",
      "disabled": false,
      "locationId": NodeId,
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z",
      "deletedAt": "2007-12-03T10:15:30Z"
    }
  }
}

upsertActionPlanCategory

Response

Returns an ActionPlanCategory!

Arguments
Name Description
input - ActionPlanCategoryInput!

Example

Query
mutation UpsertActionPlanCategory($input: ActionPlanCategoryInput!) {
  upsertActionPlanCategory(input: $input) {
    id
    meta {
      name
      languageCode
    }
    color
    version
    nodeId
  }
}
Variables
{"input": ActionPlanCategoryInput}
Response
{
  "data": {
    "upsertActionPlanCategory": {
      "id": "abc123",
      "meta": [ActionPlanCategoryMeta],
      "color": "abc123",
      "version": 123,
      "nodeId": "abc123"
    }
  }
}

upsertActionPlanTasks

Description

Update/Insert new tasks for action plans, and return all existing tasks for this Action Plan. Note omitted tasks are not deleted.

Response

Returns [ActionPlanTask!]!

Arguments
Name Description
actionPlan - String!
input - [UpsertActionPlansTaskInput!]!

Example

Query
mutation UpsertActionPlanTasks(
  $actionPlan: String!,
  $input: [UpsertActionPlansTaskInput!]!
) {
  upsertActionPlanTasks(
    actionPlan: $actionPlan,
    input: $input
  ) {
    content
    checked
    version
    plan {
      state
      title
      pdcaState
      followUpInterval
      followUpState
      dueDate
      linkedProductionData
      version
      category {
        ...ActionPlanCategoryFragment
      }
      content {
        ...ActionPlanContentFragment
      }
      escalations {
        ...EscalationFragment
      }
      attachedFiles
      tasks {
        ...ActionPlanTaskFragment
      }
      id
    }
    id
  }
}
Variables
{
  "actionPlan": "abc123",
  "input": [UpsertActionPlansTaskInput]
}
Response
{
  "data": {
    "upsertActionPlanTasks": [
      {
        "content": "xyz789",
        "checked": true,
        "version": 123,
        "plan": ActionPlan,
        "id": "xyz789"
      }
    ]
  }
}

upsertConfiguration

Description

Update the schedule configuration.

Response

Returns a ScheduleConfiguration!

Arguments
Name Description
lineId - ID!
configuration - ScheduleConfigurationInput!

Example

Query
mutation UpsertConfiguration(
  $lineId: ID!,
  $configuration: ScheduleConfigurationInput!
) {
  upsertConfiguration(
    lineId: $lineId,
    configuration: $configuration
  ) {
    lineId
    disableLostConnectionAlarmOutsideWorkingHours
    automaticStopRegistration {
      enabled
      stopCauseId
      comment
      minimumStopMillis
      splitAtEnds
    }
    startDayOfWeek
    timezone
  }
}
Variables
{
  "lineId": "4",
  "configuration": ScheduleConfigurationInput
}
Response
{
  "data": {
    "upsertConfiguration": {
      "lineId": 4,
      "disableLostConnectionAlarmOutsideWorkingHours": false,
      "automaticStopRegistration": AutomaticStopRegistration,
      "startDayOfWeek": "MONDAY",
      "timezone": "abc123"
    }
  }
}

upsertEventActionConfigurations

Response

Returns an EventActionConfiguration!

Arguments
Name Description
peripheralId - ID!
value - String!
actions - [ActionsInput!]!

Example

Query
mutation UpsertEventActionConfigurations(
  $peripheralId: ID!,
  $value: String!,
  $actions: [ActionsInput!]!
) {
  upsertEventActionConfigurations(
    peripheralId: $peripheralId,
    value: $value,
    actions: $actions
  ) {
    peripheralId
    value
    actions {
      type
      lineId
      peripheralId
    }
  }
}
Variables
{
  "peripheralId": "4",
  "value": "abc123",
  "actions": [ActionsInput]
}
Response
{
  "data": {
    "upsertEventActionConfigurations": {
      "peripheralId": 4,
      "value": "xyz789",
      "actions": [Actions]
    }
  }
}

upsertSchedule

Description

Create a new schedule.

Response

Returns a Schedule!

Arguments
Name Description
lineId - ID!
validFrom - ScheduleTimeInput!
shifts - [ShiftInput!]!
weeklyTargets - TargetsInput
configuration - ScheduleConfigurationInput
isExceptionalWeek - Boolean Default = false

Example

Query
mutation UpsertSchedule(
  $lineId: ID!,
  $validFrom: ScheduleTimeInput!,
  $shifts: [ShiftInput!]!,
  $weeklyTargets: TargetsInput,
  $configuration: ScheduleConfigurationInput,
  $isExceptionalWeek: Boolean
) {
  upsertSchedule(
    lineId: $lineId,
    validFrom: $validFrom,
    shifts: $shifts,
    weeklyTargets: $weeklyTargets,
    configuration: $configuration,
    isExceptionalWeek: $isExceptionalWeek
  ) {
    id
    lineId
    validFrom {
      year
      week
    }
    validTo {
      year
      week
    }
    shifts {
      id
      name
      description
      timeRange {
        ...ShiftTimeRangeFragment
      }
      targets {
        ...TargetsFragment
      }
    }
    weeklyTargets {
      lineId
      validFrom {
        ...ScheduleTimeFragment
      }
      id
      oee
      oee2
      oee3
      tcu
      produced
      numberOfBatches
      mainOeeType
    }
    configuration {
      lineId
      disableLostConnectionAlarmOutsideWorkingHours
      automaticStopRegistration {
        ...AutomaticStopRegistrationFragment
      }
      startDayOfWeek
      timezone
    }
    isExceptionalWeek
    isFallbackSchedule
  }
}
Variables
{
  "lineId": "4",
  "validFrom": ScheduleTimeInput,
  "shifts": [ShiftInput],
  "weeklyTargets": TargetsInput,
  "configuration": ScheduleConfigurationInput,
  "isExceptionalWeek": false
}
Response
{
  "data": {
    "upsertSchedule": {
      "id": "4",
      "lineId": 4,
      "validFrom": ScheduleTime,
      "validTo": ScheduleTime,
      "shifts": [Shift],
      "weeklyTargets": Targets,
      "configuration": ScheduleConfiguration,
      "isExceptionalWeek": false,
      "isFallbackSchedule": false
    }
  }
}

upsertTarget

Description

Create or replace a weekly target.

Response

Returns a Targets!

Arguments
Name Description
lineId - ID!
validFrom - ScheduleTimeInput!
weeklyTargets - TargetsInput!

Example

Query
mutation UpsertTarget(
  $lineId: ID!,
  $validFrom: ScheduleTimeInput!,
  $weeklyTargets: TargetsInput!
) {
  upsertTarget(
    lineId: $lineId,
    validFrom: $validFrom,
    weeklyTargets: $weeklyTargets
  ) {
    lineId
    validFrom {
      year
      week
    }
    id
    oee
    oee2
    oee3
    tcu
    produced
    numberOfBatches
    mainOeeType
  }
}
Variables
{
  "lineId": "4",
  "validFrom": ScheduleTimeInput,
  "weeklyTargets": TargetsInput
}
Response
{
  "data": {
    "upsertTarget": {
      "lineId": "4",
      "validFrom": ScheduleTime,
      "id": "4",
      "oee": 987.65,
      "oee2": 987.65,
      "oee3": 123.45,
      "tcu": 987.65,
      "produced": 123.45,
      "numberOfBatches": 987.65,
      "mainOeeType": "OEE1"
    }
  }
}

upsertWiFi

Description

Add a WiFi configuration to the specified device.

`uuid' is deprecated and used to represent the allocated software identifier.

`id' refers to the hardware identifier of the device.

Response

Returns a Boolean!

Arguments
Name Description
uuid - ID
id - ID
input - NetworkInput!

Example

Query
mutation UpsertWiFi(
  $uuid: ID,
  $id: ID,
  $input: NetworkInput!
) {
  upsertWiFi(
    uuid: $uuid,
    id: $id,
    input: $input
  )
}
Variables
{"uuid": 4, "id": 4, "input": NetworkInput}
Response
{"data": {"upsertWiFi": true}}

withdrawLearningRoleFromUser

Internal use only
Response

Returns a UUID!

Arguments
Name Description
input - WithdrawLearningRoleFromUserInput!

Example

Query
mutation WithdrawLearningRoleFromUser($input: WithdrawLearningRoleFromUserInput!) {
  withdrawLearningRoleFromUser(input: $input)
}
Variables
{"input": WithdrawLearningRoleFromUserInput}
Response
{
  "data": {
    "withdrawLearningRoleFromUser": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
  }
}

withdrawSkillFromUser

Internal use only
Response

Returns a UUID!

Arguments
Name Description
input - WithdrawSkillFromUserInput!

Example

Query
mutation WithdrawSkillFromUser($input: WithdrawSkillFromUserInput!) {
  withdrawSkillFromUser(input: $input)
}
Variables
{"input": WithdrawSkillFromUserInput}
Response
{
  "data": {
    "withdrawSkillFromUser": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
  }
}

Types

APIToken

Fields
Field Name Description
tokenId - ID! Unique identifier for this token, used for revocation.
name - String The name of the API token, visible to the user.
description - String A description of what this API token is used for.
generatedAt - Date! The date this token was issued.
expiration - Float The expiration duration of a token if set to expire.
isActive - Boolean! Whether the token is active
userSub - ID! The owner (user) of this token.
Example
{
  "tokenId": "4",
  "name": "xyz789",
  "description": "xyz789",
  "generatedAt": "2007-12-03",
  "expiration": 123.45,
  "isActive": true,
  "userSub": 4
}

AbsoluteTime

Fields
Field Name Description
from - DateTime!
to - DateTime!
Example
{
  "from": "2007-12-03T10:15:30Z",
  "to": "2007-12-03T10:15:30Z"
}

AbsoluteTimeInput

Fields
Input Field Description
from - DateTime!
to - DateTime!
Example
{
  "from": "2007-12-03T10:15:30Z",
  "to": "2007-12-03T10:15:30Z"
}

AccessType

Values
Enum Value Description

VIEW

EDIT

OWNER

Example
"VIEW"

AccumulatorConfig

Fields
Field Name Description
resetsOnPowerOff - Boolean!
rolloverValue - Float!
rolloverThreshold - Int
Example
{"resetsOnPowerOff": false, "rolloverValue": 123.45, "rolloverThreshold": 987}

AccumulatorConfigInput

Fields
Input Field Description
resetsOnPowerOff - Boolean
rolloverValue - Float
rolloverThreshold - Int
Example
{"resetsOnPowerOff": false, "rolloverValue": 123.45, "rolloverThreshold": 987}

Action

Fields
Field Name Description
author - String!
details - String!
time - Date!
Example
{
  "author": "xyz789",
  "details": "xyz789",
  "time": "2007-12-03"
}

ActionMap

Fields
Field Name Description
make - Action!
take - Action
pending - Action
resolve - Action
Example
{
  "make": Action,
  "take": Action,
  "pending": Action,
  "resolve": Action
}

ActionPlan

Fields
Field Name Description
state - ActionPlanState!
title - String!
pdcaState - ActionPlanPDCAState
followUpInterval - ActionPlanFollowUpInterval!
followUpState - Int!
dueDate - DateTime
linkedProductionData - [String!]!
version - Int!
category - ActionPlanCategory!
content - [ActionPlanContent!]!
escalations - [Escalation!]!
attachedFiles - [String!]!
tasks - [ActionPlanTask!]!
id - String!
Example
{
  "state": "OPEN",
  "title": "xyz789",
  "pdcaState": "PLAN",
  "followUpInterval": "DAILY",
  "followUpState": 123,
  "dueDate": "2007-12-03T10:15:30Z",
  "linkedProductionData": ["xyz789"],
  "version": 123,
  "category": ActionPlanCategory,
  "content": [ActionPlanContent],
  "escalations": [Escalation],
  "attachedFiles": ["xyz789"],
  "tasks": [ActionPlanTask],
  "id": "xyz789"
}

ActionPlanCategory

Fields
Field Name Description
id - String!
meta - [ActionPlanCategoryMeta!]!
color - String!
version - Int!
nodeId - String
Example
{
  "id": "abc123",
  "meta": [ActionPlanCategoryMeta],
  "color": "abc123",
  "version": 123,
  "nodeId": "abc123"
}

ActionPlanCategoryInput

Fields
Input Field Description
id - String
meta - [ActionPlanCategoryMetaInput!]!
color - String!
version - Int
nodeId - String
Example
{
  "id": "abc123",
  "meta": [ActionPlanCategoryMetaInput],
  "color": "xyz789",
  "version": 123,
  "nodeId": "xyz789"
}

ActionPlanCategoryMeta

Fields
Field Name Description
name - String!
languageCode - String!
Example
{
  "name": "xyz789",
  "languageCode": "abc123"
}

ActionPlanCategoryMetaInput

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

ActionPlanContent

Fields
Field Name Description
column - String!
content - String!
Example
{
  "column": "abc123",
  "content": "xyz789"
}

ActionPlanContentInput

Fields
Input Field Description
column - String!
content - String!
Example
{
  "column": "xyz789",
  "content": "xyz789"
}

ActionPlanFollowUpInterval

Values
Enum Value Description

DAILY

WEEKLY

MONTHLY

SHIFT

Example
"DAILY"

ActionPlanPDCAState

Values
Enum Value Description

PLAN

DO

CHECK

ACT

Example
"PLAN"

ActionPlanSortField

Values
Enum Value Description

CATEGORY

CREATION_DATE

PDCA_STATUS

FOLLOW_UP_STATUS

DUE_DATE

Example
"CATEGORY"

ActionPlanState

Values
Enum Value Description

OPEN

ARCHIVED

Example
"OPEN"

ActionPlanTask

Fields
Field Name Description
content - String!
checked - Boolean!
version - Int!
plan - ActionPlan!
id - String!
Example
{
  "content": "xyz789",
  "checked": true,
  "version": 123,
  "plan": ActionPlan,
  "id": "abc123"
}

ActionPlansPreSignedUrlsForAttachment

Fields
Field Name Description
upload - String!
download - String!
Example
{
  "upload": "xyz789",
  "download": "xyz789"
}

ActionPlansSentReminderResponse

Fields
Field Name Description
email - String!
Example
{"email": "xyz789"}

Actions

Description

Automated actions triggered by equipment events. Defines responses to specific equipment states or conditions.

Fields
Field Name Description
type - String! Type of action to be executed.
lineId - ID Target production line for the action.
peripheralId - ID Target peripheral device for the action.
Example
{
  "type": "abc123",
  "lineId": "4",
  "peripheralId": "4"
}

ActionsInput

Description

Input for configuring automated actions triggered by events. Allows setup of equipment responses to specific operational conditions.

Fields
Input Field Description
type - String! Type of automated action to configure.
lineId - ID Target production line ID for the action.
peripheralId - ID Target peripheral device ID for the action.
Example
{
  "type": "abc123",
  "lineId": 4,
  "peripheralId": "4"
}

Activity

Fields
Field Name Description
id - ActivityId!
status - ActivityStatus!
activityTemplate - ActivityTemplate!
trigger - Trigger!
customFormData - CustomFormData
stopRegistration - ActivityStopRegistration
createdAt - DateTime!
archivedAt - DateTime
version - Int!
locationId - NodeId!
isPassing - Boolean
batch - Batch Production batch associated with this activity. Used to track batch-specific workflow tasks and approvals.
line - Line Production line where this activity is executed. Provides context for line-specific procedures and workflows.
Example
{
  "id": ActivityId,
  "status": "PENDING",
  "activityTemplate": ActivityTemplate,
  "trigger": Trigger,
  "customFormData": CustomFormData,
  "stopRegistration": ActivityStopRegistration,
  "createdAt": "2007-12-03T10:15:30Z",
  "archivedAt": "2007-12-03T10:15:30Z",
  "version": 123,
  "locationId": NodeId,
  "isPassing": true,
  "batch": Batch,
  "line": Line
}

ActivityConnection

Fields
Field Name Description
pageInfo - PageInfo! Information to aid in pagination.
edges - [ActivityEdge!]! A list of edges.
nodes - [Activity!]! A list of nodes.
Example
{
  "pageInfo": PageInfo,
  "edges": [ActivityEdge],
  "nodes": [Activity]
}

ActivityEdge

Description

An edge in a connection.

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

ActivityFilter

Fields
Input Field Description
activityTemplateIds - [ActivityTemplateId!]
customFormIds - [CustomFormId!]
locationIds - [NodeId!]
statuses - [ActivityStatus!]
archivedBefore - DateTime
archivedAfter - DateTime
completedBefore - DateTime
completedAfter - DateTime
createdBefore - DateTime
createdAfter - DateTime
customFormDataValues - [CustomFormDataFilter!]
trigger - TriggerFilter
isPassing - Boolean
Example
{
  "activityTemplateIds": [ActivityTemplateId],
  "customFormIds": [CustomFormId],
  "locationIds": [NodeId],
  "statuses": ["PENDING"],
  "archivedBefore": "2007-12-03T10:15:30Z",
  "archivedAfter": "2007-12-03T10:15:30Z",
  "completedBefore": "2007-12-03T10:15:30Z",
  "completedAfter": "2007-12-03T10:15:30Z",
  "createdBefore": "2007-12-03T10:15:30Z",
  "createdAfter": "2007-12-03T10:15:30Z",
  "customFormDataValues": [CustomFormDataFilter],
  "trigger": TriggerFilter,
  "isPassing": false
}

ActivityId

Example
ActivityId

ActivityOrdering

Fields
Input Field Description
key - ActivityOrderingKey!
direction - OrderDirection!
Example
{"key": "ID", "direction": "ASCENDING"}

ActivityOrderingKey

Values
Enum Value Description

ID

CREATED_AT

ARCHIVED_AT

STATUS

LOCATION_ID

Example
"ID"

ActivityStatus

Values
Enum Value Description

PENDING

SKIPPED

COMPLETED

Example
"PENDING"

ActivityStopCause

Fields
Field Name Description
id - ID!
name - String!
description - String!
translations - [StopCauseTranslation!]!
stopType - String!
category - ActivityStopCauseCategory!
Example
{
  "id": "4",
  "name": "xyz789",
  "description": "xyz789",
  "translations": [StopCauseTranslation],
  "stopType": "abc123",
  "category": ActivityStopCauseCategory
}

ActivityStopCauseCategory

Fields
Field Name Description
id - ID!
name - String!
translations - [StopCauseCategoryTranslation!]!
Example
{
  "id": "4",
  "name": "xyz789",
  "translations": [StopCauseCategoryTranslation]
}

ActivityStopCauseInput

Fields
Input Field Description
id - ID!
translations - [StopCauseTranslationInput!]!
stopType - String!
category - StopCauseCategoryInput!
Example
{
  "id": 4,
  "translations": [StopCauseTranslationInput],
  "stopType": "xyz789",
  "category": StopCauseCategoryInput
}

ActivityStopRegistration

Fields
Field Name Description
start - DateTime!
end - DateTime
comment - String
initials - String
stopCause - ActivityStopCause!
Example
{
  "start": "2007-12-03T10:15:30Z",
  "end": "2007-12-03T10:15:30Z",
  "comment": "xyz789",
  "initials": "abc123",
  "stopCause": ActivityStopCause
}

ActivityStopRegistrationInput

Fields
Input Field Description
start - DateTime!
end - DateTime
comment - String
initials - String
stopCause - ActivityStopCauseInput!
Example
{
  "start": "2007-12-03T10:15:30Z",
  "end": "2007-12-03T10:15:30Z",
  "comment": "abc123",
  "initials": "abc123",
  "stopCause": ActivityStopCauseInput
}

ActivityTag

Fields
Field Name Description
id - ActivityTagId!
name - String!
createdAt - DateTime!
modifiedAt - DateTime!
deletedAt - DateTime
templateCount - Int!
Example
{
  "id": ActivityTagId,
  "name": "abc123",
  "createdAt": "2007-12-03T10:15:30Z",
  "modifiedAt": "2007-12-03T10:15:30Z",
  "deletedAt": "2007-12-03T10:15:30Z",
  "templateCount": 987
}

ActivityTagId

Example
ActivityTagId

ActivityTagInput

Fields
Input Field Description
translations - [ActivityTagTranslationInput!]!
Example
{"translations": [ActivityTagTranslationInput]}

ActivityTagTranslationInput

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

ActivityTemplate

Fields
Field Name Description
id - ActivityTemplateId!
title - String!
description - String!
translations - [ActivityTemplateTranslation!]!
customFormId - CustomFormId!
customFormVersion - Int!
triggers - [Trigger!]!
expiresAfterMinutes - Int
locationIds - [NodeId!]!
version - Int!
createdAt - DateTime!
deletedAt - DateTime
versions - VersionedActivityTemplatesConnection! Internal use only
Arguments
after - Int
before - Int
first - Int
last - Int
customForm - CustomForm! Internal use only
tags - [ActivityTag!]! Internal use only
Example
{
  "id": ActivityTemplateId,
  "title": "abc123",
  "description": "abc123",
  "translations": [ActivityTemplateTranslation],
  "customFormId": CustomFormId,
  "customFormVersion": 987,
  "triggers": [Trigger],
  "expiresAfterMinutes": 123,
  "locationIds": [NodeId],
  "version": 123,
  "createdAt": "2007-12-03T10:15:30Z",
  "deletedAt": "2007-12-03T10:15:30Z",
  "versions": VersionedActivityTemplatesConnection,
  "customForm": CustomForm,
  "tags": [ActivityTag]
}

ActivityTemplateConnection

Fields
Field Name Description
pageInfo - PageInfo! Information to aid in pagination.
edges - [ActivityTemplateEdge!]! A list of edges.
nodes - [ActivityTemplate!]! A list of nodes.
Example
{
  "pageInfo": PageInfo,
  "edges": [ActivityTemplateEdge],
  "nodes": [ActivityTemplate]
}

ActivityTemplateEdge

Description

An edge in a connection.

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

ActivityTemplateFilter

Fields
Input Field Description
locationIds - [NodeId!]
triggerConditions - TriggerConditionsFilter
trigger - TriggerFilter
search - String
Example
{
  "locationIds": [NodeId],
  "triggerConditions": TriggerConditionsFilter,
  "trigger": TriggerFilter,
  "search": "xyz789"
}

ActivityTemplateId

Example
ActivityTemplateId

ActivityTemplateInput

Fields
Input Field Description
translations - [ActivityTemplateTranslationInput!]!
customFormId - CustomFormId
customFormVersion - Int
triggers - [TriggerInput!]!
locationIds - [NodeId!]!
expiresAfterMinutes - Int
tags - [ActivityTagId!]
fields - [CustomFormFieldInput!]
requireInitials - Boolean
Example
{
  "translations": [ActivityTemplateTranslationInput],
  "customFormId": CustomFormId,
  "customFormVersion": 123,
  "triggers": [TriggerInput],
  "locationIds": [NodeId],
  "expiresAfterMinutes": 123,
  "tags": [ActivityTagId],
  "fields": [CustomFormFieldInput],
  "requireInitials": true
}

ActivityTemplateTranslation

Fields
Field Name Description
title - String!
description - String!
languageCode - String!
Example
{
  "title": "xyz789",
  "description": "abc123",
  "languageCode": "xyz789"
}

ActivityTemplateTranslationInput

Fields
Input Field Description
title - String!
description - String!
languageCode - String!
Example
{
  "title": "xyz789",
  "description": "xyz789",
  "languageCode": "xyz789"
}

ActivityTriggerType

Fields
Field Name Description
manual - ManualTriggerOptions
everyXProduced - EveryXProducedTriggerOptions
everyXMinutes - EveryXMinutesTriggerOptions
stopRegistration - StopRegistrationTriggerOptions
batchStart - BatchStartTriggerOptions
batchEnd - BatchEndTriggerOptions
batchProgress - BatchProgressTriggerOptions
shiftStart - ShiftStartTriggerOptions
shiftEnd - ShiftEndTriggerOptions
fixedTime - FixedTimeTriggerOptions
Example
{
  "manual": ManualTriggerOptions,
  "everyXProduced": EveryXProducedTriggerOptions,
  "everyXMinutes": EveryXMinutesTriggerOptions,
  "stopRegistration": StopRegistrationTriggerOptions,
  "batchStart": BatchStartTriggerOptions,
  "batchEnd": BatchEndTriggerOptions,
  "batchProgress": BatchProgressTriggerOptions,
  "shiftStart": ShiftStartTriggerOptions,
  "shiftEnd": ShiftEndTriggerOptions,
  "fixedTime": FixedTimeTriggerOptions
}

ActivityTriggerTypeInput

Example
{
  "manual": ManualTriggerOptionsInput,
  "everyXProduced": EveryXProducedTriggerOptionsInput,
  "everyXMinutes": EveryXMinutesTriggerOptionsInput,
  "stopRegistration": StopRegistrationTriggerOptionsInput,
  "batchStart": BatchStartTriggerOptionsInput,
  "batchEnd": BatchEndTriggerOptionsInput,
  "batchProgress": BatchProgressTriggerOptionsInput,
  "shiftStart": ShiftStartTriggerOptionsInput,
  "shiftEnd": ShiftEndTriggerOptionsInput,
  "fixedTime": FixedTimeTriggerOptionsInput
}

Alarm

Fields
Field Name Description
id - ID!
name - String!
description - String!
peripheralId - ID!
status - AlarmStatus!
threshold - Int!
repeatNotification - Boolean!
enabled - Boolean!
type - AlarmType!
alarmConfiguration - AlarmConfiguration!
languageCode - String!
snoozeDuration - Int
alarmLogs - AlarmLogs!
Arguments
exclusiveStartKey - AlarmLogExclusiveStartKey
limit - Int
filter - AlarmLogFilter
order - AlarmLogOrder
subscribers - [SubscriberOutput!]!
timeRange - TimeRange
peripheral - Peripheral Peripheral device (sensor/equipment) that this alarm monitors. Links alarms to specific equipment for targeted monitoring.
Example
{
  "id": 4,
  "name": "xyz789",
  "description": "abc123",
  "peripheralId": 4,
  "status": "NORMAL",
  "threshold": 123,
  "repeatNotification": false,
  "enabled": false,
  "type": "AboveX",
  "alarmConfiguration": AlarmConfiguration,
  "languageCode": "xyz789",
  "snoozeDuration": 123,
  "alarmLogs": AlarmLogs,
  "subscribers": [SubscriberOutput],
  "timeRange": TimeRange,
  "peripheral": Peripheral
}

AlarmConfiguration

Description

Alarm configuration parameters for threshold and timing conditions. Defines the specific values and timeframes that trigger alarm conditions.

Fields
Field Name Description
x - Float Threshold value parameter (X) for comparison operations.
t - Float Time duration parameter (T) in seconds for time-based conditions.
y - Float Time window parameter (Y) in seconds for windowed analysis.
n - Float Sample count parameter (N) for frequency-based conditions.
stopType - StopTypeForAlarms Specific downtime type that triggers stop-based alarms.
Example
{"x": 123.45, "t": 123.45, "y": 987.65, "n": 123.45, "stopType": "NO_ACT"}

AlarmConfigurationInput

Description

Input parameters for creating or updating alarm configurations. Allows operators and engineers to define custom alarm conditions.

Fields
Input Field Description
x - Float Threshold value parameter (X) for triggering alarms.
t - Float Time duration parameter (T) in seconds for time-based alarm logic.
y - Float Time window parameter (Y) in seconds for analysis periods.
n - Float Sample count parameter (N) for frequency analysis.
stopType - StopTypeForAlarms Downtime category that should trigger this alarm.
Example
{"x": 123.45, "t": 987.65, "y": 987.65, "n": 987.65, "stopType": "NO_ACT"}

AlarmLog

Fields
Field Name Description
status - AlarmStatus!
timeRange - TimeRange!
lastNotification - Date
createdAt - Date
start - Date
config - AlarmLogConfig
Example
{
  "status": "NORMAL",
  "timeRange": TimeRange,
  "lastNotification": "2007-12-03",
  "createdAt": "2007-12-03",
  "start": "2007-12-03",
  "config": AlarmLogConfig
}

AlarmLogConfig

Fields
Field Name Description
stopType - StopTypeForAlarms
t - Float
Example
{"stopType": "NO_ACT", "t": 987.65}

AlarmLogExclusiveStartKey

Fields
Input Field Description
alarmId - String!
start - Date!
Example
{
  "alarmId": "xyz789",
  "start": "2007-12-03"
}

AlarmLogFilter

Fields
Input Field Description
status - AlarmStatus
start - String
Example
{"status": "NORMAL", "start": "xyz789"}

AlarmLogLastEvaluatedKey

Fields
Field Name Description
alarmId - String!
start - Date!
Example
{
  "alarmId": "abc123",
  "start": "2007-12-03"
}

AlarmLogOrder

Fields
Input Field Description
byStart - Ordering
Example
{"byStart": "Ascending"}

AlarmLogs

Fields
Field Name Description
lastEvaluatedKey - AlarmLogLastEvaluatedKey
entries - [AlarmLog]!
Example
{
  "lastEvaluatedKey": AlarmLogLastEvaluatedKey,
  "entries": [AlarmLog]
}

AlarmStatus

Description

Current status of alarm conditions. Tracks the operational state of equipment alarms for operator awareness.

Values
Enum Value Description

NORMAL

Equipment operating within normal parameters.

ONGOING

Alarm condition is currently active and triggering.

STOPPED

Equipment has stopped, alarm condition ended.

SNOOZED

Alarm temporarily silenced by operator.
Example
"NORMAL"

AlarmType

Description

Alarm trigger conditions for equipment monitoring. Defines various threshold and time-based conditions for automatic alarm generation.

Values
Enum Value Description

AboveX

Triggers when value exceeds threshold X.

BelowX

Triggers when value falls below threshold X.

AboveXForTSeconds

Triggers when value stays above X for T seconds continuously.

BelowXForTSeconds

Triggers when value stays below X for T seconds continuously.

AboveXForTSecondsWithinYTimeNTimes

Triggers when value exceeds X for T seconds, N times within Y time window.

BelowXForTSecondsWithinYTimeNTimes

Triggers when value falls below X for T seconds, N times within Y time window.

SumOfTAboveXWithinYTime

Triggers when cumulative time above X exceeds T seconds within Y time window.

SumOfTBelowXWithinYTime

Triggers when cumulative time below X exceeds T seconds within Y time window.

StopForTSeconds

Triggers when equipment stops for T seconds continuously.

AvgSpeedBelowXPercentForTSeconds

Triggers when average speed falls below X percent for T seconds.
Example
"AboveX"

AnalogInputRange

Values
Enum Value Description

NEGATIVE_TEN_TO_TEN_VOLTS

ZERO_TO_TEN_VOLTS

ZERO_TO_FIVE_VOLTS

NEGATIVE_FIVE_TO_FIVE_VOLTS

ZERO_TO_TWENTY_MILLIAMPS

ZERO_TO_TWENTYFOUR_MILLIAMPS

FOUR_TO_TWENTY_MILLIAMPS

NEGATIVE_TWENTYFIVE_TO_TWENTYFIVE_MILLIAMPS

Example
"NEGATIVE_TEN_TO_TEN_VOLTS"

AnalyticsDocumentType

Values
Enum Value Description

PARETO

CHANGEOVER

Example
"PARETO"

Andon

Description

Andon is the operator-technician communication maintenance module of Factbird. This module enables operators to contact technicians from the stop registration dialog or through the API from the andon-prefixed mutations listed under Mutations.

An Andon call can be in one of four states, called, taken, pending and resolved. Pending is an experimental state as of this writing and is not publicly available. These states enable the operator and technician to document the steps taken to resolve a technical problem.

This full history of events is tracked by summary of details for each individual call.

Fields
Field Name Description
calls - [Call!]! The list of Andon calls in a given week with filters enabling to only list resolved, unresolved and lines initiated from a specific line.
Arguments
time - Date
resolved - Boolean
lineId - ID
companyId - ID! Currently scoped per company, this identifier is subject to change.
extensions - [Extension!] Not available for public use and is subject to change for external system interfacing.
schedule - MaintenanceSchedule To be replaced by _schedule with Andon 2.0.
tags - [Tag!]! To be redesigned with Andon 3.0.
Arguments
time - Date
lineId - ID
supportTypes - [SupportType!]! To be replaced by roles with Andon 2.0.
Arguments
available - Boolean
workOrderKeys - [WorkOrderKey!] To be redesigned with Andon 3.0.
Arguments
tagIds - [ID!]
workers - [Worker!]! The list of set up `workers'. A worker represents someone at the receiving end for notifications. For that, Factbird requires information about the email and/or phone number of that person.
roles - [AndonRole!]! The list of configured roles that a worker can be assigned. Electrician, Blacksmith etc.
schedules - [AndonSchedule!]!
_schedule - AndonSchedule!
Arguments
scheduleId - ID!
Example
{
  "calls": [Call],
  "companyId": 4,
  "extensions": [Extension],
  "schedule": MaintenanceSchedule,
  "tags": [Tag],
  "supportTypes": [SupportType],
  "workOrderKeys": [WorkOrderKey],
  "workers": [Worker],
  "roles": [AndonRole],
  "schedules": [AndonSchedule],
  "_schedule": AndonSchedule
}

AndonRole

Fields
Field Name Description
id - ID!
name - String!
escalationConfiguration - [EscalationConfiguration!]
Example
{
  "id": 4,
  "name": "abc123",
  "escalationConfiguration": [EscalationConfiguration]
}

AndonSchedule

Fields
Field Name Description
id - ID!
name - String!
lineIds - [ID!]!
shifts - [AndonShift!]!
Arguments
input - AndonShiftInput
shift - [AndonShift!]!
Arguments
shiftId - ID!
input - AndonShiftInput
lines - [Line!]! Production lines covered by this notification schedule. Ensures appropriate operator coverage for production support.
Example
{
  "id": 4,
  "name": "xyz789",
  "lineIds": [4],
  "shifts": [AndonShift],
  "shift": [AndonShift],
  "lines": [Line]
}

AndonShift

Fields
Field Name Description
id - ID!
name - String!
duration - Float!
rRuleSet - String!
attendees - [AttendingWorker!]!
Arguments
input - AttendeesInput
description - String
Example
{
  "id": "4",
  "name": "abc123",
  "duration": 987.65,
  "rRuleSet": "abc123",
  "attendees": [AttendingWorker],
  "description": "xyz789"
}

AndonShiftInput

Fields
Input Field Description
timeFilter - TimeFilter
Example
{"timeFilter": TimeFilter}

AppClient

Fields
Field Name Description
id - ID!
name - String!
groups - [Group!]!
Example
{
  "id": 4,
  "name": "xyz789",
  "groups": [Group]
}

AssetNodeMeta

Fields
Field Name Description
name - String!
description - String!
labels - [String!]!
Example
{
  "name": "abc123",
  "description": "xyz789",
  "labels": ["abc123"]
}

AssetNodeMetaInput

Fields
Input Field Description
name - String!
description - String!
labels - [String!]
Example
{
  "name": "xyz789",
  "description": "abc123",
  "labels": ["xyz789"]
}

AssistantConversation

Description

A conversation between a human and an AI assistant

Fields
Field Name Description
id - UUID!
messages - [ConversationMessage!]!
Example
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "messages": [ConversationMessage]
}

AttendanceInput

Fields
Input Field Description
workerId - ID!
exceptions - [Date!]!
Example
{
  "workerId": "4",
  "exceptions": ["2007-12-03"]
}

Attendee

Description

Support team member available for production assistance. Defines contact information and availability for Andon system escalation.

Fields
Field Name Description
id - ID! Unique identifier for this attendee.
supportId - ID! Support group identifier this attendee belongs to.
email - String Email address for notifications.
phoneNumber - String Phone number for SMS notifications.
userSub - String User subscription identifier (experimental). This feature is experimental and might be replaced
dateExceptions - [Date!]! Dates when this attendee is not available.
messages - [Message!]! Communication messages for this attendee.
Example
{
  "id": "4",
  "supportId": "4",
  "email": "xyz789",
  "phoneNumber": "xyz789",
  "userSub": "xyz789",
  "dateExceptions": ["2007-12-03"],
  "messages": [Message]
}

AttendeesInput

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

AttendingWorker

Fields
Field Name Description
id - ID!
name - String!
email - String
phoneNumber - String
userSub - String This feature is experimental and might be replaced
role - AndonRole! Workers may now reference multiple roles.
roles - [AndonRole!]!
preferredSchedules - [AndonSchedule!]!
isPermanent - Boolean
isExcluded - Boolean
Example
{
  "id": 4,
  "name": "xyz789",
  "email": "xyz789",
  "phoneNumber": "xyz789",
  "userSub": "abc123",
  "role": AndonRole,
  "roles": [AndonRole],
  "preferredSchedules": [AndonSchedule],
  "isPermanent": false,
  "isExcluded": false
}

AuthConfiguration

Fields
Field Name Description
type - AuthType!
Example
{"type": "ONLY_SSO"}

AuthType

Values
Enum Value Description

ONLY_SSO

ONLY_DIRECT_LOGIN

Example
"ONLY_SSO"

AutomaticStopRegistration

Description

Configuration for automatic stop registration.

Fields
Field Name Description
enabled - Boolean! Whether or not automatic registration is enabled.
stopCauseId - ID What stop cause ID to register the time outside of shifts with.
comment - String Optional comment to add to autoregistered stops.
minimumStopMillis - Int The minimum length of an unregistered stop before it will be automatically stopped, in milliseconds.
splitAtEnds - Boolean Whether or not to split autoregistered stops at shift boundaries.
Example
{
  "enabled": false,
  "stopCauseId": "4",
  "comment": "abc123",
  "minimumStopMillis": 123,
  "splitAtEnds": true
}

AutomaticStopRegistrationInput

Description

Input for configuring automatic stop registration.

Fields
Input Field Description
enabled - Boolean! Whether or not automatic registration is enabled.
stopCauseId - ID What stop cause ID to register the time outside of shifts with.
comment - String Optional comment to add to autoregistered stops.
minimumStopMillis - Int The minimum length of an unregistered stop before it will be automatically stopped, in milliseconds.
splitAtEnds - Boolean Whether or not to split autoregistered stops at shift boundaries.
Example
{
  "enabled": false,
  "stopCauseId": 4,
  "comment": "abc123",
  "minimumStopMillis": 123,
  "splitAtEnds": true
}

AverageProducedInput

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

BarChart

Fields
Field Name Description
xAxisLabel - String! The label to use for the x-axis.
yAxisLabel - String! The label to use for the y-axis.
xAxisField - String! The field to use for the x-axis. This is a reference to the data field in the VisualizationOptions.
yAxisField - String! The field to use for the y-axis. This is a reference to the data field in the VisualizationOptions.
xAxisType - String! The type to use for the x-axis.
xAxisTimeUnit - String The time unit to use for the x-axis.
xAxisSortField - String The field to use for sorting the x-axis.
yAxisType - String! The type to use for the y-axis.
yAxisDomain - [JSON!] The domain to use for the y-axis.
colorField - String The color to use
Example
{
  "xAxisLabel": "xyz789",
  "yAxisLabel": "xyz789",
  "xAxisField": "xyz789",
  "yAxisField": "abc123",
  "xAxisType": "xyz789",
  "xAxisTimeUnit": "abc123",
  "xAxisSortField": "xyz789",
  "yAxisType": "xyz789",
  "yAxisDomain": [{}],
  "colorField": "xyz789"
}

BarChartOrder

Values
Enum Value Description

METRIC_ASCENDING

METRIC_DESCENDING

GROUP_ASCENDING

GROUP_DESCENDING

Example
"METRIC_ASCENDING"

BarWidgetConfigInput

Fields
Input Field Description
kpi - WidgetKpi!
groupBy - BarWidgetGroupBy!
maxBars - Int
orderBy - BarChartOrder!
Example
{
  "kpi": "OEE1",
  "groupBy": "BY_LINE",
  "maxBars": 123,
  "orderBy": "METRIC_ASCENDING"
}

BarWidgetCustomConfig

Fields
Field Name Description
kpi - WidgetKpi!
groupBy - BarWidgetGroupBy!
maxBars - Int
orderBy - BarChartOrder!
target - MultiTargetConfig
Example
{
  "kpi": "OEE1",
  "groupBy": "BY_LINE",
  "maxBars": 987,
  "orderBy": "METRIC_ASCENDING",
  "target": MultiTargetConfig
}

BarWidgetCustomConfigInput

Fields
Input Field Description
kpi - WidgetKpi!
groupBy - BarWidgetGroupBy! How to group the data
maxBars - Int Maximum number of bars to display in the bar chart
orderBy - BarChartOrder! How to order the bars according to the kpi
target - TargetConfigInput
Example
{
  "kpi": "OEE1",
  "groupBy": "BY_LINE",
  "maxBars": 123,
  "orderBy": "METRIC_ASCENDING",
  "target": TargetConfigInput
}

BarWidgetGroupBy

Values
Enum Value Description

BY_LINE

BY_DAY

Example
"BY_LINE"

BaseBatch

Description

Core batch information shared across different batch representations. Provides essential timing and identification data for production batches.

Fields
Field Name Description
batchId - ID! Unique identifier for the production batch.
batchNumber - String! Human-readable batch identifier for operators and planning.
plannedStart - Date Scheduled start time for batch production.
actualStart - Date Actual time when batch production began.
actualStop - Date Actual time when batch production completed.
Possible Types
BaseBatch Types

Batch

MinimalBatch

Example
{
  "batchId": 4,
  "batchNumber": "xyz789",
  "plannedStart": "2007-12-03",
  "actualStart": "2007-12-03",
  "actualStop": "2007-12-03"
}

BaseProduct

Fields
Field Name Description
productId - ID!
name - String!
itemNumber - String!
validatedLineSpeed - Float!
expectedAverageSpeed - Float!
parameters - [Parameter!]!
Possible Types
BaseProduct Types

Product

MinimalProduct

Example
{
  "productId": "4",
  "name": "xyz789",
  "itemNumber": "xyz789",
  "validatedLineSpeed": 123.45,
  "expectedAverageSpeed": 987.65,
  "parameters": [Parameter]
}

BaseStop

Fields
Field Name Description
_id - ID!
timeRange - TimeRange!
originalStart - Date!
ongoing - Boolean!
duration - Float!
stopCause - StopCause
comment - String
initials - String
countermeasure - String
countermeasureInitials - String
registeredTime - Date
isMicroStop - Boolean!
isAutomaticRegistration - Boolean
standalone - StandaloneConfiguration
Possible Types
BaseStop Types

Stop

ChangeoverStop

Example
{
  "_id": 4,
  "timeRange": TimeRange,
  "originalStart": "2007-12-03",
  "ongoing": false,
  "duration": 987.65,
  "stopCause": StopCause,
  "comment": "xyz789",
  "initials": "xyz789",
  "countermeasure": "xyz789",
  "countermeasureInitials": "xyz789",
  "registeredTime": "2007-12-03",
  "isMicroStop": true,
  "isAutomaticRegistration": false,
  "standalone": StandaloneConfiguration
}

Batch

Fields
Field Name Description
actualStart - Date
actualStop - Date
amount - Float!
batchId - ID!
batchNumber - String!
comment - String
lineId - ID!
manualScrap - Float
plannedStart - Date
produced - Float No longer available. Use stats { data { produced } } instead
product - Product!
sorting - String!
state - BatchState!
tags - [String!]
controls - [BatchControl!]!
samples - [Sample!]! Production count data recorded during this batch. Shows production progress and rate throughout the batch execution.
Arguments
points - Int
stops - [Stop!]! Downtime events that occurred during this batch. Critical for understanding batch efficiency and loss causes.
Arguments
filter - StopFilter
languageCode - String
stopStats - StopStats! Aggregated stop analysis for this batch. Provides downtime summary and categorization.
Arguments
filter - StopFilter
stats - Stat! Complete performance metrics for this batch. Includes OEE, cycle time, throughput, and efficiency calculations.
scrap - [Sample!]! Quality data showing scrapped units during this batch. Essential for calculating batch yield and identifying quality issues.
Arguments
points - Int
createdBy - User! User who created or scheduled this batch.
line - Line! Production line where this batch was executed.
Arguments
filter - LineFilterInput
languageCode - String
plannedEtc - Date Estimated completion time based on planned start date and shift schedules. Accounts for breaks, shift changes, and non-production time.
actualEtc - Date Estimated completion time based on actual start date and current progress. Real-time prediction considering actual performance and remaining work.
Example
{
  "actualStart": "2007-12-03",
  "actualStop": "2007-12-03",
  "amount": 987.65,
  "batchId": 4,
  "batchNumber": "xyz789",
  "comment": "xyz789",
  "lineId": "4",
  "manualScrap": 123.45,
  "plannedStart": "2007-12-03",
  "produced": 987.65,
  "product": Product,
  "sorting": "xyz789",
  "state": "COMPLETED",
  "tags": ["abc123"],
  "controls": [BatchControl],
  "samples": [Sample],
  "stops": [Stop],
  "stopStats": StopStats,
  "stats": Stat,
  "scrap": [Sample],
  "createdBy": User,
  "line": Line,
  "plannedEtc": "2007-12-03",
  "actualEtc": "2007-12-03"
}

BatchControl

Fields
Field Name Description
batchControlId - ID!
batchId - ID!
comment - String
controlReceiptId - ID!
controlReceiptName - String!
entryId - ID!
fieldValues - [BatchControlFieldValue!]!
followUp - FollowUpSettings!
history - [BatchControlHistory!]!
initials - String
initialsSettings - InitialsSettings!
originalControl - OriginalControlDetails
status - BatchControlStatus!
timeControlUpdated - Date
timeControlled - Date
timeTriggered - Date!
title - String
trigger - ControlTrigger!
Example
{
  "batchControlId": "4",
  "batchId": 4,
  "comment": "abc123",
  "controlReceiptId": "4",
  "controlReceiptName": "abc123",
  "entryId": 4,
  "fieldValues": [BatchControlFieldValue],
  "followUp": FollowUpSettings,
  "history": [BatchControlHistory],
  "initials": "xyz789",
  "initialsSettings": "REQUIRED_IF_OUTSIDE_LIMITS",
  "originalControl": OriginalControlDetails,
  "status": "CANCELED",
  "timeControlUpdated": "2007-12-03",
  "timeControlled": "2007-12-03",
  "timeTriggered": "2007-12-03",
  "title": "abc123",
  "trigger": ControlTrigger
}

BatchControlFieldInput

Fields
Input Field Description
fieldId - ID!
value - String!
Example
{
  "fieldId": "4",
  "value": "xyz789"
}

BatchControlFieldValue

Fields
Field Name Description
controlReceiptField - ControlReceiptEntryField!
value - String
Example
{
  "controlReceiptField": ControlReceiptEntryField,
  "value": "abc123"
}

BatchControlHistory

Fields
Field Name Description
comment - String
fieldValues - [BatchControlFieldValue!]!
initials - String
status - BatchControlStatus!
timeControlUpdated - Date
timeControlled - Date
Example
{
  "comment": "abc123",
  "fieldValues": [BatchControlFieldValue],
  "initials": "abc123",
  "status": "CANCELED",
  "timeControlUpdated": "2007-12-03",
  "timeControlled": "2007-12-03"
}

BatchControlList

Fields
Field Name Description
nextToken - ID
items - [BatchControl!]!
Example
{"nextToken": 4, "items": [BatchControl]}

BatchControlStatus

Values
Enum Value Description

CANCELED

DONE

PENDING

Example
"CANCELED"

BatchEndTriggerOptions

Fields
Field Name Description
placeholder - Boolean
Example
{"placeholder": true}

BatchEndTriggerOptionsInput

Fields
Input Field Description
placeholder - Boolean
Example
{"placeholder": true}

BatchFilter

Fields
Input Field Description
batchId - ID
batchNumber - String
exclusiveFromCheck - Boolean
from - Date
includeSurroundingBatches - Boolean
itemNumber - String
packagingId - ID
productId - ID
productIds - [ID!]
productName - String
searchField - [String!]
state - BatchState
to - Date
Example
{
  "batchId": "4",
  "batchNumber": "abc123",
  "exclusiveFromCheck": true,
  "from": "2007-12-03",
  "includeSurroundingBatches": true,
  "itemNumber": "xyz789",
  "packagingId": "4",
  "productId": "4",
  "productIds": ["4"],
  "productName": "xyz789",
  "searchField": ["abc123"],
  "state": "COMPLETED",
  "to": "2007-12-03"
}

BatchList

Fields
Field Name Description
count - Int!
items - [Batch!]!
nextToken - ID
pages - [ID!]!
Example
{
  "count": 123,
  "items": [Batch],
  "nextToken": 4,
  "pages": [4]
}

BatchProgressTriggerOptions

Fields
Field Name Description
percentage - Int! Allowed values: [0; 100]
Example
{"percentage": 987}

BatchProgressTriggerOptionsInput

Fields
Input Field Description
percentage - Int! Allowed values: [0; 100]
Example
{"percentage": 987}

BatchStartTriggerOptions

Fields
Field Name Description
placeholder - Boolean
Example
{"placeholder": true}

BatchStartTriggerOptionsInput

Fields
Input Field Description
placeholder - Boolean
Example
{"placeholder": true}

BatchState

Description

Production batch lifecycle states. Tracks the current status of batch execution for production planning and monitoring.

Values
Enum Value Description

COMPLETED

Batch production finished successfully.

PENDING

Batch scheduled but production not yet started.

RUNNING

Batch actively being produced on the line.
Example
"COMPLETED"

BatchesInput

Description

Input parameters for batch-related queries and filters.

Fields
Input Field Description
preferences - BatchesPreference
batchFilter - BatchFilter
Example
{
  "preferences": BatchesPreference,
  "batchFilter": BatchFilter
}

BatchesPreference

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

Boolean

Description

The Boolean scalar type represents true or false.

Breadcrumb

Description

Navigation breadcrumb item showing the path to reach this node. Provides context for where equipment is located in the tree hierarchy.

Fields
Field Name Description
name - String! Display name of this level in the tree hierarchy.
id - ID! Identifier for this level in the navigation path.
Example
{
  "name": "abc123",
  "id": "4"
}

Call

Fields
Field Name Description
id - ID!
urgency - Urgency!
requestedSupport - String Will be replaced by role.id.
role - AndonRole
tags - [Tag]
lineId - ID!
workOrder - WorkOrder
action - ActionMap!
lastMessage - Date
line - Line Production line where this assistance call was initiated. Provides production context for rapid response and support.
Example
{
  "id": 4,
  "urgency": "MEDIUM",
  "requestedSupport": "xyz789",
  "role": AndonRole,
  "tags": [Tag],
  "lineId": 4,
  "workOrder": WorkOrder,
  "action": ActionMap,
  "lastMessage": "2007-12-03",
  "line": Line
}

Camera

Fields
Field Name Description
_id - ID
id - ID! Use peripheralId instead.
name - String!
index - ID!
peripheralId - ID!
owner - ID
hardwareId - ID
description - String!
peripheralType - PeripheralType!
offlineStatus - OfflineStatus!
attachedSensors - [Sensor]!
streamURL - String
Arguments
startTime - Date
device - Device!
hardwareDevice - Device
Example
{
  "_id": 4,
  "id": 4,
  "name": "abc123",
  "index": "4",
  "peripheralId": 4,
  "owner": 4,
  "hardwareId": 4,
  "description": "abc123",
  "peripheralType": "SENSOR",
  "offlineStatus": OfflineStatus,
  "attachedSensors": [Sensor],
  "streamURL": "abc123",
  "device": Device,
  "hardwareDevice": Device
}

CameraConfigInput

Fields
Input Field Description
retentionPeriodHours - Int
Example
{"retentionPeriodHours": 123}

Certificate

Fields
Field Name Description
id - ID! The identifier of the certificate.
isActive - Boolean! Whether the certificate is active.
createdAt - Date! The time when the certificate was created.
validAt - Date The time when the certificate was activated.
expiresAt - Date! The time when the certificate will expire.
subject - String! The subject of the certificate.
issuer - String! The issuer of the certificate.
Example
{
  "id": 4,
  "isActive": false,
  "createdAt": "2007-12-03",
  "validAt": "2007-12-03",
  "expiresAt": "2007-12-03",
  "subject": "xyz789",
  "issuer": "abc123"
}

ChangeoverStop

Fields
Field Name Description
_id - ID!
timeRange - TimeRange!
originalStart - Date!
ongoing - Boolean!
duration - Float!
stopCause - StopCause
comment - String
initials - String
registeredTime - Date
isMicroStop - Boolean!
isAutomaticRegistration - Boolean
standalone - StandaloneConfiguration
countermeasure - String
countermeasureInitials - String
target - ChangeoverTarget
Example
{
  "_id": 4,
  "timeRange": TimeRange,
  "originalStart": "2007-12-03",
  "ongoing": false,
  "duration": 123.45,
  "stopCause": StopCause,
  "comment": "abc123",
  "initials": "abc123",
  "registeredTime": "2007-12-03",
  "isMicroStop": true,
  "isAutomaticRegistration": false,
  "standalone": StandaloneConfiguration,
  "countermeasure": "xyz789",
  "countermeasureInitials": "abc123",
  "target": ChangeoverTarget
}

ChangeoverTarget

Fields
Field Name Description
target - Float!
previousBatch - MinimalBatch
nextBatch - MinimalBatch
shift - Shift
Example
{
  "target": 123.45,
  "previousBatch": MinimalBatch,
  "nextBatch": MinimalBatch,
  "shift": Shift
}

ChartConfiguration

Fields
Field Name Description
scale - ChartTimeScale
dataFilter - DataFilter
Example
{"scale": "DAY", "dataFilter": "AVERAGE_SPEED"}

ChartConfigurationInput

Fields
Input Field Description
scale - ChartTimeScale
dataFilter - DataFilter
Example
{"scale": "DAY", "dataFilter": "AVERAGE_SPEED"}

ChartTimeScale

Description

Time scale granularity for data export and charting. Defines the aggregation level for exported production data.

Values
Enum Value Description

DAY

Daily aggregation for long-term trend analysis.

HOUR

Hourly aggregation for detailed performance tracking.

MINUTE

Minute-level granularity.
Example
"DAY"

CheckboxFieldOptions

Fields
Field Name Description
mustBeTrue - Boolean!
Example
{"mustBeTrue": true}

CheckboxFieldOptionsInput

Fields
Input Field Description
mustBeTrue - Boolean!
Example
{"mustBeTrue": true}

Claim

Fields
Field Name Description
name - String!
id - ClaimId!
Example
{
  "name": "abc123",
  "id": ClaimId
}

ClaimDeviceInput

Fields
Input Field Description
hardwareId - ID!
Example
{"hardwareId": "4"}

ClaimId

Example
ClaimId

Claims

Fields
Field Name Description
fullAccess - FullAccess
index - [Claim!]!
resources - [Resource!]!
Example
{
  "fullAccess": "READ",
  "index": [Claim],
  "resources": [Resource]
}

Company

Fields
Field Name Description
id - ID!
name - String
groups - [Group!]!
roles - [Role!]!
users - UserList!
Arguments
filter - UserFilter
pagination - TokenInput
limit - Int
group - Group!
Arguments
groupId - ID!
appClients - [AppClient!]!
trialStatus - TrialStatus
authConfiguration - AuthConfiguration!
factoryOverviewSettings - FactoryOverviewSettings! Internal use only
Example
{
  "id": "4",
  "name": "xyz789",
  "groups": [Group],
  "roles": [Role],
  "users": UserList,
  "group": Group,
  "appClients": [AppClient],
  "trialStatus": TrialStatus,
  "authConfiguration": AuthConfiguration,
  "factoryOverviewSettings": FactoryOverviewSettings
}

ConsolidatedData

Description

Aggregated performance data across multiple production lines. Used for plant-level KPI dashboards and multi-line comparisons.

Fields
Field Name Description
timeRange - TimeRange! Time period covered by this consolidated data.
oee - OEE Overall Equipment Effectiveness calculated across all lines. Plant-level OEE for executive reporting.
Arguments
includeScrap - Boolean
input - OEEInput
stopsData - [LineStopStats] Stop statistics broken down by individual production lines.
Example
{
  "timeRange": TimeRange,
  "oee": OEE,
  "stopsData": [LineStopStats]
}

ControlDerivationFormula

Description

Aggregation methods for batch control calculations. Defines how multiple sensor values are combined for batch control decisions.

Values
Enum Value Description

MIN

Use minimum value across sensors.

MAX

Use maximum value across sensors.

AVERAGE

Calculate average value across sensors.

SUM

Calculate sum of values across sensors.
Example
"MIN"

ControlFieldType

Values
Enum Value Description

TEXT

NUMBER

DERIVED

WEIGHT

BOOLEAN

SENSOR

Example
"TEXT"

ControlReceipt

Fields
Field Name Description
controlReceiptId - ID!
userPoolId - ID!
name - String!
description - String
entries - [ControlReceiptEntry!]!
deleted - Boolean!
attachedProducts - [Product!]!
Example
{
  "controlReceiptId": 4,
  "userPoolId": "4",
  "name": "xyz789",
  "description": "xyz789",
  "entries": [ControlReceiptEntry],
  "deleted": true,
  "attachedProducts": [Product]
}

ControlReceiptEntry

Fields
Field Name Description
entryId - ID!
title - String
trigger - ControlTrigger!
followUp - FollowUpSettings!
initialsSettings - InitialsSettings!
fields - [ControlReceiptEntryField!]!
Example
{
  "entryId": 4,
  "title": "abc123",
  "trigger": ControlTrigger,
  "followUp": FollowUpSettings,
  "initialsSettings": "REQUIRED_IF_OUTSIDE_LIMITS",
  "fields": [ControlReceiptEntryField]
}

ControlReceiptEntryField

Fields
Field Name Description
fieldId - ID!
label - String!
description - String
type - ControlFieldType!
limits - ControlReceiptEntryFieldLimits
derivationSettings - ControlReceiptEntryFieldDerivationSettings
sensorId - ID
Example
{
  "fieldId": "4",
  "label": "abc123",
  "description": "abc123",
  "type": "TEXT",
  "limits": ControlReceiptEntryFieldLimits,
  "derivationSettings": ControlReceiptEntryFieldDerivationSettings,
  "sensorId": 4
}

ControlReceiptEntryFieldDerivationSettings

Fields
Field Name Description
formula - ControlDerivationFormula!
fields - [String!]!
Example
{"formula": "MIN", "fields": ["abc123"]}

ControlReceiptEntryFieldDerivationSettingsInput

Fields
Input Field Description
formula - ControlDerivationFormula!
fields - [String!]!
Example
{"formula": "MIN", "fields": ["abc123"]}

ControlReceiptEntryFieldInput

Fields
Input Field Description
fieldId - String!
label - String!
description - String
type - ControlFieldType!
limits - ControlReceiptentryFieldLimitsInput
derivationSettings - ControlReceiptEntryFieldDerivationSettingsInput
sensorId - ID
Example
{
  "fieldId": "xyz789",
  "label": "xyz789",
  "description": "xyz789",
  "type": "TEXT",
  "limits": ControlReceiptentryFieldLimitsInput,
  "derivationSettings": ControlReceiptEntryFieldDerivationSettingsInput,
  "sensorId": 4
}

ControlReceiptEntryFieldLimits

Fields
Field Name Description
lower - Float
upper - Float
Example
{"lower": 123.45, "upper": 987.65}

ControlReceiptEntryInput

Fields
Input Field Description
entryId - String
title - String
trigger - ControlTriggerInput!
followUp - FollowUpSettingsInput!
initialsSettings - InitialsSettings
fields - [ControlReceiptEntryFieldInput!]!
Example
{
  "entryId": "abc123",
  "title": "abc123",
  "trigger": ControlTriggerInput,
  "followUp": FollowUpSettingsInput,
  "initialsSettings": "REQUIRED_IF_OUTSIDE_LIMITS",
  "fields": [ControlReceiptEntryFieldInput]
}

ControlReceiptFilter

Fields
Input Field Description
name - String
Example
{"name": "abc123"}

ControlReceiptList

Fields
Field Name Description
nextToken - ID
items - [ControlReceipt!]!
Example
{"nextToken": 4, "items": [ControlReceipt]}

ControlReceiptentryFieldLimitsInput

Fields
Input Field Description
lower - Float
upper - Float
Example
{"lower": 123.45, "upper": 123.45}

ControlTrigger

Fields
Field Name Description
type - ControlTriggerType!
payload - TimedTriggerPayload
delayWhenStopped - Boolean!
Example
{
  "type": "START_OF_BATCH",
  "payload": TimedTriggerPayload,
  "delayWhenStopped": true
}

ControlTriggerInput

Fields
Input Field Description
type - ControlTriggerType!
payload - TimedTriggerPayloadInput
delayWhenStopped - Boolean!
Example
{
  "type": "START_OF_BATCH",
  "payload": TimedTriggerPayloadInput,
  "delayWhenStopped": true
}

ControlTriggerType

Values
Enum Value Description

START_OF_BATCH

END_OF_BATCH

ONCE_AFTER_BATCH_START

RECURRING_FROM_BATCH_START

RECURRING_FROM_EPOCH

RECURRING_ON_EVERY_WHOLE_HOUR

Use RECURRING_FROM_EPOCH instead.

RECURRING_EVERY_QUARTER_HOUR_FROM_START

Use RECURRING_FROM_BATCH_START instead.

RECURRING_EVERY_HALF_HOUR_FROM_START

Use RECURRING_FROM_BATCH_START instead.

RECURRING_EVERY_45_MIN_FROM_START

Use RECURRING_FROM_BATCH_START instead.

RECURRING_EVERY_HOUR_FROM_START

Use RECURRING_FROM_BATCH_START instead.

RECURRING_EVERY_TWO_HOURS_FROM_START

Use RECURRING_FROM_BATCH_START instead.

RECURRING_EVERY_FOUR_HOURS_FROM_START

Use RECURRING_FROM_BATCH_START instead.

RECURRING_ON_SHIFT_START

RECURRING_ON_SHIFT_END

MANUAL

Trigger for initiating controls manually
Example
"START_OF_BATCH"

ConversationContent

Example
ConversationContentText

ConversationContentText

Fields
Field Name Description
text - String!
Example
{"text": "xyz789"}

ConversationContentVisualizationOptions

Fields
Field Name Description
title - String!
visualizationType - VisualizationType!
data - JSON!
Example
{
  "title": "abc123",
  "visualizationType": BarChart,
  "data": {}
}

ConversationMessage

Fields
Field Name Description
role - ConversationRole!
messageId - UUID!
status - MessageStatus!
content - [ConversationContent!]!
Example
{
  "role": "USER",
  "messageId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "status": "COMPLETE",
  "content": [ConversationContentText]
}

ConversationRole

Values
Enum Value Description

USER

ASSISTANT

Example
"USER"

CountByStatus

Fields
Field Name Description
passed - Int!
failed - Int!
noValidation - Int!
pending - Int!
skipped - Int!
Example
{
  "passed": 123,
  "failed": 987,
  "noValidation": 123,
  "pending": 987,
  "skipped": 987
}

CreateActionPlanInput

Fields
Input Field Description
category - String!
title - String
content - [ActionPlanContentInput!]!
pdcaState - ActionPlanPDCAState
followUpInterval - ActionPlanFollowUpInterval!
followUpState - Int
linkedProductionData - [String!]
attachedFiles - [String!]
assignedSub - String
dueDate - DateTime
Example
{
  "category": "abc123",
  "title": "xyz789",
  "content": [ActionPlanContentInput],
  "pdcaState": "PLAN",
  "followUpInterval": "DAILY",
  "followUpState": 123,
  "linkedProductionData": ["xyz789"],
  "attachedFiles": ["abc123"],
  "assignedSub": "abc123",
  "dueDate": "2007-12-03T10:15:30Z"
}

CreateActionPlanTaskInput

Fields
Input Field Description
planId - String!
content - String!
checked - Boolean
Example
{
  "planId": "abc123",
  "content": "abc123",
  "checked": true
}

CreateActivityInput

Fields
Input Field Description
status - ActivityStatus!
activityTemplateId - ActivityTemplateId!
triggerId - TriggerId!
values - [CustomFieldValueInput!]
stopRegistration - ActivityStopRegistrationInput
locationId - NodeId!
initials - String
Example
{
  "status": "PENDING",
  "activityTemplateId": ActivityTemplateId,
  "triggerId": TriggerId,
  "values": [CustomFieldValueInput],
  "stopRegistration": ActivityStopRegistrationInput,
  "locationId": NodeId,
  "initials": "abc123"
}

CreateAppClientInput

Fields
Input Field Description
name - String! The desired name of the OAuth2 client, e.g. PowerBI.
groupIds - [ID!]! A list of group ids to scope the permissions the client has access to.
Example
{
  "name": "xyz789",
  "groupIds": ["4"]
}

CreateAppClientOutput

Fields
Field Name Description
clientSecret - String! A one-time exposed, sensitive client secret to be passed to the Authorization header, i.e. Authorization: Basic base64(clientId:clientSecret) to issue short-lived access tokens.
appClient - AppClient! The underlying App client.
Example
{
  "clientSecret": "xyz789",
  "appClient": AppClient
}

CreateBatchByItemNumberInput

Description

Create a batch by item number inputs.

Fields
Input Field Description
lineId - ID!
itemNumber - String!
batchNumber - String!
plannedStart - Date!
actualStart - Date
actualStop - Date
amount - Float!
manualScrap - Float
comment - String
dataMultiplier - Float
validatedLineSpeed - Float
expectedAverageSpeed - Float
forceStop - Boolean
Example
{
  "lineId": "4",
  "itemNumber": "xyz789",
  "batchNumber": "xyz789",
  "plannedStart": "2007-12-03",
  "actualStart": "2007-12-03",
  "actualStop": "2007-12-03",
  "amount": 987.65,
  "manualScrap": 123.45,
  "comment": "abc123",
  "dataMultiplier": 987.65,
  "validatedLineSpeed": 987.65,
  "expectedAverageSpeed": 987.65,
  "forceStop": true
}

CreateCustomizableReportInput

Fields
Input Field Description
title - String!
widgets - [WidgetInput!]!
widgetLayouts - [WidgetLayoutInput!]!
Example
{
  "title": "xyz789",
  "widgets": [WidgetInput],
  "widgetLayouts": [WidgetLayoutInput]
}

CreateDeviceInput

Fields
Input Field Description
type - String! The type of the device (only accepts 'plc' as of this writing)
Example
{"type": "abc123"}

CreateHierarchyNodeInput

Fields
Input Field Description
parentId - NodeId!
meta - CreateHierarchyNodeMetaInput!
Example
{
  "parentId": NodeId,
  "meta": CreateHierarchyNodeMetaInput
}

CreateHierarchyNodeMetaInput

Fields
Input Field Description
line - LineNodeMetaInput
directory - DirectoryNodeMetaInput
peripheral - PeripheralNodeMetaInput
asset - AssetNodeMetaInput
Example
{
  "line": LineNodeMetaInput,
  "directory": DirectoryNodeMetaInput,
  "peripheral": PeripheralNodeMetaInput,
  "asset": AssetNodeMetaInput
}

CreateIOTJobResponse

Fields
Field Name Description
otaUpdateArn - String
otaUpdateId - String
otaUpdateStatus - String
jobId - String
jobArn - String
description - String
Example
{
  "otaUpdateArn": "abc123",
  "otaUpdateId": "xyz789",
  "otaUpdateStatus": "abc123",
  "jobId": "xyz789",
  "jobArn": "abc123",
  "description": "xyz789"
}

CreateLearningActivityInput

Fields
Input Field Description
nodeId - String!
title - String!
description - String
content - String
startEndDatesRequired - Boolean!
validityInMonths - Int
Example
{
  "nodeId": "abc123",
  "title": "abc123",
  "description": "xyz789",
  "content": "abc123",
  "startEndDatesRequired": false,
  "validityInMonths": 987
}

CreateLearningRoleInput

Fields
Input Field Description
title - String!
description - String
nodeId - ID!
skills - [UUID!]!
Example
{
  "title": "xyz789",
  "description": "abc123",
  "nodeId": "4",
  "skills": [
    "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
  ]
}

CreateMaintenanceLogEntryInput

Description

Input for creating maintenance log entries. Records completed maintenance activities with production impact tracking.

Fields
Input Field Description
planId - MaintenancePlanId Associated maintenance plan if this was preventive maintenance.
lineId - LineId! Production line where maintenance was performed.
status - WorkOrderStatus! Completion status of the maintenance work.
initials - String! Initials of the technician who performed the work.
comment - String! Description of maintenance work performed.
customData - CustomFormDataInput Custom form data for specific maintenance procedures.
andonCallId - String Andon call ID if maintenance was triggered by operator request.
stopCauseIds - [String!] Downtime causes addressed by this maintenance.
stopCausePeripheralId - PeripheralId Specific equipment that was causing the downtime.
assetIds - [NodeId!] Assets and equipment serviced during maintenance.
startOfService - DateTime When maintenance work actually began.
endOfService - DateTime When maintenance work was completed.
startOfStop - DateTime When production stop began (if applicable).
endOfStop - DateTime When production resumed after maintenance.
Example
{
  "planId": MaintenancePlanId,
  "lineId": LineId,
  "status": "COMPLETED",
  "initials": "abc123",
  "comment": "abc123",
  "customData": CustomFormDataInput,
  "andonCallId": "abc123",
  "stopCauseIds": ["abc123"],
  "stopCausePeripheralId": PeripheralId,
  "assetIds": [NodeId],
  "startOfService": "2007-12-03T10:15:30Z",
  "endOfService": "2007-12-03T10:15:30Z",
  "startOfStop": "2007-12-03T10:15:30Z",
  "endOfStop": "2007-12-03T10:15:30Z"
}

CreateMaintenancePlanInput

Description

Input for creating preventive maintenance plans. Defines scheduled maintenance activities for optimal equipment reliability.

Fields
Input Field Description
lineId - LineId! Production line this maintenance plan covers.
title - String! Descriptive title for the maintenance plan.
asset - String! Equipment or asset targeted by this plan.
tagPartNumber - String Manufacturer part number for replacement parts.
instructions - String Detailed maintenance instructions for technicians.
startFrom - DateTime! When this maintenance schedule should begin.
repeat - ShouldRepeat! Whether this maintenance should repeat automatically.
trackBy - TrackByOptionsInput! How to track when maintenance is due (time, cycles, etc.).
roleId - MaintenanceRoleId Maintenance role responsible for this plan.
Example
{
  "lineId": LineId,
  "title": "abc123",
  "asset": "abc123",
  "tagPartNumber": "xyz789",
  "instructions": "abc123",
  "startFrom": "2007-12-03T10:15:30Z",
  "repeat": "YES",
  "trackBy": TrackByOptionsInput,
  "roleId": MaintenanceRoleId
}

CreateNodeInput

Description

Input for creating new nodes in the tree hierarchy. Allows building hierarchical structures for equipment organization.

Fields
Input Field Description
refId - ID Reference identifier linking to actual equipment or line entities.
parentId - ID Parent node under which to create this new node.
Example
{"refId": 4, "parentId": 4}

CreatePeripheralInput

Fields
Input Field Description
index - String
name - String!
description - String
Example
{
  "index": "abc123",
  "name": "abc123",
  "description": "abc123"
}

CreateSkillInput

Fields
Input Field Description
title - String!
description - String
nodeId - ID!
learningActivities - [UUID!]
Example
{
  "title": "xyz789",
  "description": "xyz789",
  "nodeId": 4,
  "learningActivities": [
    "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
  ]
}

CreateWebhookInput

Fields
Input Field Description
url - String! The URL to which the webhook will send requests.
name - String! The name of the webhook.
description - String An optional description for the webhook.
headers - JSON! The headers that will be sent with the webhook request.
triggerType - String! The type of trigger for the webhook. Can be "batch_start" or "batch_end".
disabled - Boolean Whether the webhook is disabled. Defaults to false.
locationId - NodeId! The location on which the webhook will trigger
Example
{
  "url": "xyz789",
  "name": "abc123",
  "description": "abc123",
  "headers": {},
  "triggerType": "xyz789",
  "disabled": false,
  "locationId": NodeId
}

CreatedDevice

Fields
Field Name Description
url - String! The temporary URL where the certificate of the device is available
device - Device! The newly created device
Example
{
  "url": "xyz789",
  "device": Device
}

CustomFieldValue

Fields
Field Name Description
key - CustomFormFieldId!
value - JSON!
isPassing - Boolean
Example
{"key": CustomFormFieldId, "value": {}, "isPassing": true}

CustomFieldValueInput

Description

Input for custom form field values. Associates a field identifier with its corresponding data value.

Fields
Input Field Description
key - CustomFormFieldId!
value - JSON!
Example
{"key": CustomFormFieldId, "value": {}}

CustomForm

Fields
Field Name Description
id - CustomFormId!
title - String!
description - String!
translations - [CustomFormTranslation!]!
fields - [CustomFormField!]!
requireInitials - Boolean!
version - Int!
createdAt - DateTime!
deletedAt - DateTime
Example
{
  "id": CustomFormId,
  "title": "abc123",
  "description": "xyz789",
  "translations": [CustomFormTranslation],
  "fields": [CustomFormField],
  "requireInitials": false,
  "version": 987,
  "createdAt": "2007-12-03T10:15:30Z",
  "deletedAt": "2007-12-03T10:15:30Z"
}

CustomFormData

Fields
Field Name Description
formId - CustomFormId!
formVersion - Int!
values - [CustomFieldValue!]!
initials - String
form - CustomForm! Internal use only
schema - JSON!
Example
{
  "formId": CustomFormId,
  "formVersion": 123,
  "values": [CustomFieldValue],
  "initials": "xyz789",
  "form": CustomForm,
  "schema": {}
}

CustomFormDataFilter

Fields
Input Field Description
key - CustomFormFieldId!
value - JSON!
op - Operator!
Example
{"key": CustomFormFieldId, "value": {}, "op": "EQ"}

CustomFormDataInput

Description

Input for custom form data submission. Contains the form schema definition and user-provided field values.

Fields
Input Field Description
schema - JSON!
values - [CustomFieldValueInput!]!
Example
{"schema": {}, "values": [CustomFieldValueInput]}

CustomFormField

Fields
Field Name Description
id - CustomFormFieldId!
name - String!
description - String!
translations - [CustomFormFieldTranslation!]!
fieldOptions - CustomFormFieldOptions!
Example
{
  "id": CustomFormFieldId,
  "name": "xyz789",
  "description": "xyz789",
  "translations": [CustomFormFieldTranslation],
  "fieldOptions": CustomFormFieldOptions
}

CustomFormFieldId

Example
CustomFormFieldId

CustomFormFieldInput

Fields
Input Field Description
id - CustomFormFieldId
translations - [CustomFormFieldTranslationInput!]!
fieldOptions - CustomFormFieldOptionsInput!
Example
{
  "id": CustomFormFieldId,
  "translations": [CustomFormFieldTranslationInput],
  "fieldOptions": CustomFormFieldOptionsInput
}

CustomFormFieldOptions

Fields
Field Name Description
text - TextFieldOptions
number - NumberFieldOptions
derivedNumber - DerivedNumberFieldOptions
checkbox - CheckboxFieldOptions
passFail - PassFailFieldOptions
date - DateFieldOptions
select - SelectFieldOptions
multiSelect - MultiSelectFieldOptions
selectEntity - SelectEntityFieldOptions
markdown - MarkdownOptions
images - ImagesOptions
Example
{
  "text": TextFieldOptions,
  "number": NumberFieldOptions,
  "derivedNumber": DerivedNumberFieldOptions,
  "checkbox": CheckboxFieldOptions,
  "passFail": PassFailFieldOptions,
  "date": DateFieldOptions,
  "select": SelectFieldOptions,
  "multiSelect": MultiSelectFieldOptions,
  "selectEntity": SelectEntityFieldOptions,
  "markdown": MarkdownOptions,
  "images": ImagesOptions
}

CustomFormFieldOptionsInput

Example
{
  "text": TextFieldOptionsInput,
  "number": NumberFieldOptionsInput,
  "derivedNumber": DerivedNumberFieldOptionsInput,
  "checkbox": CheckboxFieldOptionsInput,
  "passFail": PassFailFieldOptionsInput,
  "date": DateFieldOptionsInput,
  "select": SelectFieldOptionsInput,
  "multiSelect": MultiSelectFieldOptionsInput,
  "selectEntity": SelectEntityFieldOptionsInput,
  "markdown": MarkdownOptionsInput,
  "images": ImagesOptionsInput
}

CustomFormFieldTranslation

Fields
Field Name Description
name - String!
description - String!
languageCode - String!
Example
{
  "name": "xyz789",
  "description": "xyz789",
  "languageCode": "xyz789"
}

CustomFormFieldTranslationInput

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

CustomFormId

Example
CustomFormId

CustomFormInput

Fields
Input Field Description
translations - [CustomFormTranslationInput!]!
fields - [CustomFormFieldInput!]!
requireInitials - Boolean
Example
{
  "translations": [CustomFormTranslationInput],
  "fields": [CustomFormFieldInput],
  "requireInitials": false
}

CustomFormTranslation

Fields
Field Name Description
title - String!
description - String!
languageCode - String!
Example
{
  "title": "xyz789",
  "description": "abc123",
  "languageCode": "xyz789"
}

CustomFormTranslationInput

Fields
Input Field Description
title - String!
description - String!
languageCode - String!
Example
{
  "title": "abc123",
  "description": "xyz789",
  "languageCode": "xyz789"
}

CustomKPI

Fields
Field Name Description
id - ID!
peripheralId - ID!
name - String!
description - String!
unit - String!
decimals - Int!
type - CustomKPIType!
templateParameters - [KPIParameter!]
kpiParameters - [KPIParameter!]
Example
{
  "id": 4,
  "peripheralId": 4,
  "name": "xyz789",
  "description": "abc123",
  "unit": "abc123",
  "decimals": 987,
  "type": "FORMULA",
  "templateParameters": [KPIParameter],
  "kpiParameters": [KPIParameter]
}

CustomKPIType

Values
Enum Value Description

FORMULA

Example
"FORMULA"

CustomKPIValue

Description

Custom Key Performance Indicator with calculated value. Allows definition of business-specific metrics beyond standard KPIs.

Fields
Field Name Description
id - String! Unique identifier for the custom KPI.
name - String! Human-readable name of the KPI.
unit - String! Unit of measurement (e.g., %, units/hour, €).
decimals - Int! Number of decimal places to display.
value - Float Calculated value of the KPI.
Example
{
  "id": "abc123",
  "name": "abc123",
  "unit": "xyz789",
  "decimals": 123,
  "value": 123.45
}

CustomizableReport

Fields
Field Name Description
id - UUID!
title - String!
widgets - [Widget!]!
widgetLayouts - [WidgetLayout!]!
version - Int!
currentUserAccessType - AccessType!
createdBy - UUID!
createdAt - DateTime!
updatedAt - DateTime!
Example
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "title": "abc123",
  "widgets": [Widget],
  "widgetLayouts": [WidgetLayout],
  "version": 987,
  "currentUserAccessType": "VIEW",
  "createdBy": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "createdAt": "2007-12-03T10:15:30Z",
  "updatedAt": "2007-12-03T10:15:30Z"
}

CustomizableReportSummary

Fields
Field Name Description
id - UUID!
title - String!
createdBy - UUID!
createdAt - DateTime!
updatedAt - DateTime!
currentUserAccessType - AccessType!
Example
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "title": "xyz789",
  "createdBy": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "createdAt": "2007-12-03T10:15:30Z",
  "updatedAt": "2007-12-03T10:15:30Z",
  "currentUserAccessType": "VIEW"
}

CustomizableReportSummaryConnection

Fields
Field Name Description
pageInfo - PageInfo! Information to aid in pagination.
edges - [CustomizableReportSummaryEdge!]! A list of edges.
nodes - [CustomizableReportSummary!]! A list of nodes.
Example
{
  "pageInfo": PageInfo,
  "edges": [CustomizableReportSummaryEdge],
  "nodes": [CustomizableReportSummary]
}

CustomizableReportSummaryEdge

Description

An edge in a connection.

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

CustomizableReportTimeRange

Types
Union Types

AbsoluteTime

RelativeTime

Example
AbsoluteTime

CustomizableReportTimeRangeInput

Fields
Input Field Description
absoluteTime - AbsoluteTimeInput Fixed date range
relativeTime - RelativeTimeInput Dynamic time range calculated at query time
Example
{
  "absoluteTime": AbsoluteTimeInput,
  "relativeTime": RelativeTimeInput
}

Data

Description

Comprehensive performance metrics and KPIs for production analysis. Contains production counts, quality data, availability metrics, and calculated performance indicators.

Fields
Field Name Description
produced - Float Total units produced during the measurement period. Core production metric for throughput analysis.
goodParts - Float Units that passed quality checks (produced - downstream scrap). Key metric for first-pass yield and quality performance.
longestNonStop - Float Longest continuous production run without stops (milliseconds). Indicates production stability and consistency.
lineStatus - LineStatus Current real-time status of the production line.
numberOfStops - Int Total count of stop events during the measurement period.
numberOfUnregisteredStops - Int Count of stops that lack operator-assigned cause codes. Indicates data quality and stop registration compliance.
averageStopLength - Float Mean duration of stop events (minutes).
valueAddingTime - Float Percentage of time spent in productive activities. Formula: (Total time - stopped time) / Total time.
valueAddingTimeWhileManned - Float Percentage of manned time spent productively. Excludes unmanned periods from availability calculation.
valueAddingTimeWhileOperating - Float Percentage of operating time spent productively. Excludes both unmanned periods and setup/changeover activities.
mtbf - Float Mean Time Between Failures - reliability metric for unplanned downtime. Higher values indicate more reliable equipment.
mtbd - Float Mean Time Between Downtime events of specified type. Reliability metric for specific failure categories.
Arguments
stopType - StopType
downtime - Float Total time spent in stopped states (minutes).
uptime - Float Total time spent in productive states (minutes).
averageProducedMinute - Float Average produced minute: Sum of value produced / time. Use averageProduced instead.
averageProducedHour - Float Average produced hour: Sum of value produced / time. Use averageProduced instead.
averageProduced - Float Average produced over duration: Sum of value produced / time - scoped within the requested time range.
Arguments
cycleTime - Float Average time per unit produced (seconds per unit). Key performance metric for production efficiency.
producedPerStop - Float Average units produced between stop events. Indicates production stability and stop frequency impact.
speedWhileManned - Float Production rate during manned periods (units per hour). Excludes unmanned time from speed calculation.
speedWhileProducing - Float Production rate during active production (units per hour). Excludes setup, changeover, and unmanned time.
speedWhileRunning - Float Production rate while equipment is running (units per hour). Theoretical maximum based on actual runtime.
machineCycleTimeWhileRunning - Float Actual machine cycle time during runtime (seconds per cycle). Measures raw machine performance excluding multipliers and stops.
scrap - Float Number of units scrapped downstream Use scrapData.downstream or scrapData.total instead.
scrapData - ScrapData Scrapped units, upstream, downstream or total
reworkData - ReworkData Reworked units, upstream, downstream or total
oee - OEE Breakdown of the OEE (Overall Equipment Efficiency). Will be null if the time range does not have a 'start' and 'end', e.g OEE for a pending batch
Arguments
includeScrap - Boolean

Deprecated. Use input.preferences.includeScrap instead

input - OEEInput
customKPIs - [CustomKPIValue!] List of the results of custom KPIs on the peripheral
Example
{
  "produced": 987.65,
  "goodParts": 123.45,
  "longestNonStop": 123.45,
  "lineStatus": LineStatus,
  "numberOfStops": 123,
  "numberOfUnregisteredStops": 123,
  "averageStopLength": 123.45,
  "valueAddingTime": 987.65,
  "valueAddingTimeWhileManned": 987.65,
  "valueAddingTimeWhileOperating": 987.65,
  "mtbf": 987.65,
  "mtbd": 987.65,
  "downtime": 123.45,
  "uptime": 987.65,
  "averageProducedMinute": 123.45,
  "averageProducedHour": 987.65,
  "averageProduced": 987.65,
  "cycleTime": 123.45,
  "producedPerStop": 987.65,
  "speedWhileManned": 987.65,
  "speedWhileProducing": 123.45,
  "speedWhileRunning": 987.65,
  "machineCycleTimeWhileRunning": 987.65,
  "scrap": 123.45,
  "scrapData": ScrapData,
  "reworkData": ReworkData,
  "oee": OEE,
  "customKPIs": [CustomKPIValue]
}

DataAlarm

Fields
Field Name Description
updateBuffer - Int
notificationFrequency - Int
repeatNotification - Boolean
subscribers - [Subscriber!]!
Example
{
  "updateBuffer": 987,
  "notificationFrequency": 987,
  "repeatNotification": true,
  "subscribers": [Subscriber]
}

DataAlarmInput

Fields
Input Field Description
updateBuffer - Int
notificationFrequency - Int
repeatNotification - Boolean
subscribers - [SubscriberInput!]!
Example
{
  "updateBuffer": 987,
  "notificationFrequency": 123,
  "repeatNotification": false,
  "subscribers": [SubscriberInput]
}

DataFilter

Values
Enum Value Description

AVERAGE_SPEED

NONE

SPEED

UPTIME

Example
"AVERAGE_SPEED"

DataOverride

Fields
Field Name Description
peripheralId - ID!
timeRange - TimeRange!
value - Int!
author - String!
comment - String!
Example
{
  "peripheralId": "4",
  "timeRange": TimeRange,
  "value": 123,
  "author": "xyz789",
  "comment": "abc123"
}

DataOverrideUpsertInput

Fields
Input Field Description
timeRange - InputTimeRange!
value - Int!
author - String!
comment - String!
Example
{
  "timeRange": InputTimeRange,
  "value": 123,
  "author": "abc123",
  "comment": "abc123"
}

Date

Example
"2007-12-03"

DateFieldOptions

Fields
Field Name Description
validation - DateFieldValidation!
Example
{"validation": DateFieldValidation}

DateFieldOptionsInput

Fields
Input Field Description
validation - DateFieldValidationInput!
Example
{"validation": DateFieldValidationInput}

DateFieldValidation

Fields
Field Name Description
required - Boolean!
Example
{"required": true}

DateFieldValidationInput

Fields
Input Field Description
required - Boolean!
Example
{"required": true}

DateTime

Description

Implement the DateTime scalar

The input/output is a string in RFC3339 format.

Example
"2007-12-03T10:15:30Z"

DayOfWeek

Description

Days of the week for shift scheduling.

Values
Enum Value Description

MONDAY

TUESDAY

WEDNESDAY

THURSDAY

FRIDAY

SATURDAY

SUNDAY

Example
"MONDAY"

DebounceState

Fields
Field Name Description
desired - Int
reported - Int
Example
{"desired": 123, "reported": 987}

DeleteCustomizableReportResponse

Fields
Field Name Description
id - UUID!
Example
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
}

DerivedNumberFieldOptions

Fields
Field Name Description
validation - NumberFieldValidation!
passCriteria - NumberFieldPassCriteria! Pass criteria are different from form validation, because they do not influence the ability to submit the form. When a form is submitted it passes by default, but fails if any value fails the pass criteria of its field.
op - NumberFieldOperator!
inputFields - [CustomFormFieldId!]!
Example
{
  "validation": NumberFieldValidation,
  "passCriteria": NumberFieldPassCriteria,
  "op": "SUM",
  "inputFields": [CustomFormFieldId]
}

DerivedNumberFieldOptionsInput

Fields
Input Field Description
validation - NumberFieldValidationInput!
passCriteria - NumberFieldPassCriteriaInput! Pass criteria are different from form validation, because they do not influence the ability to submit the form. When a form is submitted it passes by default, but fails if any value fails the pass criteria of its field.
op - NumberFieldOperator!
inputFields - [CustomFormFieldId!]!
Example
{
  "validation": NumberFieldValidationInput,
  "passCriteria": NumberFieldPassCriteriaInput,
  "op": "SUM",
  "inputFields": [CustomFormFieldId]
}

DescribeJobExecution

Fields
Field Name Description
statusDetails - StatusDetails!
Example
{"statusDetails": StatusDetails}

Device

Fields
Field Name Description
_id - ID
uuid - ID!
owner - ID
type - String!
hardwareId - ID
name - String
numInputPorts - Int!
sensor - Sensor Use peripheral, with inline fragments instead.
Arguments
index - ID!
status - DeviceStatus
network - NetworkConfig
sensors - [Sensor!]! Use peripherals, with inline fragments instead.
Arguments
indices - [ID!]
peripheral - Peripheral
Arguments
index - ID!
peripherals - [Peripheral]!
Arguments
peripheralType - PeripheralType
indices - [ID!]
peripheralPhysicalInput - Peripheral
Arguments
index - ID!
peripheralPhysicalInputs - [Peripheral]!
pendingJobExecutions - [JobExecutionSummary]
updateAvailable - Boolean
certificates - [Certificate!]!
Example
{
  "_id": 4,
  "uuid": 4,
  "owner": 4,
  "type": "xyz789",
  "hardwareId": 4,
  "name": "xyz789",
  "numInputPorts": 987,
  "sensor": Sensor,
  "status": DeviceStatus,
  "network": NetworkConfig,
  "sensors": [Sensor],
  "peripheral": Peripheral,
  "peripherals": [Peripheral],
  "peripheralPhysicalInput": Peripheral,
  "peripheralPhysicalInputs": [Peripheral],
  "pendingJobExecutions": [JobExecutionSummary],
  "updateAvailable": false,
  "certificates": [Certificate]
}

DeviceFilterInput

Fields
Input Field Description
name - String
type - String
hardwareId - String
Example
{
  "name": "abc123",
  "type": "xyz789",
  "hardwareId": "xyz789"
}

DeviceMetaInput

Fields
Input Field Description
name - String
wifiEnabled - Boolean
Example
{"name": "abc123", "wifiEnabled": true}

DeviceStatus

Fields
Field Name Description
firmwareVersions - FirmwareVersions
hardwareVersion - String
Example
{
  "firmwareVersions": FirmwareVersions,
  "hardwareVersion": "xyz789"
}

DevicesPaginated

Fields
Field Name Description
items - [Device!]!
nextOffset - Int
total - Int!
Example
{"items": [Device], "nextOffset": 987, "total": 123}

DirectoryNodeMeta

Fields
Field Name Description
name - String!
description - String!
lineIds - [LineId!]! Returns all descendant line Ids.
Example
{
  "name": "xyz789",
  "description": "xyz789",
  "lineIds": [LineId]
}

DirectoryNodeMetaInput

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

DiscreteConfig

Fields
Field Name Description
onStates - [Int!]!
offStates - [Int!]!
defaultState - DiscreteDeviceState!
Example
{"onStates": [987], "offStates": [123], "defaultState": "ON"}

DiscreteConfigInput

Fields
Input Field Description
onStates - [Int!]!
offStates - [Int!]!
defaultState - DiscreteDeviceState!
Example
{"onStates": [987], "offStates": [987], "defaultState": "ON"}

DiscreteDeviceState

Values
Enum Value Description

ON

OFF

Example
"ON"

DocumentFormat

Values
Enum Value Description

CSV

EXCEL

PDF

Example
"CSV"

DocumentInputActivities

Fields
Input Field Description
format - DocumentFormat!
filter - ActivityFilter!
orderBy - ActivityOrdering!
Example
{
  "format": "CSV",
  "filter": ActivityFilter,
  "orderBy": ActivityOrdering
}

DocumentInputAnalytics

Fields
Input Field Description
documentType - AnalyticsDocumentType!
format - DocumentFormat!
filter - String!
Example
{
  "documentType": "PARETO",
  "format": "CSV",
  "filter": "abc123"
}

DocumentInputBatches

Fields
Input Field Description
format - DocumentFormat!
filter - String!
total - Int!
Example
{
  "format": "CSV",
  "filter": "abc123",
  "total": 123
}

DocumentInputHeaders

Fields
Input Field Description
timeRange - InputTimeRange
language - String
timezone - String
title - String
Example
{
  "timeRange": InputTimeRange,
  "language": "xyz789",
  "timezone": "xyz789",
  "title": "abc123"
}

DocumentInputLineOEE

Fields
Input Field Description
oeeDocumentType - OEEDocumentType!
stopFilterInput - StopFilterInput
Example
{
  "oeeDocumentType": "STOPS_LAST_6_DAYS",
  "stopFilterInput": StopFilterInput
}

DocumentInputLinesGroupOEE

Fields
Input Field Description
isDynamic - Boolean!
stopFilterInput - StopFilterInput
Example
{"isDynamic": true, "stopFilterInput": StopFilterInput}

DocumentInputLiveData

Fields
Input Field Description
documentType - LiveDataDocumentType!
points - Int!
time - [InputTimeRange!]!
format - DocumentFormat!
sensorType - SensorType
unitLabel - String
chartScale - ChartTimeScale
Example
{
  "documentType": "CHART",
  "points": 987,
  "time": [InputTimeRange],
  "format": "CSV",
  "sensorType": "COUNTER",
  "unitLabel": "abc123",
  "chartScale": "DAY"
}

DocumentInputLocationOEE

Fields
Input Field Description
isDynamic - Boolean!
stopFilterInput - StopFilterInput
Example
{"isDynamic": false, "stopFilterInput": StopFilterInput}

DocumentInputMaintenanceLog

Fields
Input Field Description
format - DocumentFormat!
filter - MaintenanceLogFilter!
Example
{"format": "CSV", "filter": MaintenanceLogFilter}

DownloadVideoClip

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

EditHierarchyNodeInput

Fields
Input Field Description
version - Int!
id - NodeId!
meta - EditHierarchyNodeMetaInput
Example
{
  "version": 987,
  "id": NodeId,
  "meta": EditHierarchyNodeMetaInput
}

EditHierarchyNodeMetaInput

Fields
Input Field Description
line - LineNodeMetaUpdateInput
directory - DirectoryNodeMetaInput
asset - AssetNodeMetaInput
peripheral - PeripheralNodeMetaUpdateInput
Example
{
  "line": LineNodeMetaUpdateInput,
  "directory": DirectoryNodeMetaInput,
  "asset": AssetNodeMetaInput,
  "peripheral": PeripheralNodeMetaUpdateInput
}

EditManualDataInput

Fields
Input Field Description
peripheralId - ID!
timestamp - Date!
value - Float!
Example
{
  "peripheralId": 4,
  "timestamp": "2007-12-03",
  "value": 123.45
}

EnrollUserInLearningRoleInput

Fields
Input Field Description
learningRoleId - UUID!
userId - ID!
Example
{
  "learningRoleId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "userId": 4
}

EnrollUserInSkillInput

Fields
Input Field Description
skillId - UUID!
userId - ID!
Example
{
  "skillId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "userId": 4
}

Entity

Values
Enum Value Description

PERIPHERAL

LINE

Example
"PERIPHERAL"

EntityType

Description

Types of production entities that can be included in reports. Defines the scope and target of automated performance reports.

Values
Enum Value Description

LINE

Individual production line reports.

GROUP

Group of production assets reports.

SENSOR

Individual sensor or equipment reports.
Example
"LINE"

Escalation

Fields
Field Name Description
nodeId - String!
creationDate - DateTime!
createdBySub - String!
assignedToSub - String
priority - Boolean!
version - Int!
plan - ActionPlan!
id - String!
assignedTo - User User responsible for handling this escalation.
createdBy - User User who initiated this escalation.
node - HierarchyNode Organizational or equipment node where this escalation applies. Provides context for the escalation scope and impact.
Example
{
  "nodeId": "abc123",
  "creationDate": "2007-12-03T10:15:30Z",
  "createdBySub": "abc123",
  "assignedToSub": "xyz789",
  "priority": false,
  "version": 987,
  "plan": ActionPlan,
  "id": "xyz789",
  "assignedTo": User,
  "createdBy": User,
  "node": HierarchyNode
}

EscalationConfiguration

Fields
Field Name Description
type - SubscriptionType!
delay - Float
takenDelay - Float
Example
{"type": "SMS", "delay": 123.45, "takenDelay": 123.45}

EscalationConfigurationInput

Fields
Input Field Description
type - SubscriptionType!
delay - Float
takenDelay - Float
Example
{"type": "SMS", "delay": 123.45, "takenDelay": 987.65}

EscalationConnection

Fields
Field Name Description
edges - [EscalationEdge!]!
pageInfo - PageInfo!
Example
{
  "edges": [EscalationEdge],
  "pageInfo": PageInfo
}

EscalationEdge

Fields
Field Name Description
node - Escalation!
cursor - String!
Example
{
  "node": Escalation,
  "cursor": "xyz789"
}

EscalationOrder

Fields
Input Field Description
field - ActionPlanSortField!
order - Order
Example
{"field": "CATEGORY", "order": "ASCENDING"}

EventActionConfiguration

Description

Event-driven action configuration for equipment automation. Defines what actions should be triggered when specific equipment events occur.

Fields
Field Name Description
peripheralId - ID! Equipment or sensor that triggers the event.
value - String! Specific value or condition that triggers the action.
actions - [Actions!]! List of automated actions to execute when event occurs.
Example
{
  "peripheralId": 4,
  "value": "xyz789",
  "actions": [Actions]
}

EveryXMinutesTriggerOptions

Fields
Field Name Description
minutes - Int!
onlyUptime - Boolean
countSinceCompletion - Boolean
Example
{"minutes": 123, "onlyUptime": true, "countSinceCompletion": false}

EveryXMinutesTriggerOptionsInput

Fields
Input Field Description
minutes - Int!
onlyUptime - Boolean
countSinceCompletion - Boolean
Example
{"minutes": 123, "onlyUptime": false, "countSinceCompletion": false}

EveryXProducedTriggerOptions

Fields
Field Name Description
produced - Int!
countSinceCompletion - Boolean
Example
{"produced": 987, "countSinceCompletion": true}

EveryXProducedTriggerOptionsInput

Fields
Input Field Description
produced - Int!
countSinceCompletion - Boolean
Example
{"produced": 123, "countSinceCompletion": false}

Extension

Fields
Field Name Description
type - ExtensionType!
service - String!
Example
{"type": "WORK_ORDER", "service": "xyz789"}

ExtensionType

Values
Enum Value Description

WORK_ORDER

Example
"WORK_ORDER"

FactoryOverviewSettings

Fields
Field Name Description
oeeType - OEEType!
Example
{"oeeType": "OEE1"}

FirmwareVersions

Fields
Field Name Description
application - String
bootloader - String
wifi - String
cellular - String
Example
{
  "application": "xyz789",
  "bootloader": "abc123",
  "wifi": "xyz789",
  "cellular": "xyz789"
}

FixedTimeTriggerOptions

Fields
Field Name Description
rrule - String!
timeZone - String!
Example
{
  "rrule": "abc123",
  "timeZone": "abc123"
}

FixedTimeTriggerOptionsInput

Fields
Input Field Description
rrule - String!
timeZone - String!
Example
{
  "rrule": "abc123",
  "timeZone": "xyz789"
}

Float

Description

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

Example
123.45

FollowUpSettings

Fields
Field Name Description
enabled - Boolean!
delayMs - Int
Example
{"enabled": false, "delayMs": 123}

FollowUpSettingsInput

Fields
Input Field Description
enabled - Boolean!
delayMs - Int
Example
{"enabled": false, "delayMs": 123}

FullAccess

Values
Enum Value Description

READ

WRITE

Example
"READ"

GaugeWidgetCustomConfig

Fields
Field Name Description
kpi - WidgetKpi!
target - SingleTargetConfig
Example
{"kpi": "OEE1", "target": SingleTargetConfig}

GaugeWidgetCustomConfigInput

Fields
Input Field Description
kpi - WidgetKpi!
target - SingleTargetConfigInput
Example
{"kpi": "OEE1", "target": SingleTargetConfigInput}

GeneralNetworkSettings

Fields
Field Name Description
fallback - NetworkFallbackStrategy
Example
{"fallback": "NEVER"}

GeneralNetworkSettingsInput

Fields
Input Field Description
fallback - NetworkFallbackStrategy
Example
{"fallback": "NEVER"}

GeneralNetworkShadowSettings

Fields
Field Name Description
desired - GeneralNetworkSettings!
reported - GeneralNetworkSettings!
Example
{
  "desired": GeneralNetworkSettings,
  "reported": GeneralNetworkSettings
}

GenerateAPITokenInput

Fields
Input Field Description
name - String!
userSub - ID
ttl - Float
Example
{
  "name": "xyz789",
  "userSub": 4,
  "ttl": 987.65
}

GeneratedAPIToken

Fields
Field Name Description
tokenId - ID! Unique identifier for this token, used for revocation.
token - String! The API token value, only exposed upon creation.
name - String! The name of the API token, visible to the user.
description - String A description of what this API token is used for.
generatedAt - Date! The date this token was issued.
expiration - Float The expiration duration of a token if set to expire.
isActive - Boolean! Whether the token is active
userSub - ID! The owner (user) of this token.
Example
{
  "tokenId": 4,
  "token": "abc123",
  "name": "abc123",
  "description": "xyz789",
  "generatedAt": "2007-12-03",
  "expiration": 987.65,
  "isActive": false,
  "userSub": "4"
}

GeneratedActivityTemplate

Fields
Field Name Description
id - UUID!
status - GeneratedActivityTemplateStatus!
templateContent - GeneratedActivityTemplateContent
Example
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "status": "PENDING",
  "templateContent": GeneratedActivityTemplateContent
}

GeneratedActivityTemplateContent

Fields
Field Name Description
id - UUID!
title - String!
description - String!
customForm - CustomForm!
translations - [GeneratedActivityTemplateTranslation!]!
Example
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "title": "xyz789",
  "description": "abc123",
  "customForm": CustomForm,
  "translations": [GeneratedActivityTemplateTranslation]
}

GeneratedActivityTemplateInput

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

GeneratedActivityTemplateStatus

Values
Enum Value Description

PENDING

IN_PROGRESS

COMPLETED

FAILED

Example
"PENDING"

GeneratedActivityTemplateTranslation

Fields
Field Name Description
title - String!
description - String!
languageCode - String!
Example
{
  "title": "abc123",
  "description": "xyz789",
  "languageCode": "xyz789"
}

GeneratedExportDocument

Fields
Field Name Description
url - String!
name - String!
description - String
generatedAt - Date!
Example
{
  "url": "abc123",
  "name": "abc123",
  "description": "abc123",
  "generatedAt": "2007-12-03"
}

GeneratedPageReport

Fields
Field Name Description
url - String!
name - String!
generatedAt - Date!
Example
{
  "url": "abc123",
  "name": "abc123",
  "generatedAt": "2007-12-03"
}

GoldenBatch

Fields
Field Name Description
batchId - ID!
lineId - ID!
productId - ID!
oee1 - Float!
state - String!
acceptedAt - DateTime
Example
{
  "batchId": 4,
  "lineId": 4,
  "productId": 4,
  "oee1": 123.45,
  "state": "abc123",
  "acceptedAt": "2007-12-03T10:15:30Z"
}

GoldenBatchSettings

Fields
Field Name Description
timePeriodMonths - Int!
Example
{"timePeriodMonths": 123}

Group

Fields
Field Name Description
id - ID!
defaultGroup - Boolean
externalIds - [String!]!
peripheralIds - [ID!]!
lineIds - [ID!]!
owner - Company!
name - String!
description - String
nodeId - ID
role - Role!
users - UserList!
Arguments
filter - UserFilter
pagination - [TokenInput!]
limit - Int
sensors - [Sensor]! Sensors assigned to this organizational group. Use peripherals, with inline fragments instead.
peripherals - [Peripheral]! Equipment and sensors assigned to this group. Used for organizing production assets and access control.
Arguments
peripheralType - PeripheralType
peripheralsPaginated - PeripheralsPaginated! Paginated access to equipment in this group.
Arguments
offset - Int!
limit - Int!
lines - [Line]! Production lines assigned to this group. Enables group-level production monitoring and reporting.
scheduledReports - [ScheduledReport!]! Automated reports configured for this group.
Example
{
  "id": "4",
  "defaultGroup": false,
  "externalIds": ["abc123"],
  "peripheralIds": [4],
  "lineIds": ["4"],
  "owner": Company,
  "name": "abc123",
  "description": "xyz789",
  "nodeId": 4,
  "role": Role,
  "users": UserList,
  "sensors": [Sensor],
  "peripherals": [Peripheral],
  "peripheralsPaginated": PeripheralsPaginated,
  "lines": [Line],
  "scheduledReports": [ScheduledReport]
}

GroupAttributes

Fields
Input Field Description
name - String
description - String
externalIds - [String!]
roleId - String
Example
{
  "name": "xyz789",
  "description": "abc123",
  "externalIds": ["abc123"],
  "roleId": "abc123"
}

HierarchyNode

Fields
Field Name Description
id - NodeId!
version - Int!
meta - NodeMeta!
type - HierarchyNodeType!
descendants - HierarchyNodeConnection!
Arguments
depth - Int
before - String
after - String
first - Int
last - Int
filterBy - HierarchyNodeFilter
ancestors - [HierarchyNode!]!
Arguments
depth - Int
childrenCount - Int! Internal use only
Example
{
  "id": NodeId,
  "version": 987,
  "meta": LineNodeMeta,
  "type": "LINE",
  "descendants": HierarchyNodeConnection,
  "ancestors": [HierarchyNode],
  "childrenCount": 123
}

HierarchyNodeConnection

Fields
Field Name Description
pageInfo - PageInfo! Information to aid in pagination.
edges - [HierarchyNodeEdge!]! A list of edges.
nodes - [HierarchyNode!]! A list of nodes.
Example
{
  "pageInfo": PageInfo,
  "edges": [HierarchyNodeEdge],
  "nodes": [HierarchyNode]
}

HierarchyNodeEdge

Description

An edge in a connection.

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

HierarchyNodeFilter

Fields
Input Field Description
labels - [String!]
name - String
nodeTypes - [HierarchyNodeType!]
Example
{
  "labels": ["xyz789"],
  "name": "abc123",
  "nodeTypes": ["LINE"]
}

HierarchyNodeType

Values
Enum Value Description

LINE

DIRECTORY

PERIPHERAL

ASSET

Example
"LINE"

HorizontalAnnotation

Description

Horizontal reference line annotation on charts. Provides context markers for specific value thresholds or targets on the Y-axis.

Fields
Field Name Description
id - ID! Unique identifier for this annotation.
label - String! Display label for the horizontal reference line.
axisValue - String! Y-axis value where the horizontal line should be drawn.
Example
{
  "id": "4",
  "label": "xyz789",
  "axisValue": "abc123"
}

HorizontalAnnotationInput

Description

Input for creating horizontal reference line annotations. Allows users to mark important thresholds or targets on chart Y-axis.

Fields
Input Field Description
label - String! Display label for the horizontal reference line.
axisValue - String! Y-axis value where the horizontal line should be drawn.
Example
{
  "label": "abc123",
  "axisValue": "abc123"
}

HttpRedirect

Fields
Field Name Description
url - String!
statusCode - Int!
Example
{"url": "xyz789", "statusCode": 987}

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

IWorker

Fields
Field Name Description
id - ID!
name - String!
email - String
phoneNumber - String
userSub - String This feature is experimental and might be replaced
role - AndonRole! Workers may now reference multiple roles.
roles - [AndonRole!]!
preferredSchedules - [AndonSchedule!]!
Possible Types
IWorker Types

Worker

AttendingWorker

Example
{
  "id": 4,
  "name": "xyz789",
  "email": "abc123",
  "phoneNumber": "abc123",
  "userSub": "abc123",
  "role": AndonRole,
  "roles": [AndonRole],
  "preferredSchedules": [AndonSchedule]
}

ImagesOptions

Fields
Field Name Description
validation - ImagesOptionsValidation!
Example
{"validation": ImagesOptionsValidation}

ImagesOptionsInput

Fields
Input Field Description
validation - ImagesOptionsValidationInput!
Example
{"validation": ImagesOptionsValidationInput}

ImagesOptionsValidation

Fields
Field Name Description
required - Boolean!
Example
{"required": true}

ImagesOptionsValidationInput

Fields
Input Field Description
required - Boolean!
Example
{"required": true}

InitializeHierarchyInput

Fields
Input Field Description
rootName - String!
Example
{"rootName": "abc123"}

InitialsSettings

Values
Enum Value Description

REQUIRED_IF_OUTSIDE_LIMITS

ALWAYS_REQUIRED

Example
"REQUIRED_IF_OUTSIDE_LIMITS"

InputMode

Values
Enum Value Description

COUNTER

UPTIME

Example
"COUNTER"

InputModeState

Fields
Field Name Description
desired - InputMode
reported - InputMode
Example
{"desired": "COUNTER", "reported": "COUNTER"}

InputParameter

Fields
Input Field Description
key - String!
value - String!
Example
{
  "key": "xyz789",
  "value": "abc123"
}

InputTimeRange

Fields
Input Field Description
from - Date! Start date for the data query (required).
to - Date! End date for the data query (required).
Example
{
  "from": "2007-12-03",
  "to": "2007-12-03"
}

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

InvalidateSessionInput

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

InvalidateUserSessionInput

Fields
Input Field Description
sub - ID!
timestamp - String!
Example
{"sub": 4, "timestamp": "xyz789"}

IssueCertificateInput

Fields
Input Field Description
id - ID! The thing (device hardware) identifier.
Example
{"id": 4}

IssuedCertificate

Fields
Field Name Description
url - String! The temporary URL where the certificate is available
certificate - Certificate!
Example
{
  "url": "abc123",
  "certificate": Certificate
}

JSON

Example
{}

JobExecutionSummary

Fields
Field Name Description
thingName - String
jobId - String
executionNumber - Int
lastUpdatedAt - Int
queuedAt - Int
retryAttempt - Int
startedAt - Int
status - JobStatus
describeJobExecution - DescribeJobExecution
Example
{
  "thingName": "xyz789",
  "jobId": "abc123",
  "executionNumber": 987,
  "lastUpdatedAt": 123,
  "queuedAt": 987,
  "retryAttempt": 987,
  "startedAt": 987,
  "status": "QUEUED",
  "describeJobExecution": DescribeJobExecution
}

JobStatus

Description

Execution status of device management jobs. Tracks the progress of remote device operations and maintenance tasks.

Values
Enum Value Description

QUEUED

Job waiting to be executed.

IN_PROGRESS

Job currently being executed on the device.

SUCCEEDED

Job completed successfully.

FAILED

Job failed due to error or device issue.

TIMED_OUT

Job exceeded maximum execution time.

REJECTED

Job rejected by device or system.

REMOVED

Job removed from queue before execution.

CANCELED

Job canceled by operator or system.
Example
"QUEUED"

JobType

Description

Types of remote device management operations. Defines available maintenance and update operations for field devices.

Values
Enum Value Description

OTA

Over-The-Air firmware update.

POWER_CYCLE

Remote power cycle (restart device).

FACTORY_RESET

Reset device to factory default settings.
Example
"OTA"

KPIConfiguration

Fields
Field Name Description
displayKPIs - [String!]!
Example
{"displayKPIs": ["abc123"]}

KPIConfigurationInput

Fields
Input Field Description
displayKPIs - [String!]!
Example
{"displayKPIs": ["abc123"]}

KPIParameter

Fields
Field Name Description
key - String!
value - String!
Example
{
  "key": "abc123",
  "value": "abc123"
}

KpiWidgetConfigInput

Fields
Input Field Description
kpi - WidgetKpi!
Example
{"kpi": "OEE1"}

KpiWidgetCustomConfig

Fields
Field Name Description
kpi - WidgetKpi!
target - MultiTargetConfig
Example
{"kpi": "OEE1", "target": MultiTargetConfig}

KpiWidgetCustomConfigInput

Fields
Input Field Description
kpi - WidgetKpi!
target - TargetConfigInput
Example
{"kpi": "OEE1", "target": TargetConfigInput}

KpiWidgetData

Fields
Field Name Description
value - Float
Example
{"value": 123.45}

LastPeriod

Description

Represents "Last N weeks/months"

Fields
Field Name Description
count - Int! The number of units (e.g., 2 for "Last 2 weeks")
unit - RelativeTimeUnit! The unit (only Week, Month supported)
Example
{"count": 987, "unit": "WEEK"}

LastPeriodInput

Description

Input for "Last N days/weeks/months"

Fields
Input Field Description
count - Int! The number of units (e.g., 7 for "Last 7 days")
unit - RelativeTimeUnit! The unit (Day, Week, Month - Quarter and Year are not supported)
Example
{"count": 987, "unit": "WEEK"}

LearningActivity

Fields
Field Name Description
id - UUID!
version - Int!
nodeId - String!
title - String!
description - String
content - String
startEndDatesRequired - Boolean!
validityInMonths - Int
createdAt - DateTime!
updatedAt - DateTime!
createdBySub - String!
updatedBySub - String!
node - HierarchyNode Production area or equipment this training applies to.
createdBy - User
updatedBy - User
Example
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "version": 123,
  "nodeId": "xyz789",
  "title": "abc123",
  "description": "xyz789",
  "content": "abc123",
  "startEndDatesRequired": false,
  "validityInMonths": 987,
  "createdAt": "2007-12-03T10:15:30Z",
  "updatedAt": "2007-12-03T10:15:30Z",
  "createdBySub": "xyz789",
  "updatedBySub": "xyz789",
  "node": HierarchyNode,
  "createdBy": User,
  "updatedBy": User
}

LearningActivityConnection

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

LearningActivityEdge

Description

An edge in a connection.

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

LearningActivityFilter

Fields
Input Field Description
nodeIds - [ID!]!
search - String
Example
{"nodeIds": [4], "search": "xyz789"}

LearningRole

Fields
Field Name Description
id - UUID!
title - String!
description - String
nodeId - ID!
createdAt - DateTime!
updatedAt - DateTime!
createdBySub - String!
updatedBySub - String!
skills - LearningRoleSkillsConnection! Internal use only
Arguments
after - String
before - String
first - Int
last - Int
node - HierarchyNode Production area covered by this learning role.
createdBy - User
updatedBy - User
Example
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "title": "abc123",
  "description": "xyz789",
  "nodeId": "4",
  "createdAt": "2007-12-03T10:15:30Z",
  "updatedAt": "2007-12-03T10:15:30Z",
  "createdBySub": "abc123",
  "updatedBySub": "xyz789",
  "skills": LearningRoleSkillsConnection,
  "node": HierarchyNode,
  "createdBy": User,
  "updatedBy": User
}

LearningRoleConnection

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

LearningRoleEdge

Description

An edge in a connection.

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

LearningRoleFilter

Fields
Input Field Description
nodeIds - [ID!]
roleIds - [UUID!]
skillIds - [UUID!]
search - String
Example
{
  "nodeIds": ["4"],
  "roleIds": [
    "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
  ],
  "skillIds": [
    "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
  ],
  "search": "abc123"
}

LearningRoleSkill

Fields
Field Name Description
id - UUID!
nodeId - String!
title - String!
description - String
createdAt - DateTime!
updatedAt - DateTime!
createdBy - String!
updatedBy - String!
orderIndex - Int!
node - HierarchyNode Production context for this skill requirement.
Example
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "nodeId": "abc123",
  "title": "xyz789",
  "description": "abc123",
  "createdAt": "2007-12-03T10:15:30Z",
  "updatedAt": "2007-12-03T10:15:30Z",
  "createdBy": "xyz789",
  "updatedBy": "xyz789",
  "orderIndex": 987,
  "node": HierarchyNode
}

LearningRoleSkillsConnection

Fields
Field Name Description
pageInfo - PageInfo! Information to aid in pagination.
edges - [LearningRoleSkillsEdge!]! A list of edges.
nodes - [LearningRoleSkill!]! A list of nodes.
Example
{
  "pageInfo": PageInfo,
  "edges": [LearningRoleSkillsEdge],
  "nodes": [LearningRoleSkill]
}

LearningRoleSkillsEdge

Description

An edge in a connection.

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

LearningRoleStatus

Values
Enum Value Description

ENROLLED

COMPLETED

ABOUT_TO_EXPIRE

EXPIRED

Example
"ENROLLED"

Line

Fields
Field Name Description
id - ID! The identifier of the line.
languageCode - String! The language code of the line metadata.
owner - ID Discontinued
location - Location!
name - String! The name of the line.
description - String The description of the line.
mainPeripheralId - ID! The identifier of the main node. The ID is a valid PeripheralId.
nodes - [LineNode!]! The nodes that make up the line.
edges - [LineEdge!]! The edges between the nodes.
settings - LineSettings Settings for this line
goldenBatch - GoldenBatch Get the golden batch for this line, or optionally for a product on this line if productId is set. Internal use only
Arguments
productId - ID
bestPendingGoldenBatch - GoldenBatch Get the best pending golden batch for a product on this line. Internal use only
Arguments
productId - ID!
time - [LineTimeData!]! Access time-based production data, KPIs, and analytics for specific periods. Core method for retrieving performance metrics, production statistics, and operational data.
Arguments
time - [Time!]!
products - ProductList! Products that can be manufactured on this line. Used for batch planning and production scheduling.
Arguments
filter - ProductFilter
maxItems - Int
paginationToken - ID
packagings - PackagingList! Packaging configurations available for products on this line.
Arguments
filter - PackagingFilter
maxItems - Int
paginationToken - ID
batches - BatchList! Production batches executed or scheduled on this line. Historical and current batch data for production tracking.
Arguments
filter - BatchFilter
maxItems - Int
paginationToken - ID
batch - Batch! Retrieve a specific batch by ID from this line.
Arguments
batchId - ID!
schedule - Schedule Shift schedule configuration for the specified time.
Arguments
validIn - ScheduleTimeInput!
mainSensor - Sensor Primary production counter sensor for this line. Most important sensor for production tracking and KPI calculations.
scheduledReports - [ScheduledReport!]! Automated reports configured for this line.
andonSchedules - [AndonSchedule!]! Andon system schedules for operator notifications.
nextShift - ShiftInstance Next scheduled shift starting from the given date.
Arguments
from - Date!
scheduledEnd - Date Calculates when production will complete based on shift schedules. Accounts for breaks, shift changes, and non-production time.
Arguments
from - Date!
duration - Int!
previousShift - ShiftInstance Previous shift that occurred before the given date.
Arguments
from - Date!
maintenanceWorkOrders - MaintenanceWorkOrderConnection! Get the line's maintenance work orders
Arguments
before - String
after - String
first - Int
last - Int
statusFilter - [WorkOrderStatusFilter!]
groups - [Group!]
Example
{
  "id": 4,
  "languageCode": "abc123",
  "owner": "4",
  "location": Location,
  "name": "abc123",
  "description": "abc123",
  "mainPeripheralId": "4",
  "nodes": [LineNode],
  "edges": [LineEdge],
  "settings": LineSettings,
  "goldenBatch": GoldenBatch,
  "bestPendingGoldenBatch": GoldenBatch,
  "time": [LineTimeData],
  "products": ProductList,
  "packagings": PackagingList,
  "batches": BatchList,
  "batch": Batch,
  "schedule": Schedule,
  "mainSensor": Sensor,
  "scheduledReports": [ScheduledReport],
  "andonSchedules": [AndonSchedule],
  "nextShift": ShiftInstance,
  "scheduledEnd": "2007-12-03",
  "previousShift": ShiftInstance,
  "maintenanceWorkOrders": MaintenanceWorkOrderConnection,
  "groups": [Group]
}

LineBatchSettings

Fields
Field Name Description
useShiftScheduleInETC - Boolean! If set to 'true', only scheduled time be considered when calculating Estimated time of completion for batches. If set to false, it's assumed that the line is always scheduled to run
Example
{"useShiftScheduleInETC": true}

LineBatchSettingsInput

Fields
Input Field Description
useShiftScheduleInETC - Boolean If set to 'true', only scheduled time be considered when calculating Estimated time of completion for batches. If set to false, it's assumed that the line is always scheduled to run
Example
{"useShiftScheduleInETC": true}

LineEdge

Fields
Field Name Description
from - ID The start point of the edge. If null, it means it's a root node.
to - ID! The end point of the edge.
Example
{"from": 4, "to": 4}

LineEdgeInput

Fields
Input Field Description
from - ID The start point of the edge. If null, it means it's a root node.
to - ID! The end point of the edge.
Example
{
  "from": "4",
  "to": "4"
}

LineFilterInput

Fields
Input Field Description
lineName - String Apply a filter on the line names.
lineDescription - String Apply a filter on the line descriptions.
nodeType - NodeType Apply a filter on the node type.
nodePosition - NodePosition Filter nodes that are upstream/downstream from main peripheral
lineIds - [ID!] Apply a filter on specific line IDs.
Example
{
  "lineName": "abc123",
  "lineDescription": "xyz789",
  "nodeType": "Main",
  "nodePosition": "DOWNSTREAM_FROM_MAIN",
  "lineIds": [4]
}

LineId

Description

A LineId is a unique identifier for a line, without a line| type prefix.

Example
LineId

LineNode

Fields
Field Name Description
id - ID! The identifier of the node (used to target parents). Use peripheralId instead.
type - NodeType! The type of the node (i.e. scrap, counter, main, etc).
peripheralId - ID! The peripheral information of the node.
position - NodePosition The position of the node in relation to the main peripheral. None if main node or unspecified.
sensor - Sensor Will be null if and only if either the peripheral does not exist or the peripheral is not a sensor
Example
{
  "id": "4",
  "type": "Main",
  "peripheralId": 4,
  "position": "DOWNSTREAM_FROM_MAIN",
  "sensor": Sensor
}

LineNodeInput

Fields
Input Field Description
nodeId - ID The id information of the node.
type - NodeType! The type of the node (i.e. scrap, counter, main, etc).
peripheralId - ID! The peripheral information of the node.
Example
{
  "nodeId": "4",
  "type": "Main",
  "peripheralId": "4"
}

LineNodeMeta

Fields
Field Name Description
lineId - LineId!
labels - [String!]!
line - Line Production line associated with this hierarchy node. Null if the line does not exist or is not accessible.
Example
{
  "lineId": LineId,
  "labels": ["abc123"],
  "line": Line
}

LineNodeMetaInput

Fields
Input Field Description
lineId - LineId!
labels - [String!]
Example
{
  "lineId": LineId,
  "labels": ["xyz789"]
}

LineNodeMetaUpdateInput

Fields
Input Field Description
labels - [String!]
Example
{"labels": ["xyz789"]}

LineOEESettings

Fields
Field Name Description
includeSpeedLoss - Boolean! When looking at OEE for this line, should speed loss be included?
includeScrap - Boolean! When looking at OEE for this line, should scrap be included?
showOEE1 - Boolean! Should the OEE1 be shown in the frontend?
showOEE2 - Boolean! Should the OEE2 be shown in the frontend?
showOEE3 - Boolean! Should the OEE3 be shown in the frontend?
showTCU - Boolean! Should the TCU be shown in the frontend?
Example
{
  "includeSpeedLoss": false,
  "includeScrap": true,
  "showOEE1": true,
  "showOEE2": false,
  "showOEE3": false,
  "showTCU": true
}

LineOEESettingsInput

Fields
Input Field Description
includeSpeedLoss - Boolean! When looking at OEE for this line, should speed loss be included?
includeScrap - Boolean! When looking at OEE for this line, should scrap be included?
showOEE1 - Boolean Should the OEE1 be shown in the frontend?
showOEE2 - Boolean Should the OEE2 be shown in the frontend?
showOEE3 - Boolean Should the OEE3 be shown in the frontend?
showTCU - Boolean Should the TCU be shown in the frontend?
Example
{
  "includeSpeedLoss": true,
  "includeScrap": false,
  "showOEE1": false,
  "showOEE2": true,
  "showOEE3": false,
  "showTCU": false
}

LineParentInput

Fields
Input Field Description
directory - UUID
Example
{
  "directory": "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
}

LineSettings

Fields
Field Name Description
oee - LineOEESettings OEE settings
batch - LineBatchSettings Batch related settings
Example
{
  "oee": LineOEESettings,
  "batch": LineBatchSettings
}

LineSettingsInput

Fields
Input Field Description
oee - LineOEESettingsInput OEE settings
batch - LineBatchSettingsInput Batch related settings
Example
{
  "oee": LineOEESettingsInput,
  "batch": LineBatchSettingsInput
}

LineStatus

Description

Current line status with duration and cause information. Provides real-time visibility into line state for operations monitoring.

Fields
Field Name Description
duration - Float Duration in milliseconds that the line has been in current status.
status - Status Current operating status of the line.
cause - String Reason or description for the current status.
Example
{
  "duration": 987.65,
  "status": "OFF",
  "cause": "abc123"
}

LineStopStats

Fields
Field Name Description
lineId - ID!
lineName - String!
stopStats - StopStats!
Example
{
  "lineId": "4",
  "lineName": "xyz789",
  "stopStats": StopStats
}

LineTimeData

Description

Time-based data container for line performance metrics. Contains production statistics, stops, batches, and KPIs for a specific time period.

Fields
Field Name Description
configs - [SensorConfig]! Sensor configuration settings active during this time period.
alarmLogs - AlarmLogs! Alarm events that occurred during this time period.
Arguments
exclusiveStartKey - AlarmLogExclusiveStartKey
limit - Int
filter - AlarmLogFilter
batches - BatchList! Production batches that were active during this time period. Use for batch-based performance analysis and production tracking.
Arguments
filter - BatchFilter
maxItems - Int
paginationToken - ID
clip - Boolean
dataOverrides - [DataOverride!]! Manual data corrections applied to sensor readings.
pendingControls - BatchControlList! Pending control actions or operator instructions for batches.
Arguments
maxItems - Int
paginationToken - ID
samples - [Sample!]! Production count data from the main line sensor. Time-series data showing production progress over time.
Arguments
points - Int
requestRaw - Boolean
resample - Boolean
raw - Boolean
scrap - [Sample!]! Quality data from scrap detection sensors. Used to calculate scrap rates and identify quality issues.
shifts - [ShiftInstance!]! Shift instances that occurred during this time period.
stops - [Stop!]! Downtime events with cause codes and durations. Essential for availability analysis and loss categorization.
Arguments
filter - StopFilter
languageCode - String
stopStats - StopStats! Aggregated stop statistics and downtime analysis. Summary metrics for stop frequency, duration, and causes.
Arguments
filter - StopFilter
input - StatsInput
stats - Stat! Comprehensive performance statistics and KPIs. Includes OEE, production metrics, quality data, and availability.
Arguments
input - StatsInput
changeoverStops - [ChangeoverStop]!
Arguments
filter - StopFilter
languageCode - String
_id - ID Cache key for efficient data retrieval.
timeRange - TimeRange! The actual time range of the returned data.
Example
{
  "configs": [SensorConfig],
  "alarmLogs": AlarmLogs,
  "batches": BatchList,
  "dataOverrides": [DataOverride],
  "pendingControls": BatchControlList,
  "samples": [Sample],
  "scrap": [Sample],
  "shifts": [ShiftInstance],
  "stops": [Stop],
  "stopStats": StopStats,
  "stats": Stat,
  "changeoverStops": [ChangeoverStop],
  "_id": 4,
  "timeRange": TimeRange
}

LinesPaginated

Fields
Field Name Description
items - [Line!]!
nextOffset - Int
total - Int!
Example
{"items": [Line], "nextOffset": 987, "total": 123}

LiveDataDocumentType

Values
Enum Value Description

CHART

KPI

Example
"CHART"

Location

Fields
Field Name Description
timeZone - String Null means unspecified
Example
{"timeZone": "xyz789"}

LocationInput

Fields
Input Field Description
nodeIds - [String!]!
Example
{"nodeIds": ["xyz789"]}

LocationRole

Fields
Field Name Description
roleId - String!
locationId - NodeId!
Example
{
  "roleId": "abc123",
  "locationId": NodeId
}

LocationRoleInput

Fields
Input Field Description
roleId - String!
locationId - NodeId!
Example
{
  "roleId": "abc123",
  "locationId": NodeId
}

MaintenanceEvent

Fields
Field Name Description
id - ID!
lineId - ID!
summary - String!
description - String
duration - Float!
rRuleSet - String!
attendees - [Attendee!]!
Example
{
  "id": 4,
  "lineId": 4,
  "summary": "xyz789",
  "description": "abc123",
  "duration": 123.45,
  "rRuleSet": "abc123",
  "attendees": [Attendee]
}

MaintenanceFilter

Description

Filter criteria for maintenance operations. Combines work order and plan filtering options for comprehensive maintenance queries.

Fields
Input Field Description
status - [WorkOrderStatusFilter!] If set, only work orders with the given status will be returned. If not set, all work orders will be returned.
lineIds - [LineId!]
roleIds - [MaintenanceRoleId!]
repeat - ShouldRepeat
Example
{
  "status": ["PLANNED"],
  "lineIds": [LineId],
  "roleIds": [MaintenanceRoleId],
  "repeat": "YES"
}

MaintenanceLogEntry

Fields
Field Name Description
planId - MaintenancePlanId
lineId - LineId!
status - WorkOrderStatus!
workOrderDueAt - DateTime Timestamp when the work order was due, recorded at time of log entry creation
workOrderOverdueAt - DateTime Timestamp when the work order was overdue, recorded at time of log entry creation
timestamp - DateTime! Timestamp when the log entry was created
produced - Int The number of cycled since the previous maintenance. Only set if tracking by production
startFrom - DateTime The time at which the previous maintenance was done.
initials - String!
comment - String!
planSnapshot - MaintenancePlanSnapshot Snapshot of the maintenance plan that scheduled the work order
customData - CustomFormData Custom data that may have been attached to the work order
andonCallId - String ID of Andon call associated with the entry
stopCauseIds - [String!]! Stop causes associated with the entry
stopCausePeripheralId - PeripheralId ID of peripheral associated with the stop cause
assetIds - [NodeId!]! ID of assets associated with the entry
startOfService - DateTime Start of service
endOfService - DateTime End of service
startOfStop - DateTime Start of stop
endOfStop - DateTime End of stop
version - Int! Version of the log entry
effectiveDuration - Int Duration in seconds between the previous maintenance and the time the work order was completed. The duration is effective in the sense that it does not include days that are skipped. Only set if tracking by time.
line - Line Production line where this maintenance was performed. Links maintenance activities to production impact.
stopCauses - [StopCause!] Downtime causes addressed by this maintenance activity. Enables correlation between maintenance actions and failure prevention.
assets - [HierarchyNode!] Assets and equipment affected by this maintenance entry. Provides comprehensive asset maintenance history tracking.
Example
{
  "planId": MaintenancePlanId,
  "lineId": LineId,
  "status": "COMPLETED",
  "workOrderDueAt": "2007-12-03T10:15:30Z",
  "workOrderOverdueAt": "2007-12-03T10:15:30Z",
  "timestamp": "2007-12-03T10:15:30Z",
  "produced": 987,
  "startFrom": "2007-12-03T10:15:30Z",
  "initials": "xyz789",
  "comment": "xyz789",
  "planSnapshot": MaintenancePlanSnapshot,
  "customData": CustomFormData,
  "andonCallId": "xyz789",
  "stopCauseIds": ["abc123"],
  "stopCausePeripheralId": PeripheralId,
  "assetIds": [NodeId],
  "startOfService": "2007-12-03T10:15:30Z",
  "endOfService": "2007-12-03T10:15:30Z",
  "startOfStop": "2007-12-03T10:15:30Z",
  "endOfStop": "2007-12-03T10:15:30Z",
  "version": 987,
  "effectiveDuration": 987,
  "line": Line,
  "stopCauses": [StopCause],
  "assets": [HierarchyNode]
}

MaintenanceLogEntryConnection

Fields
Field Name Description
pageInfo - PageInfo! Information to aid in pagination.
edges - [MaintenanceLogEntryEdge!]! A list of edges.
nodes - [MaintenanceLogEntry!]! A list of nodes.
Example
{
  "pageInfo": PageInfo,
  "edges": [MaintenanceLogEntryEdge],
  "nodes": [MaintenanceLogEntry]
}

MaintenanceLogEntryEdge

Description

An edge in a connection.

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

MaintenanceLogFilter

Description

Filter options for maintenance log entry queries. Allows filtering log entries by production lines.

Fields
Input Field Description
lineIds - [LineId!]
Example
{"lineIds": [LineId]}

MaintenancePlan

Fields
Field Name Description
planId - MaintenancePlanId!
lineId - LineId!
title - String!
asset - String!
tagPartNumber - String
instructions - String
startFrom - DateTime!
trackBy - TrackByOptions!
repeat - ShouldRepeat!
version - Int!
role - MaintenanceRole!
log - MaintenanceLogEntryConnection!
Arguments
before - String
after - String
first - Int
last - Int
nextWorkOrder - MaintenanceWorkOrder
Arguments
peripheral - Peripheral Target equipment or sensor for this maintenance plan. Enables equipment-specific preventive maintenance scheduling.
line - Line Production line covered by this maintenance plan. Used for line-level maintenance coordination and production impact planning.
Example
{
  "planId": MaintenancePlanId,
  "lineId": LineId,
  "title": "abc123",
  "asset": "xyz789",
  "tagPartNumber": "abc123",
  "instructions": "abc123",
  "startFrom": "2007-12-03T10:15:30Z",
  "trackBy": TrackByOptions,
  "repeat": "YES",
  "version": 123,
  "role": MaintenanceRole,
  "log": MaintenanceLogEntryConnection,
  "nextWorkOrder": MaintenanceWorkOrder,
  "peripheral": Peripheral,
  "line": Line
}

MaintenancePlanConnection

Fields
Field Name Description
pageInfo - PageInfo! Information to aid in pagination.
edges - [MaintenancePlanEdge!]! A list of edges.
nodes - [MaintenancePlan!]! A list of nodes.
Example
{
  "pageInfo": PageInfo,
  "edges": [MaintenancePlanEdge],
  "nodes": [MaintenancePlan]
}

MaintenancePlanEdge

Description

An edge in a connection.

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

MaintenancePlanFilter

Description

Filter options for maintenance plan queries. Allows filtering by production lines, roles, and repeat schedules.

Fields
Input Field Description
lineIds - [LineId!]
roleIds - [MaintenanceRoleId!]
repeat - ShouldRepeat
Example
{
  "lineIds": [LineId],
  "roleIds": [MaintenanceRoleId],
  "repeat": "YES"
}

MaintenancePlanId

Example
MaintenancePlanId

MaintenancePlanSnapshot

Fields
Field Name Description
title - String!
asset - String!
tagPartNumber - String
instructions - String
trackBy - TrackByOptions!
Example
{
  "title": "abc123",
  "asset": "abc123",
  "tagPartNumber": "abc123",
  "instructions": "xyz789",
  "trackBy": TrackByOptions
}

MaintenanceRole

Fields
Field Name Description
id - MaintenanceRoleId!
name - String
Example
{
  "id": MaintenanceRoleId,
  "name": "xyz789"
}

MaintenanceRoleId

Example
MaintenanceRoleId

MaintenanceSchedule

Fields
Field Name Description
events - [MaintenanceEvent!]!
Arguments
from - Date!
to - Date!
Example
{"events": [MaintenanceEvent]}

MaintenanceWorkOrder

Description

A work order is an actual maintenance event produced by a maintenance plan

Fields
Field Name Description
plan - MaintenancePlan! The plan that generated the work order
dueAt - DateTime! "dueAt" is the time where the event is to be done - after the cycle (time or production-based) completes
overdueAt - DateTime! "overdueAt" is the time where the grace period ends - after which the work order is overdue
produced - Int
latestMaintenance - MaintenanceLogEntry
peripheral - Peripheral Specific equipment or sensor targeted by this maintenance work order. Enables equipment-specific maintenance tracking and history.
line - Line Production line associated with this maintenance work order. Provides production context for maintenance planning and impact assessment.
Example
{
  "plan": MaintenancePlan,
  "dueAt": "2007-12-03T10:15:30Z",
  "overdueAt": "2007-12-03T10:15:30Z",
  "produced": 987,
  "latestMaintenance": MaintenanceLogEntry,
  "peripheral": Peripheral,
  "line": Line
}

MaintenanceWorkOrderConnection

Fields
Field Name Description
pageInfo - PageInfo! Information to aid in pagination.
edges - [MaintenanceWorkOrderEdge!]! A list of edges.
nodes - [MaintenanceWorkOrder!]! A list of nodes.
Example
{
  "pageInfo": PageInfo,
  "edges": [MaintenanceWorkOrderEdge],
  "nodes": [MaintenanceWorkOrder]
}

MaintenanceWorkOrderEdge

Description

An edge in a connection.

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

MaintenanceWorkOrderFilter

Description

Filter criteria for maintenance work order queries. Controls which work orders are returned based on their status.

Fields
Input Field Description
status - [WorkOrderStatusFilter!] If set, only work orders with the given status will be returned. If not set, all work orders will be returned.
Example
{"status": ["PLANNED"]}

ManualConfig

Fields
Field Name Description
productionCount - Boolean!
stopRegistration - Boolean!
Example
{"productionCount": false, "stopRegistration": false}

ManualConfigInput

Fields
Input Field Description
productionCount - Boolean!
stopRegistration - Boolean!
Example
{"productionCount": false, "stopRegistration": false}

ManualTriggerOptions

Fields
Field Name Description
placeholder - Boolean
Example
{"placeholder": true}

ManualTriggerOptionsInput

Fields
Input Field Description
placeholder - Boolean
Example
{"placeholder": true}

MarkdownOptions

Fields
Field Name Description
content - String!
Example
{"content": "xyz789"}

MarkdownOptionsInput

Fields
Input Field Description
content - String!
Example
{"content": "abc123"}

MediaPresignedDownloadUrl

Fields
Field Name Description
downloadUrl - String!
Example
{"downloadUrl": "xyz789"}

MediaPresignedUploadUrl

Fields
Field Name Description
fileName - String!
uploadUrl - String!
Example
{
  "fileName": "abc123",
  "uploadUrl": "abc123"
}

Message

Fields
Field Name Description
id - ID!
type - SubscriptionType!
delay - Float!
takenDelay - Float
Example
{
  "id": "4",
  "type": "SMS",
  "delay": 123.45,
  "takenDelay": 123.45
}

MessageContext

Fields
Input Field Description
directoryIds - [String!]!
lineIds - [String!]!
Example
{
  "directoryIds": ["abc123"],
  "lineIds": ["abc123"]
}

MessageStatus

Values
Enum Value Description

COMPLETE

INCOMPLETE

ERROR

Example
"COMPLETE"

MinimalBatch

Description

Minimal batch representation for lightweight queries and references. Used in contexts where only basic batch information is needed.

Fields
Field Name Description
batchId - ID! Unique identifier for the production batch.
batchNumber - String! Human-readable batch identifier.
plannedStart - Date Scheduled start time for batch production.
actualStart - Date
actualStop - Date
product - MinimalProduct!
Example
{
  "batchId": "4",
  "batchNumber": "abc123",
  "plannedStart": "2007-12-03",
  "actualStart": "2007-12-03",
  "actualStop": "2007-12-03",
  "product": MinimalProduct
}

MinimalProduct

Fields
Field Name Description
productId - ID!
name - String!
itemNumber - String!
validatedLineSpeed - Float!
expectedAverageSpeed - Float!
parameters - [Parameter!]!
Example
{
  "productId": 4,
  "name": "abc123",
  "itemNumber": "xyz789",
  "validatedLineSpeed": 987.65,
  "expectedAverageSpeed": 987.65,
  "parameters": [Parameter]
}

MultiSelectFieldOptions

Fields
Field Name Description
validation - MultiSelectFieldValidation!
options - [SelectFieldOption!]!
Example
{
  "validation": MultiSelectFieldValidation,
  "options": [SelectFieldOption]
}

MultiSelectFieldOptionsInput

Fields
Input Field Description
validation - MultiSelectFieldValidationInput!
options - [SelectFieldOptionInput!]!
Example
{
  "validation": MultiSelectFieldValidationInput,
  "options": [SelectFieldOptionInput]
}

MultiSelectFieldValidation

Fields
Field Name Description
required - Boolean!
Example
{"required": false}

MultiSelectFieldValidationInput

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

MultiTargetConfig

Fields
Field Name Description
enabled - Boolean!
type - TargetType!
badValue - Float!
mediumValue - Float!
targetValue - Float!
Example
{
  "enabled": false,
  "type": "HIGHER",
  "badValue": 123.45,
  "mediumValue": 123.45,
  "targetValue": 987.65
}

Network

Fields
Field Name Description
id - ID!
ssid - String!
password - String
ip - String
subnet - String
gateway - String
Example
{
  "id": 4,
  "ssid": "xyz789",
  "password": "xyz789",
  "ip": "abc123",
  "subnet": "abc123",
  "gateway": "abc123"
}

NetworkConfig

Fields
Field Name Description
wifi - WiFiConfigShadow
connection - NetworkConnectionType!
general - GeneralNetworkShadowSettings!
Example
{
  "wifi": WiFiConfigShadow,
  "connection": "WIFI",
  "general": GeneralNetworkShadowSettings
}

NetworkConnectionType

Values
Enum Value Description

WIFI

CELLULAR

Example
"WIFI"

NetworkFallbackStrategy

Values
Enum Value Description

NEVER

FALLBACK_TO_CELLULAR

Example
"NEVER"

NetworkInput

Fields
Input Field Description
id - ID
ssid - String!
password - String
ip - String
subnet - String
gateway - String
Example
{
  "id": "4",
  "ssid": "xyz789",
  "password": "xyz789",
  "ip": "xyz789",
  "subnet": "xyz789",
  "gateway": "abc123"
}

NewStopCauseCategory

Fields
Input Field Description
newCategoryId - ID!
index - Int!
Example
{"newCategoryId": "4", "index": 123}

Node

Description

Node in the tree hierarchy. Represents equipment, lines, or organizational units with monitoring capabilities.

Fields
Field Name Description
id - ID! Unique identifier for this node in the tree hierarchy.
breadcrumb - [Breadcrumb!]! Navigation path from root of the tree hierarchy to this node for context display.
refId - ID Reference identifier linking to actual equipment or line entities. Can be formats like 'line|' or 'peripheral|'.
alarmStatus - NodeAlarmStatus Current alarm status indicating equipment health and alert state.
children - [Node!]! Direct child nodes under this node in the tree hierarchy.
Arguments
treeId - String
leafDescendants - NodesWithPageToken All leaf-level equipment descendants reachable from this node. Useful for getting all monitored equipment under a facility or department.
Arguments
treeId - String!
nextPageToken - String
line - Line Production line associated with this tree node.
peripheral - Peripheral Equipment or sensor associated with this tree node.
Example
{
  "id": "4",
  "breadcrumb": [Breadcrumb],
  "refId": 4,
  "alarmStatus": "Ongoing",
  "children": [Node],
  "leafDescendants": NodesWithPageToken,
  "line": Line,
  "peripheral": Peripheral
}

NodeAlarmStatus

Description

Alarm status for equipment nodes in the tree hierarchy. Indicates the current state of alerts and notifications for equipment monitoring.

Values
Enum Value Description

Ongoing

Active alarms are currently triggered and require attention.

Normal

Equipment is operating normally with no active alarms.

Disabled

Alarms are disabled for this equipment node.

Snoozed

Alarms are temporarily silenced but will reactivate automatically.
Example
"Ongoing"

NodeId

Description

A unique identifier for a node in the organization. Has the format {type}|{id} where {type} is one of 'directory', 'line', 'peripheral' or 'asset' and {id} is a unique ID. For lines and peripherals, the {id} is identical to the ID of the line or peripheral.

Example
NodeId

NodeMeta

Example
LineNodeMeta

NodePosition

Values
Enum Value Description

DOWNSTREAM_FROM_MAIN

Node is downstream from the main peripheral

UPSTREAM_FROM_MAIN

Node is upstream from the main peripheral
Example
"DOWNSTREAM_FROM_MAIN"

NodeType

Values
Enum Value Description

Main

The main counter of the line.

Counter

A counter in the line.

Scrap

A scrap counter in the line.

Rework

A rework counter on the line.

Camera

A camera on the line.

Event

Events from the line.
Example
"Main"

NodesWithPageToken

Description

Paginated response for large equipment hierarchies. Allows efficient navigation through extensive tree hierarchies.

Fields
Field Name Description
nodes - [Node!]! List of nodes in the current page of results.
nextPageToken - String Token for retrieving the next page of nodes (null if no more pages).
Example
{
  "nodes": [Node],
  "nextPageToken": "abc123"
}

NumberFieldOperator

Values
Enum Value Description

SUM

AVG

MIN

MAX

Example
"SUM"

NumberFieldOptions

Fields
Field Name Description
validation - NumberFieldValidation!
passCriteria - NumberFieldPassCriteria! Pass criteria are different from form validation, because they do not influence the ability to submit the form. When a form is submitted it passes by default, but fails if any value fails the pass criteria of its field.
Example
{
  "validation": NumberFieldValidation,
  "passCriteria": NumberFieldPassCriteria
}

NumberFieldOptionsInput

Fields
Input Field Description
validation - NumberFieldValidationInput!
passCriteria - NumberFieldPassCriteriaInput! Pass criteria are different from form validation, because they do not influence the ability to submit the form. When a form is submitted it passes by default, but fails if any value fails the pass criteria of its field.
Example
{
  "validation": NumberFieldValidationInput,
  "passCriteria": NumberFieldPassCriteriaInput
}

NumberFieldPassCriteria

Fields
Field Name Description
min - Float
max - Float
Example
{"min": 123.45, "max": 123.45}

NumberFieldPassCriteriaInput

Fields
Input Field Description
min - Float
max - Float
Example
{"min": 123.45, "max": 987.65}

NumberFieldValidation

Fields
Field Name Description
required - Boolean!
min - Float
max - Float
Example
{"required": true, "min": 123.45, "max": 123.45}

NumberFieldValidationInput

Fields
Input Field Description
required - Boolean!
min - Float
max - Float
Example
{"required": false, "min": 987.65, "max": 123.45}

OEE

Description

Overall Equipment Effectiveness (OEE) metrics - the gold standard for measuring equipment performance. Combines availability, performance, and quality into comprehensive efficiency percentages. For a thorough introduction to how Factbird calculates OEE, please see OEE Explainer

Fields
Field Name Description
oee1 - Float!

OEE during operation only (excludes all stops except unplanned downtime).

Formula: Valued operating time / Operating time

oee2 - Float!

OEE during production hours only (excludes time outside working hours or planned breaks in production).

Formula: Valued operating time / Production time

oee3 - Float!

OEE during manned time (excludes only periods with no activity on the line).

Formula: Valued operating time / Manned time

tcu - Float!

Total Capacity Utilization across the entire measurement period.

Formula: Valued operating time / Total equipment time

totalEquipmentTime - Float! Total calendar time available for the measurement period (milliseconds).
mannedTime - Float! Time when operators are present on site (milliseconds). Excludes all time outside of planned production hours while includeing lunch breaks, planned maintenance etc.
operatingTime - Float! Time spent operating and actively producing items (milliseconds). Includes unplanned downtime.
productionTime - Float! Time spent on production activities (milliseconds). Excludes all planned downtime but includes unplanned downtime and batch changeovers.
valuedOperatingTime - Float! Theoretical time required to produce actual output at validated speed (milliseconds).
scrapLoss - Float! Time lost due to units that were scrapped (milliseconds). Calculated as (scrapped units * cycle time).
reworkLoss - Float! Time lost due to units requiring rework (milliseconds). Calculated as (reworked units * additional processing time).
speedLoss - Float! Time lost due to running slower than validated speed (milliseconds). Difference between actual and theoretical production time.
oee1MaxProduced - Float!
oee2MaxProduced - Float!
oee3MaxProduced - Float!
tcuMaxProduced - Float!
Example
{
  "oee1": 987.65,
  "oee2": 123.45,
  "oee3": 123.45,
  "tcu": 987.65,
  "totalEquipmentTime": 123.45,
  "mannedTime": 123.45,
  "operatingTime": 123.45,
  "productionTime": 987.65,
  "valuedOperatingTime": 123.45,
  "scrapLoss": 123.45,
  "reworkLoss": 123.45,
  "speedLoss": 987.65,
  "oee1MaxProduced": 987.65,
  "oee2MaxProduced": 987.65,
  "oee3MaxProduced": 123.45,
  "tcuMaxProduced": 123.45
}

OEEDocumentType

Values
Enum Value Description

STOPS_LAST_6_DAYS

STOPS_LAST_6_WEEKS

STOPS_LAST_6_MONTHS

STOPS_SHIFT_END

Example
"STOPS_LAST_6_DAYS"

OEEInput

Fields
Input Field Description
preferences - OEEPreferences
Example
{"preferences": OEEPreferences}

OEEPreferences

Fields
Input Field Description
includeScrap - Boolean
includeSpeedLoss - Boolean
Example
{"includeScrap": false, "includeSpeedLoss": true}

OEEType

Description

Overall Equipment Effectiveness (OEE) types for performance measurement.

Values
Enum Value Description

OEE1

OEE2

OEE3

TCU

Example
"OEE1"

OfflineStatus

Fields
Field Name Description
expiration - Float
lastReceived - Float!
Example
{"expiration": 987.65, "lastReceived": 987.65}

OffsetDirection

Values
Enum Value Description

BEFORE

AFTER

Example
"BEFORE"

Operator

Values
Enum Value Description

EQ

GT

LT

CONTAINS

NOT_CONTAINS

Example
"EQ"

Order

Values
Enum Value Description

ASCENDING

DESCENDING

Example
"ASCENDING"

OrderDirection

Values
Enum Value Description

ASCENDING

DESCENDING

Example
"ASCENDING"

Ordering

Values
Enum Value Description

Ascending

Descending

Example
"Ascending"

OriginalControlDetails

Fields
Field Name Description
controlId - String!
timeTriggered - Date!
Example
{
  "controlId": "xyz789",
  "timeTriggered": "2007-12-03"
}

OwnerType

Description

Ownership types for stop cause management. Defines who can manage and assign stop causes in the organization.

Values
Enum Value Description

SENSOR

Stop causes managed at the individual sensor level.

GROUP

Stop causes managed at the group level.
Example
"SENSOR"

Packaging

Fields
Field Name Description
packagingId - ID!
packagingNumber - String!
lineId - String!
name - String!
unit - String!
comment - String
Example
{
  "packagingId": 4,
  "packagingNumber": "xyz789",
  "lineId": "abc123",
  "name": "abc123",
  "unit": "xyz789",
  "comment": "abc123"
}

PackagingFilter

Fields
Input Field Description
name - String
packagingNumber - String
unit - String
comment - String
Example
{
  "name": "abc123",
  "packagingNumber": "abc123",
  "unit": "abc123",
  "comment": "xyz789"
}

PackagingList

Fields
Field Name Description
nextToken - ID
items - [Packaging!]!
Example
{"nextToken": 4, "items": [Packaging]}

PageInfo

Description

Information about pagination in a connection

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

Parameter

Fields
Field Name Description
key - String!
value - String!
alarm - Alarm Alarm configuration for monitoring this parameter. Triggers notifications when parameter values exceed acceptable ranges.
setpoint - SetPoint Target control value for this parameter. Used for automated process control and optimization.
Example
{
  "key": "abc123",
  "value": "xyz789",
  "alarm": Alarm,
  "setpoint": SetPoint
}

PassFailFieldOptions

Fields
Field Name Description
validation - PassFailFieldValidation!
passCriteria - PassFailPassCriteria!
translations - [PassFailFieldTranslation!]!
passLabel - String!
failLabel - String!
Example
{
  "validation": PassFailFieldValidation,
  "passCriteria": PassFailPassCriteria,
  "translations": [PassFailFieldTranslation],
  "passLabel": "abc123",
  "failLabel": "xyz789"
}

PassFailFieldOptionsInput

Fields
Input Field Description
validation - PassFailFieldValidationInput!
passCriteria - PassFailPassCriteriaInput!
translations - [PassFailFieldTranslationInput!]!
Example
{
  "validation": PassFailFieldValidationInput,
  "passCriteria": PassFailPassCriteriaInput,
  "translations": [PassFailFieldTranslationInput]
}

PassFailFieldTranslation

Fields
Field Name Description
passLabel - String!
failLabel - String!
languageCode - String!
Example
{
  "passLabel": "xyz789",
  "failLabel": "abc123",
  "languageCode": "abc123"
}

PassFailFieldTranslationInput

Fields
Input Field Description
passLabel - String!
failLabel - String!
languageCode - String!
Example
{
  "passLabel": "xyz789",
  "failLabel": "abc123",
  "languageCode": "xyz789"
}

PassFailFieldValidation

Fields
Field Name Description
required - Boolean!
Example
{"required": true}

PassFailFieldValidationInput

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

PassFailPassCriteria

Fields
Field Name Description
mustPass - Boolean!
Example
{"mustPass": true}

PassFailPassCriteriaInput

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

PendingActivityFilter

Fields
Input Field Description
activityTemplateIds - [ActivityTemplateId!]
customFormIds - [CustomFormId!]
locationIds - [NodeId!]
createdBefore - DateTime
createdAfter - DateTime
trigger - TriggerFilter
Example
{
  "activityTemplateIds": [ActivityTemplateId],
  "customFormIds": [CustomFormId],
  "locationIds": [NodeId],
  "createdBefore": "2007-12-03T10:15:30Z",
  "createdAfter": "2007-12-03T10:15:30Z",
  "trigger": TriggerFilter
}

Peripheral

Fields
Field Name Description
_id - ID
id - ID! Use peripheralId instead.
name - String!
index - ID!
peripheralId - ID!
owner - ID
hardwareId - ID
peripheralType - PeripheralType!
description - String!
offlineStatus - OfflineStatus!
device - Device!
hardwareDevice - Device
Possible Types
Peripheral Types

Camera

Sensor

Example
{
  "_id": "4",
  "id": 4,
  "name": "xyz789",
  "index": 4,
  "peripheralId": 4,
  "owner": 4,
  "hardwareId": 4,
  "peripheralType": "SENSOR",
  "description": "abc123",
  "offlineStatus": OfflineStatus,
  "device": Device,
  "hardwareDevice": Device
}

PeripheralFilterInput

Fields
Input Field Description
name - String
description - String
index - String
Example
{
  "name": "abc123",
  "description": "abc123",
  "index": "abc123"
}

PeripheralId

Description

Format: {uuid}-{index}

Example
PeripheralId

PeripheralInformation

Fields
Field Name Description
line - Line! The line that the peripheral is in.
node - LineNode! The node setup it has in the line.
Example
{"line": Line, "node": LineNode}

PeripheralMetaInput

Fields
Input Field Description
language - String
name - String
description - String
Example
{
  "language": "xyz789",
  "name": "xyz789",
  "description": "abc123"
}

PeripheralNodeMeta

Fields
Field Name Description
peripheralId - PeripheralId!
labels - [String!]!
peripheral - Peripheral Peripheral device associated with this hierarchy node. Null if the peripheral does not exist or is not accessible.
Example
{
  "peripheralId": PeripheralId,
  "labels": ["xyz789"],
  "peripheral": Peripheral
}

PeripheralNodeMetaInput

Fields
Input Field Description
peripheralId - PeripheralId!
labels - [String!]
Example
{
  "peripheralId": PeripheralId,
  "labels": ["abc123"]
}

PeripheralNodeMetaUpdateInput

Fields
Input Field Description
labels - [String!]
Example
{"labels": ["abc123"]}

PeripheralParentInput

Fields
Input Field Description
directory - UUID
line - LineId
Example
{
  "directory": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "line": LineId
}

PeripheralType

Values
Enum Value Description

SENSOR

CAMERA

Example
"SENSOR"

PeripheralsPaginated

Fields
Field Name Description
items - [Peripheral!]!
nextOffset - Int
total - Int!
Example
{"items": [Peripheral], "nextOffset": 123, "total": 987}

Permission

Fields
Field Name Description
key - String!
type - RequestType!
description - String
Example
{
  "key": "xyz789",
  "type": "QUERY",
  "description": "xyz789"
}

PermissionInput

Fields
Input Field Description
key - String!
type - RequestType!
Example
{"key": "abc123", "type": "QUERY"}

PreSignedURL

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

Product

Fields
Field Name Description
productId - ID!
name - String!
itemNumber - String!
validatedLineSpeed - Float!
expectedAverageSpeed - Float!
comment - String
lineId - ID!
dataMultiplier - Float!
packaging - Packaging!
overwrittenByBatch - Boolean
parameters - [Parameter!]!
attachedControlReceipts - [ControlReceipt!]!
Example
{
  "productId": "4",
  "name": "abc123",
  "itemNumber": "xyz789",
  "validatedLineSpeed": 123.45,
  "expectedAverageSpeed": 123.45,
  "comment": "xyz789",
  "lineId": 4,
  "dataMultiplier": 987.65,
  "packaging": Packaging,
  "overwrittenByBatch": true,
  "parameters": [Parameter],
  "attachedControlReceipts": [ControlReceipt]
}

ProductFilter

Fields
Input Field Description
name - String
itemNumber - String
Example
{
  "name": "abc123",
  "itemNumber": "abc123"
}

ProductList

Fields
Field Name Description
nextToken - ID
items - [Product!]!
Example
{
  "nextToken": "4",
  "items": [Product]
}

PublishDataInput

Fields
Input Field Description
peripheralId - ID! Must be a peripheral on a virtual device
values - [PublishDataValue!]!
Example
{
  "peripheralId": "4",
  "values": [PublishDataValue]
}

PublishDataValue

Fields
Input Field Description
value - Float!
timestamp - Date!
Example
{"value": 123.45, "timestamp": "2007-12-03"}

RRule

Description

RRule string

Example
RRule

RelativePeriod

Types
Union Types

ThisPeriod

LastPeriod

Example
ThisPeriod

RelativePeriodInput

Fields
Input Field Description
thisPeriod - ThisPeriodInput "This week", "This month", "This quarter", "This year"
lastPeriod - LastPeriodInput "Last N days/weeks/months"
Example
{
  "thisPeriod": ThisPeriodInput,
  "lastPeriod": LastPeriodInput
}

RelativeTime

Description

Dynamic time range that is calculated at query time

Fields
Field Name Description
period - RelativePeriod! The specific type of relative time period
Example
{"period": ThisPeriod}

RelativeTimeInput

Description

Input for dynamic time ranges that are calculated at query time

Fields
Input Field Description
period - RelativePeriodInput! The specific type of relative time period
Example
{"period": RelativePeriodInput}

RelativeTimeUnit

Values
Enum Value Description

WEEK

MONTH

QUARTER

YEAR

Example
"WEEK"

ReplaceDeviceInput

Fields
Input Field Description
replacedDeviceUUID - ID!
secondReplacedDeviceUUID - ID
comingDeviceHardwareId - ID!
Example
{
  "replacedDeviceUUID": 4,
  "secondReplacedDeviceUUID": "4",
  "comingDeviceHardwareId": "4"
}

ReplacePeripheralsInput

Fields
Input Field Description
currentFullPeripheralId - ID!
comingFullHardwareId - ID!
Example
{
  "currentFullPeripheralId": 4,
  "comingFullHardwareId": "4"
}

ReportStopFilter

Fields
Field Name Description
stopTypes - [StopType!]
stopCauseIds - [ID!]
includeMicroStops - Boolean
Example
{"stopTypes": ["NO_ACT"], "stopCauseIds": [4], "includeMicroStops": false}

ReportSubscriber

Fields
Field Name Description
type - SubscriptionType!
value - String!
languageCode - String!
disabled - Boolean!
Example
{
  "type": "SMS",
  "value": "abc123",
  "languageCode": "xyz789",
  "disabled": true
}

ReportSubscriberInput

Fields
Input Field Description
type - SubscriptionType!
value - String!
languageCode - String!
disabled - Boolean
Example
{
  "type": "SMS",
  "value": "abc123",
  "languageCode": "xyz789",
  "disabled": true
}

ReportType

Description

Predefined report formats for production performance analysis. Provides standard templates for common KPI and operational reports.

Values
Enum Value Description

STOPS_LAST_6_DAYS

Downtime analysis for the last 6 days.

STOPS_LAST_6_WEEKS

Downtime trends over the last 6 weeks.

STOPS_LAST_6_MONTHS

Long-term downtime analysis for 6 months.

LINE_GROUP_PRODUCTION

Production summary for line groups. Always shows data from the 1st to the end of the last month.

LINE_GROUP_PRODUCTION_DYNAMIC

Dynamic production report with configurable parameters. The time range of the report matches the sending frequency of the report (e.g a report that is sent out weekly will show data from the past week)

LAST_SHIFT_END

End-of-shift performance summary.
Example
"STOPS_LAST_6_DAYS"

RequestType

Values
Enum Value Description

QUERY

MUTATION

Example
"QUERY"

Resource

Fields
Field Name Description
key - String!
claims - [ClaimId!]!
Example
{
  "key": "xyz789",
  "claims": [ClaimId]
}

RevokeAPITokenInput

Fields
Input Field Description
tokenId - ID!
Example
{"tokenId": "4"}

ReworkData

Description

Quality metrics tracking reworked units by location. Rework represents units that required additional processing to meet quality standards.

Fields
Field Name Description
upstream - Float Units requiring rework before the main counting point.
downstream - Float Units requiring rework after the main counting point.
total - Float Total units requiring rework across all locations.
Example
{"upstream": 123.45, "downstream": 123.45, "total": 123.45}

Role

Fields
Field Name Description
id - ID!
name - String!
type - RoleType!
permissions - [Permission!]!
Example
{
  "id": "4",
  "name": "xyz789",
  "type": "SUPER",
  "permissions": [Permission]
}

RoleAttributes

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

RoleCreateInput

Fields
Input Field Description
name - String!
languageCode - String
escalationConfiguration - [EscalationConfigurationInput!]
Example
{
  "name": "abc123",
  "languageCode": "abc123",
  "escalationConfiguration": [
    EscalationConfigurationInput
  ]
}

RoleType

Values
Enum Value Description

SUPER

READONLY

REGULAR

Example
"SUPER"

RoleUpdateInput

Fields
Input Field Description
name - String
languageCode - String
escalationConfiguration - [EscalationConfigurationInput!]
Example
{
  "name": "abc123",
  "languageCode": "abc123",
  "escalationConfiguration": [
    EscalationConfigurationInput
  ]
}

Sample

Fields
Field Name Description
data - SampleData!
timeRange - TimeRange!
Example
{
  "data": SampleData,
  "timeRange": TimeRange
}

SampleData

Fields
Field Name Description
accValue - Float
minValue - Float
maxValue - Float
count - Float!
Example
{"accValue": 123.45, "minValue": 987.65, "maxValue": 123.45, "count": 123.45}

Schedule

Description

Weekly shift schedule with configuration and targets.

Fields
Field Name Description
id - ID! The identifier of the shift.
lineId - ID! The line that the schedule is attached to.
validFrom - ScheduleTime! The year and week that the schedule is valid from.
validTo - ScheduleTime The year and week that the schedule is valid to, including. Will only be returned if you are looking up multiple schedules. In that case, a null will mean that it is the last schedule in the requested time range.
shifts - [Shift!]! The shift week schedule.
weeklyTargets - Targets! The weekly targets of the shift. Note that targets will be empty if using the schedules resolver.
configuration - ScheduleConfiguration! The configuration details of the shift.
isExceptionalWeek - Boolean! Flag indicating if the week is an exceptional week.
isFallbackSchedule - Boolean! Flag indicating if this is a fallback schedule, because none have been set up.
Example
{
  "id": 4,
  "lineId": 4,
  "validFrom": ScheduleTime,
  "validTo": ScheduleTime,
  "shifts": [Shift],
  "weeklyTargets": Targets,
  "configuration": ScheduleConfiguration,
  "isExceptionalWeek": false,
  "isFallbackSchedule": true
}

ScheduleConfiguration

Description

Configuration settings for shift scheduling.

Fields
Field Name Description
lineId - ID! The line that the schedule is attached to.
disableLostConnectionAlarmOutsideWorkingHours - Boolean! Flag if it should send alarms for lost data connections, when outside of work hours.
automaticStopRegistration - AutomaticStopRegistration! Configure automatic stop registration, to enable registration of time outside shifts.
startDayOfWeek - DayOfWeek! The starting day of the week.
timezone - String! Timezone that the schedule is planned in. Format is the timezones supported by Date.toLocaleString, e.g. `new Date().toLocaleString("en-US", {timeZone: "America/New_York"}).
Example
{
  "lineId": "4",
  "disableLostConnectionAlarmOutsideWorkingHours": true,
  "automaticStopRegistration": AutomaticStopRegistration,
  "startDayOfWeek": "MONDAY",
  "timezone": "xyz789"
}

ScheduleConfigurationInput

Description

Input for configuring shift schedule settings.

Fields
Input Field Description
disableLostConnectionAlarmOutsideWorkingHours - Boolean! Flag if it should send alarms for lost data connections, when outside of work hours.
automaticStopRegistration - AutomaticStopRegistrationInput Configure automatic stop registration, to enable registration of time outside shifts.
startDayOfWeek - DayOfWeek! The starting day of the week.
timezone - String! Timezone that the schedule is planned in.
Example
{
  "disableLostConnectionAlarmOutsideWorkingHours": false,
  "automaticStopRegistration": AutomaticStopRegistrationInput,
  "startDayOfWeek": "MONDAY",
  "timezone": "xyz789"
}

ScheduleCreateInput

Fields
Input Field Description
name - String!
lineIds - [ID!]!
Example
{
  "name": "xyz789",
  "lineIds": ["4"]
}

ScheduleTime

Description

Year and week identifier for schedule timing.

Fields
Field Name Description
year - Int! The year that the schedule is in.
week - Int! The week that the schedule is in.
Example
{"year": 987, "week": 123}

ScheduleTimeInput

Description

Input for specifying year and week for schedule timing.

Fields
Input Field Description
year - Int! The year that the schedule is in.
week - Int! The week that the schedule is in.
excludeExceptionalWeek - Boolean Ignore any exceptional week for that particular week. Default = false
Example
{"year": 123, "week": 987, "excludeExceptionalWeek": true}

ScheduleUpdateInput

Fields
Input Field Description
name - String
lineIds - [ID!]
Example
{"name": "xyz789", "lineIds": [4]}

ScheduledReport

Fields
Field Name Description
id - ID!
type - ReportType!
entityId - ID!
entityType - EntityType!
name - String!
description - String
enabled - Boolean!
subscribers - [ReportSubscriber!]!
trigger - ScheduledReportTrigger!
nextTriggerDate - Date!
timezone - String!
stopFilter - ReportStopFilter
Example
{
  "id": "4",
  "type": "STOPS_LAST_6_DAYS",
  "entityId": 4,
  "entityType": "LINE",
  "name": "xyz789",
  "description": "abc123",
  "enabled": true,
  "subscribers": [ReportSubscriber],
  "trigger": ScheduledReportTrigger,
  "nextTriggerDate": "2007-12-03",
  "timezone": "abc123",
  "stopFilter": ReportStopFilter
}

ScheduledReportTrigger

Fields
Field Name Description
type - TriggerType!
parameters - String!
Example
{"type": "CRON", "parameters": "xyz789"}

ScrapData

Description

Quality metrics tracking scrapped units by location. Upstream scrap occurs before the main counting point, downstream after. Used to calculate yield, quality rates, and identify quality issues.

Fields
Field Name Description
upstream - Float Units scrapped before reaching the main production counter.
downstream - Float Units scrapped after passing the main production counter.
total - Float Total units scrapped across all locations.
Example
{"upstream": 987.65, "downstream": 123.45, "total": 987.65}

SelectEntityFieldOptions

Fields
Field Name Description
validation - SelectEntityFieldValidation!
entity - Entity!
Example
{
  "validation": SelectEntityFieldValidation,
  "entity": "PERIPHERAL"
}

SelectEntityFieldOptionsInput

Fields
Input Field Description
validation - SelectEntityFieldValidationInput!
entity - Entity!
Example
{
  "validation": SelectEntityFieldValidationInput,
  "entity": "PERIPHERAL"
}

SelectEntityFieldValidation

Fields
Field Name Description
required - Boolean!
Example
{"required": false}

SelectEntityFieldValidationInput

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

SelectFieldOption

Fields
Field Name Description
value - String!
label - String!
labelTranslations - [SelectOptionLabel!]!
Example
{
  "value": "abc123",
  "label": "xyz789",
  "labelTranslations": [SelectOptionLabel]
}

SelectFieldOptionInput

Fields
Input Field Description
value - String!
labelTranslations - [SelectOptionLabelInput!]!
Example
{
  "value": "abc123",
  "labelTranslations": [SelectOptionLabelInput]
}

SelectFieldOptions

Fields
Field Name Description
validation - SelectFieldValidation!
options - [SelectFieldOption!]!
Example
{
  "validation": SelectFieldValidation,
  "options": [SelectFieldOption]
}

SelectFieldOptionsInput

Fields
Input Field Description
validation - SelectFieldValidationInput!
options - [SelectFieldOptionInput!]!
Example
{
  "validation": SelectFieldValidationInput,
  "options": [SelectFieldOptionInput]
}

SelectFieldValidation

Fields
Field Name Description
required - Boolean!
Example
{"required": false}

SelectFieldValidationInput

Fields
Input Field Description
required - Boolean!
Example
{"required": true}

SelectOptionLabel

Fields
Field Name Description
label - String!
languageCode - String!
Example
{
  "label": "abc123",
  "languageCode": "abc123"
}

SelectOptionLabelInput

Fields
Input Field Description
label - String!
languageCode - String!
Example
{
  "label": "xyz789",
  "languageCode": "xyz789"
}

Sensor

Fields
Field Name Description
_id - ID
id - ID! Use peripheralId instead.
name - String!
index - ID!
peripheralId - ID!
owner - ID
hardwareId - ID
description - String!
config - SensorConfig!
peripheralType - PeripheralType!
offlineStatus - OfflineStatus!
customKPIs - [CustomKPI!]!
cameras - [Camera]!
device - Device!
hardwareDevice - Device
peripheralInformation - PeripheralInformation Line configuration and topology information for this sensor.
alarms - [Alarm]! Alarm configurations for this sensor. Used for equipment monitoring and operator notifications.
Arguments
languageCode - String
timeRange - Time
alarm - Alarm! Retrieve a specific alarm configuration.
Arguments
alarmId - ID!
languageCode - String
stopCauseCategories - [StopCauseCategory!]! Available stop cause categories for downtime classification. Used by operators to categorize and code downtime events.
Arguments
fetchDeleted - Boolean
stopCauseMappings - [StopCauseMapping]! Mapping rules for automatic stop cause assignment.
time - [SensorTimeData!]! Access time-based production data, samples, and analytics. Core method for retrieving sensor measurements and calculated KPIs.
Arguments
time - [Time!]!
groups - [Group!]! Organizational groups this sensor belongs to.
horizontalAnnotations - [HorizontalAnnotation!] Time-based annotations for marking significant events or periods.
verticalAnnotations - [VerticalAnnotation!] Event-based annotations for marking specific occurrences.
Arguments
timeRange - Time!
tags - [String!]
scheduledReports - [ScheduledReport!]! Automated reports configured for this sensor.
maintenanceWorkOrders - MaintenanceWorkOrderConnection! Maintenance work orders associated with this sensor. Used for preventive and corrective maintenance tracking.
Arguments
before - String
after - String
first - Int
last - Int
statusFilter - [WorkOrderStatusFilter!]
Example
{
  "_id": 4,
  "id": 4,
  "name": "abc123",
  "index": 4,
  "peripheralId": 4,
  "owner": 4,
  "hardwareId": "4",
  "description": "xyz789",
  "config": SensorConfig,
  "peripheralType": "SENSOR",
  "offlineStatus": OfflineStatus,
  "customKPIs": [CustomKPI],
  "cameras": [Camera],
  "device": Device,
  "hardwareDevice": Device,
  "peripheralInformation": PeripheralInformation,
  "alarms": [Alarm],
  "alarm": Alarm,
  "stopCauseCategories": [StopCauseCategory],
  "stopCauseMappings": [StopCauseMapping],
  "time": [SensorTimeData],
  "groups": [Group],
  "horizontalAnnotations": [HorizontalAnnotation],
  "verticalAnnotations": [VerticalAnnotation],
  "scheduledReports": [ScheduledReport],
  "maintenanceWorkOrders": MaintenanceWorkOrderConnection
}

SensorConfig

Fields
Field Name Description
validFrom - Date
type - SensorType
energyMeter - Boolean
wiring - SensorWiringState
inputMode - InputModeState
debounce - DebounceState
stopThreshold - Int
stopRegisterThreshold - Int
stopValueThreshold - Float
dataMultiplier - Float
validatedSpeed - Float
expectedSpeed - Float
analogOffset - Float
analogInputRange - AnalogInputRange
sensorUnit - SensorUnit
chartTimeScale - ChartTimeScale Use chart.scale instead.
accumulatorConfig - AccumulatorConfig
discreteConfig - DiscreteConfig
manualConfig - ManualConfig
publishRate - Int Unused, and will always resolve to null.
sampleRate - Int Unused, and will always resolve to null.
triggerIndex - Int Unused, and will always resolve to null.
dataAlarm - DataAlarm
findStops - Boolean
chart - ChartConfiguration
kpiConfig - KPIConfiguration
subtractCycleTime - Boolean
extraMultiplierForFrontend - Float This value is only needed in the frontend for knowing how the offset + multiplier got scaled when doing min/max + scale, changes nothing on the backend.
Example
{
  "validFrom": "2007-12-03",
  "type": "COUNTER",
  "energyMeter": false,
  "wiring": SensorWiringState,
  "inputMode": InputModeState,
  "debounce": DebounceState,
  "stopThreshold": 123,
  "stopRegisterThreshold": 987,
  "stopValueThreshold": 987.65,
  "dataMultiplier": 123.45,
  "validatedSpeed": 987.65,
  "expectedSpeed": 123.45,
  "analogOffset": 123.45,
  "analogInputRange": "NEGATIVE_TEN_TO_TEN_VOLTS",
  "sensorUnit": SensorUnit,
  "chartTimeScale": "DAY",
  "accumulatorConfig": AccumulatorConfig,
  "discreteConfig": DiscreteConfig,
  "manualConfig": ManualConfig,
  "publishRate": 987,
  "sampleRate": 123,
  "triggerIndex": 123,
  "dataAlarm": DataAlarm,
  "findStops": true,
  "chart": ChartConfiguration,
  "kpiConfig": KPIConfiguration,
  "subtractCycleTime": true,
  "extraMultiplierForFrontend": 123.45
}

SensorConfigInput

Fields
Input Field Description
type - SensorType
energyMeter - Boolean
wiring - SensorWiring
inputMode - InputMode
debounce - Int
stopThreshold - Int
stopRegisterThreshold - Int
stopValueThreshold - Float
dataMultiplier - Float
validatedSpeed - Float
expectedSpeed - Float
analogOffset - Float
analogInputRange - AnalogInputRange
sensorUnit - SensorUnitInput
chartTimeScale - ChartTimeScale
accumulatorConfig - AccumulatorConfigInput
discreteConfig - DiscreteConfigInput
manualConfig - ManualConfigInput
publishRate - Int
sampleRate - Int
triggerIndex - Int
dataAlarm - DataAlarmInput
findStops - Boolean
chart - ChartConfigurationInput
kpiConfig - KPIConfigurationInput
subtractCycleTime - Boolean
extraMultiplierForFrontend - Float
Example
{
  "type": "COUNTER",
  "energyMeter": false,
  "wiring": "INACTIVE",
  "inputMode": "COUNTER",
  "debounce": 987,
  "stopThreshold": 123,
  "stopRegisterThreshold": 987,
  "stopValueThreshold": 123.45,
  "dataMultiplier": 987.65,
  "validatedSpeed": 987.65,
  "expectedSpeed": 987.65,
  "analogOffset": 123.45,
  "analogInputRange": "NEGATIVE_TEN_TO_TEN_VOLTS",
  "sensorUnit": SensorUnitInput,
  "chartTimeScale": "DAY",
  "accumulatorConfig": AccumulatorConfigInput,
  "discreteConfig": DiscreteConfigInput,
  "manualConfig": ManualConfigInput,
  "publishRate": 987,
  "sampleRate": 123,
  "triggerIndex": 987,
  "dataAlarm": DataAlarmInput,
  "findStops": true,
  "chart": ChartConfigurationInput,
  "kpiConfig": KPIConfigurationInput,
  "subtractCycleTime": true,
  "extraMultiplierForFrontend": 987.65
}

SensorTimeData

Description

Time-based data container for sensor measurements and counts. Provides cached access to sensor data over specific time periods.

Fields
Field Name Description
configs - [SensorConfig!]! Sensor configuration settings active during this time period. Includes counting parameters, thresholds, and calibration data.
alarmLogs - AlarmLogs! Alarm events that occurred during this time period.
Arguments
exclusiveStartKey - AlarmLogExclusiveStartKey
limit - Int
filter - AlarmLogFilter
batches - BatchList! Production batches that were active on the line during this period.
Arguments
filter - BatchFilter
paginationToken - ID
clip - Boolean
dataOverrides - [DataOverride!]! Manual corrections applied to sensor data. Used for data quality and accuracy improvements.
samples - [Sample!]! Raw measurement data from the sensor. Time-series data showing counts, measurements, or state changes.
Arguments
points - Int
requestRaw - Boolean
resample - Boolean
raw - Boolean
stops - [Stop!]! Downtime events detected by this sensor.
Arguments
filter - StopFilter
languageCode - String
stopStats - StopStats! Aggregated downtime statistics for this sensor.
Arguments
filter - StopFilter
input - StatsInput
stats - Stat! Performance metrics and KPIs calculated from this sensor's data. Includes production rates, availability, and efficiency metrics.
Arguments
input - StatsInput
_id - ID Cache key for efficient data retrieval.
timeRange - TimeRange! The actual time range of the returned data.
Example
{
  "configs": [SensorConfig],
  "alarmLogs": AlarmLogs,
  "batches": BatchList,
  "dataOverrides": [DataOverride],
  "samples": [Sample],
  "stops": [Stop],
  "stopStats": StopStats,
  "stats": Stat,
  "_id": 4,
  "timeRange": TimeRange
}

SensorType

Description

Sensor types defining how equipment data is collected and interpreted. Determines the behavior of production counting, quality measurements, and line state tracking.

Values
Enum Value Description

COUNTER

Production counter that reports incremental counts. Used for tracking unit production, cycle counts, and throughput.

COUNTER_SPEED

Speed sensor converted to production counts. Calculates production based on line speed and part dimensions.

COUNTER_ACCUMULATE

Accumulating sensor converted to production counts. Tracks cumulative production values over time.

MEASUREMENT

Direct measurement sensor for process parameters. Records temperature, pressure, speed, or other analog values.

EVENT

Event-driven sensor that triggers on state changes. Used for alarms, quality gates, and discrete events.

DISCRETE

Multi-state sensor for line status tracking. Reports discrete states like running, stopped, setup, etc.

MANUAL_PROCESS

Manual data entry process. Allows operators to manually record stops and production counts.
Example
"COUNTER"

SensorUnit

Fields
Field Name Description
unit - Unit
label - String
Example
{"unit": "TEMPERATURE", "label": "abc123"}

SensorUnitInput

Fields
Input Field Description
unit - Unit
label - String
Example
{"unit": "TEMPERATURE", "label": "xyz789"}

SensorWiring

Description

Electrical wiring configuration for sensor connections. Defines how sensors are physically connected to data collection devices.

Values
Enum Value Description

INACTIVE

Sensor not electrically active or disabled.

PNP

Positive-Negative-Positive transistor wiring (sourcing).

NPN

Negative-Positive-Negative transistor wiring (sinking).

ANALOG

Analog voltage or current signal input.
Example
"INACTIVE"

SensorWiringState

Fields
Field Name Description
desired - SensorWiring
reported - SensorWiring
Example
{"desired": "INACTIVE", "reported": "INACTIVE"}

Session

Fields
Field Name Description
generatedAt - Date! The time for when the session was generated.
expiresAt - Date! The time for when the session expires. The session is refreshed during activity.
userSub - ID! The owner (user) of this token.
Example
{
  "generatedAt": "2007-12-03",
  "expiresAt": "2007-12-03",
  "userSub": 4
}

SessionConnection

Fields
Field Name Description
edges - [SessionEdge!]!
pageInfo - PageInfo!
Example
{
  "edges": [SessionEdge],
  "pageInfo": PageInfo
}

SessionEdge

Fields
Field Name Description
node - Session!
cursor - String!
Example
{
  "node": Session,
  "cursor": "xyz789"
}

SessionFilter

Fields
Input Field Description
sub - ID
Example
{"sub": 4}

SessionOrder

Fields
Input Field Description
direction - OrderDirection
field - SessionOrderField
Example
{"direction": "ASCENDING", "field": "GENERATED_AT"}

SessionOrderField

Values
Enum Value Description

GENERATED_AT

EXPIRES_AT

Example
"GENERATED_AT"

SetAlarmEnablementInput

Description

Input for enabling or disabling the alarm for a specific tree hierarchy node.

Fields
Input Field Description
nodeId - ID! Node identifier for the root of alarm configuration changes.
setTo - Boolean! Whether to enable (true) or disable (false) alarms for this node and descendants.
Example
{"nodeId": 4, "setTo": true}

SetPoint

Description

Control set point for equipment parameters. Used to define target values for process control and automation.

Fields
Field Name Description
peripheralId - ID! ID of the peripheral being controlled.
peripheral - Peripheral! The peripheral device this set point applies to.
value - Float! Target value for the control parameter.
Example
{
  "peripheralId": "4",
  "peripheral": Peripheral,
  "value": 987.65
}

Shift

Description

Shift template defining work periods and performance targets.

Fields
Field Name Description
id - ID! The identifier of the shift.
name - String! The name of the schedule item.
description - String! A description of the schedule.
timeRange - ShiftTimeRange! The time range the schedule is valid in.
targets - Targets! The targets of the shift.
Example
{
  "id": 4,
  "name": "xyz789",
  "description": "abc123",
  "timeRange": ShiftTimeRange,
  "targets": Targets
}

ShiftCreateInput

Fields
Input Field Description
name - String!
description - String
duration - Float!
rRuleSet - String!
Example
{
  "name": "xyz789",
  "description": "xyz789",
  "duration": 987.65,
  "rRuleSet": "xyz789"
}

ShiftEndTriggerOptions

Fields
Field Name Description
placeholder - Boolean
offsetMinutes - Int
offsetDirection - OffsetDirection
Example
{"placeholder": true, "offsetMinutes": 987, "offsetDirection": "BEFORE"}

ShiftEndTriggerOptionsInput

Fields
Input Field Description
placeholder - Boolean
offsetMinutes - Int
offsetDirection - OffsetDirection
Example
{"placeholder": true, "offsetMinutes": 987, "offsetDirection": "BEFORE"}

ShiftInput

Description

Input for creating or updating shift templates.

Fields
Input Field Description
id - ID The identifier of the shift, if it already exists.
name - String! The name of the schedule item.
description - String! A description of the schedule.
timeRange - ShiftTimeRangeInput! The time range the schedule is valid in.
targets - TargetsInput! The targets of the shift.
Example
{
  "id": 4,
  "name": "abc123",
  "description": "xyz789",
  "timeRange": ShiftTimeRangeInput,
  "targets": TargetsInput
}

ShiftInstance

Description

Active shift instance with timing and workforce information. Represents actual shift execution for performance analysis and workforce tracking.

Fields
Field Name Description
id - ID! Unique identifier for this shift instance.
from - Date! When this shift started.
to - Date! When this shift ended (or will end).
name - String! Name of the shift (deprecated - use scheduleEntry.name). Use scheduleEntry.name instead.
description - String! Description of the shift (deprecated - use scheduleEntry.description). Use scheduleEntry.description instead.
shiftId - ID! The shift template identifier. Use scheduleEntry.id instead.
scheduleEntry - Shift! The corresponding entry in the shift schedule
batches - BatchList! Production batches executed during this shift. Used for shift performance analysis and batch scheduling.
Arguments
filter - BatchFilter
maxItems - Int
paginationToken - ID
samples - [Sample!]! Production count data collected during this shift. Shows shift productivity and production progress.
Arguments
points - Int
stops - [Stop!]! Downtime events that occurred during this shift. Critical for shift efficiency analysis and operator performance.
Arguments
filter - StopFilter
languageCode - String
stopStats - StopStats! Aggregated downtime statistics for this shift. Provides shift-level availability and loss analysis.
Arguments
filter - StopFilter
stats - Stat! Comprehensive performance metrics for this shift. Includes shift OEE, productivity, and efficiency KPIs.
Example
{
  "id": "4",
  "from": "2007-12-03",
  "to": "2007-12-03",
  "name": "abc123",
  "description": "xyz789",
  "shiftId": 4,
  "scheduleEntry": Shift,
  "batches": BatchList,
  "samples": [Sample],
  "stops": [Stop],
  "stopStats": StopStats,
  "stats": Stat
}

ShiftStartTriggerOptions

Fields
Field Name Description
placeholder - Boolean
offsetMinutes - Int
offsetDirection - OffsetDirection
Example
{"placeholder": false, "offsetMinutes": 123, "offsetDirection": "BEFORE"}

ShiftStartTriggerOptionsInput

Fields
Input Field Description
placeholder - Boolean
offsetMinutes - Int
offsetDirection - OffsetDirection
Example
{"placeholder": false, "offsetMinutes": 987, "offsetDirection": "BEFORE"}

ShiftTime

Description

Specific time within a day for shift scheduling.

Fields
Field Name Description
day - DayOfWeek! The day of week the shift starts on.
hour - Int! The hour on the day the shift starts/ends.
minute - Int! The minute on the day the shift starts/ends.
Example
{"day": "MONDAY", "hour": 987, "minute": 123}

ShiftTimeInput

Description

Input for specifying time within a day for shift scheduling.

Fields
Input Field Description
day - DayOfWeek! The day of week the shift starts on.
hour - Int! The hour on the day the shift starts/ends.
minute - Int! The minute on the day the shift starts/ends.
Example
{"day": "MONDAY", "hour": 123, "minute": 987}

ShiftTimeRange

Description

Time range that a shift spans.

Fields
Field Name Description
from - ShiftTime! The starting time.
to - ShiftTime! The end time.
Example
{"from": ShiftTime, "to": ShiftTime}

ShiftTimeRangeInput

Description

Input for the time range that a shift spans.

Fields
Input Field Description
from - ShiftTimeInput! The starting time.
to - ShiftTimeInput! The end time.
Example
{
  "from": ShiftTimeInput,
  "to": ShiftTimeInput
}

ShiftUpdateInput

Fields
Input Field Description
name - String
description - String
duration - Float
rRuleSet - String
Example
{
  "name": "abc123",
  "description": "abc123",
  "duration": 123.45,
  "rRuleSet": "abc123"
}

ShouldRepeat

Values
Enum Value Description

YES

NO

Example
"YES"

SingleTargetConfig

Fields
Field Name Description
enabled - Boolean!
targetValue - Float!
Example
{"enabled": false, "targetValue": 987.65}

SingleTargetConfigInput

Fields
Input Field Description
enabled - Boolean!
targetValue - Float!
Example
{"enabled": false, "targetValue": 123.45}

Skill

Fields
Field Name Description
id - UUID!
title - String!
description - String
nodeId - ID!
createdAt - DateTime!
updatedAt - DateTime!
createdBySub - String!
updatedBySub - String!
learningActivities - SkillLearningActivitiesConnection! Internal use only
Arguments
after - String
before - String
first - Int
last - Int
node - HierarchyNode Organizational or equipment node this skill applies to.
createdBy - User User who created this skill definition.
updatedBy - User User who last updated this skill definition.
Example
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "title": "abc123",
  "description": "abc123",
  "nodeId": "4",
  "createdAt": "2007-12-03T10:15:30Z",
  "updatedAt": "2007-12-03T10:15:30Z",
  "createdBySub": "abc123",
  "updatedBySub": "abc123",
  "learningActivities": SkillLearningActivitiesConnection,
  "node": HierarchyNode,
  "createdBy": User,
  "updatedBy": User
}

SkillConnection

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

SkillEdge

Description

An edge in a connection.

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

SkillFilter

Fields
Input Field Description
nodeIds - [ID!]
skillIds - [UUID!]
search - String
Example
{
  "nodeIds": ["4"],
  "skillIds": [
    "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
  ],
  "search": "abc123"
}

SkillLearningActivitiesConnection

Fields
Field Name Description
pageInfo - PageInfo! Information to aid in pagination.
edges - [SkillLearningActivitiesEdge!]! A list of edges.
nodes - [SkillLearningActivity!]! A list of nodes.
Example
{
  "pageInfo": PageInfo,
  "edges": [SkillLearningActivitiesEdge],
  "nodes": [SkillLearningActivity]
}

SkillLearningActivitiesEdge

Description

An edge in a connection.

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

SkillLearningActivity

Fields
Field Name Description
id - UUID!
version - Int!
nodeId - String!
title - String!
description - String
content - String
startEndDatesRequired - Boolean!
createdAt - DateTime!
updatedAt - DateTime!
createdBy - String!
updatedBy - String!
orderIndex - Int!
node - HierarchyNode Production context for this learning activity.
Example
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "version": 987,
  "nodeId": "abc123",
  "title": "xyz789",
  "description": "abc123",
  "content": "xyz789",
  "startEndDatesRequired": false,
  "createdAt": "2007-12-03T10:15:30Z",
  "updatedAt": "2007-12-03T10:15:30Z",
  "createdBy": "xyz789",
  "updatedBy": "abc123",
  "orderIndex": 123,
  "node": HierarchyNode
}

SkillStatus

Values
Enum Value Description

ENROLLED

COMPLETED

ABOUT_TO_EXPIRE

EXPIRED

NOT_STARTED

Example
"ENROLLED"

StandaloneConfiguration

Description

Configuration for standalone stop time calculations. Controls how production time is handled during registered stop periods.

Fields
Field Name Description
excludeProduction - Boolean Whether to exclude any production time that occurs during the registered stop period. Important for accurate downtime calculations.
Example
{"excludeProduction": false}

StandaloneConfigurationInput

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

StartBatchByBatchNumberInput

Description

Arguments for starting a batch by batch number

Fields
Input Field Description
lineId - ID!
batchNumber - String!
actualStart - Date
forceStop - Boolean
Example
{
  "lineId": 4,
  "batchNumber": "abc123",
  "actualStart": "2007-12-03",
  "forceStop": true
}

Stat

Fields
Field Name Description
timeRange - TimeRange!
data - Data!
Example
{
  "timeRange": TimeRange,
  "data": Data
}

StatsInput

Description

Input parameters for statistical calculations and KPI computations. Controls how performance metrics like OEE, uptime, and throughput are calculated.

Fields
Input Field Description
batchesInput - BatchesInput
Example
{"batchesInput": BatchesInput}

Status

Description

Line operating status classifications for availability analysis. Used to calculate uptime, downtime, and availability percentages.

Values
Enum Value Description

OFF

Equipment is powered off or not scheduled.

RUNNING

Equipment is actively producing units.

BATCH_NON_PROD

Batch-related non-production activities (setup, changeover).

DOWNTIME

Unplanned downtime due to failures or issues.

NON_PROD

Planned non-production activities (maintenance, breaks).

NO_ACT

No scheduled activity or operator absent.
Example
"OFF"

StatusDetails

Fields
Field Name Description
progress - String
selfTest - String
updatedBy - String
Example
{
  "progress": "xyz789",
  "selfTest": "abc123",
  "updatedBy": "xyz789"
}

Stop

Fields
Field Name Description
_id - ID!
timeRange - TimeRange!
originalStart - Date!
ongoing - Boolean!
duration - Float!
stopCause - StopCause
comment - String
initials - String
registeredTime - Date
isMicroStop - Boolean!
isAutomaticRegistration - Boolean
standalone - StandaloneConfiguration
target - Target
countermeasure - String
countermeasureInitials - String
Example
{
  "_id": 4,
  "timeRange": TimeRange,
  "originalStart": "2007-12-03",
  "ongoing": false,
  "duration": 987.65,
  "stopCause": StopCause,
  "comment": "abc123",
  "initials": "abc123",
  "registeredTime": "2007-12-03",
  "isMicroStop": false,
  "isAutomaticRegistration": false,
  "standalone": StandaloneConfiguration,
  "target": Target,
  "countermeasure": "xyz789",
  "countermeasureInitials": "abc123"
}

StopBatchByBatchNumberInput

Description

Arguments for stopping a batch by batch number

Fields
Input Field Description
lineId - ID!
batchNumber - String!
actualStop - Date
Example
{
  "lineId": "4",
  "batchNumber": "xyz789",
  "actualStop": "2007-12-03"
}

StopCause

Fields
Field Name Description
_id - ID!
id - ID!
stopType - StopType!
categoryId - String!
categoryName - String!
name - String!
description - String!
meta - [StopCauseMeta!]!
order - Int!
requireInitials - Boolean!
requireComment - Boolean!
deleted - Boolean!
languageCode - String!
legacyStopCauseId - ID
targetSetup - TargetSetup
enableCountermeasure - Boolean!
Example
{
  "_id": "4",
  "id": "4",
  "stopType": "NO_ACT",
  "categoryId": "abc123",
  "categoryName": "xyz789",
  "name": "abc123",
  "description": "xyz789",
  "meta": [StopCauseMeta],
  "order": 987,
  "requireInitials": true,
  "requireComment": false,
  "deleted": false,
  "languageCode": "abc123",
  "legacyStopCauseId": 4,
  "targetSetup": TargetSetup,
  "enableCountermeasure": true
}

StopCauseCategory

Fields
Field Name Description
_id - ID!
id - ID!
ownerType - OwnerType!
order - Int!
name - String!
meta - [StopCauseCategoryMeta!]!
languageCode - String!
deleted - Boolean!
stopCauses - [StopCause!]!
legacyCategoryId - ID
Example
{
  "_id": 4,
  "id": "4",
  "ownerType": "SENSOR",
  "order": 987,
  "name": "abc123",
  "meta": [StopCauseCategoryMeta],
  "languageCode": "abc123",
  "deleted": false,
  "stopCauses": [StopCause],
  "legacyCategoryId": 4
}

StopCauseCategoryInput

Fields
Input Field Description
id - ID!
translations - [StopCauseCategoryTranslationInput!]!
Example
{
  "id": 4,
  "translations": [StopCauseCategoryTranslationInput]
}

StopCauseCategoryMeta

Fields
Field Name Description
name - String!
languageCode - String!
Example
{
  "name": "abc123",
  "languageCode": "xyz789"
}

StopCauseCategoryMetaInput

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

StopCauseCategoryTranslation

Fields
Field Name Description
name - String!
languageCode - String!
Example
{
  "name": "xyz789",
  "languageCode": "xyz789"
}

StopCauseCategoryTranslationInput

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

StopCauseMapping

Fields
Field Name Description
_id - ID!
peripheralIdEvent - String!
peripheralIdTarget - String!
value - String!
stopCauseId - ID!
buffer - Int
lookForward - Int!
lookBack - Int!
userPool - String
split - Boolean
regPriority - Int
Example
{
  "_id": "4",
  "peripheralIdEvent": "abc123",
  "peripheralIdTarget": "xyz789",
  "value": "xyz789",
  "stopCauseId": "4",
  "buffer": 123,
  "lookForward": 987,
  "lookBack": 123,
  "userPool": "abc123",
  "split": true,
  "regPriority": 123
}

StopCauseMappingInput

Fields
Input Field Description
peripheralIdEvent - String!
peripheralIdTarget - String!
value - String!
stopCauseId - ID!
buffer - Int
lookForward - Int
lookBack - Int
split - Boolean
regPriority - Int
userPool - String
Example
{
  "peripheralIdEvent": "abc123",
  "peripheralIdTarget": "xyz789",
  "value": "xyz789",
  "stopCauseId": 4,
  "buffer": 123,
  "lookForward": 123,
  "lookBack": 987,
  "split": true,
  "regPriority": 987,
  "userPool": "abc123"
}

StopCauseMeta

Fields
Field Name Description
name - String!
description - String!
languageCode - String!
Example
{
  "name": "abc123",
  "description": "xyz789",
  "languageCode": "xyz789"
}

StopCauseMetaInput

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

StopCauseStat

Fields
Field Name Description
stopCauseId - ID!
stopCauseName - String!
stopCauseDescription - String!
stopCategoryName - String!
type - StopType
numberOfStops - Int!
accDuration - Float!
accTarget - Float!
isMicroStop - Boolean!
Example
{
  "stopCauseId": "4",
  "stopCauseName": "xyz789",
  "stopCauseDescription": "abc123",
  "stopCategoryName": "abc123",
  "type": "NO_ACT",
  "numberOfStops": 987,
  "accDuration": 123.45,
  "accTarget": 123.45,
  "isMicroStop": false
}

StopCauseTranslation

Fields
Field Name Description
name - String!
description - String!
languageCode - String!
Example
{
  "name": "abc123",
  "description": "xyz789",
  "languageCode": "xyz789"
}

StopCauseTranslationInput

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

StopFilter

Fields
Input Field Description
minDuration - Float
includeMicroStops - Boolean
stopCauseIds - [ID!]
stopCauseName - String
stopTypes - [StopType!]
excludeStandaloneStops - Boolean
excludeNonChangeoverTrackingStops - Boolean
Example
{
  "minDuration": 123.45,
  "includeMicroStops": true,
  "stopCauseIds": ["4"],
  "stopCauseName": "abc123",
  "stopTypes": ["NO_ACT"],
  "excludeStandaloneStops": true,
  "excludeNonChangeoverTrackingStops": false
}

StopFilterInput

Fields
Input Field Description
stopTypes - [StopType!]
stopCauseIds - [ID!]
includeMicroStops - Boolean
Example
{"stopTypes": ["NO_ACT"], "stopCauseIds": [4], "includeMicroStops": false}

StopRegistrationTriggerOptions

Fields
Field Name Description
placeholder - Boolean
minimumStopDurationMinutes - Int
Example
{"placeholder": false, "minimumStopDurationMinutes": 123}

StopRegistrationTriggerOptionsInput

Fields
Input Field Description
placeholder - Boolean
minimumStopDurationMinutes - Int
Example
{"placeholder": true, "minimumStopDurationMinutes": 987}

StopStats

Fields
Field Name Description
longestNonStop - Float!
lastStop - Stop
stopCauseStats - [StopCauseStat!]!
Example
{
  "longestNonStop": 123.45,
  "lastStop": Stop,
  "stopCauseStats": [StopCauseStat]
}

StopType

Values
Enum Value Description

NO_ACT

NON_PROD

BATCH_NON_PROD

DOWNTIME

UNREGISTERED

Example
"NO_ACT"

StopTypeForAlarms

Description

Downtime categories that can trigger alarms. Enables automatic alarm generation based on specific types of production stops.

Values
Enum Value Description

NO_ACT

No scheduled activity or operator absent.

NON_PROD

Planned non-production activities.

BATCH_NON_PROD

Batch-related non-production time.

DOWNTIME

Unplanned equipment downtime.

UNREGISTERED

Stops without assigned cause codes.
Example
"NO_ACT"

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
"abc123"

Subscriber

Fields
Field Name Description
type - SubscriberType!
value - String!
languageCode - String!
Example
{
  "type": "EMAIL",
  "value": "xyz789",
  "languageCode": "xyz789"
}

SubscriberInput

Fields
Input Field Description
type - SubscriberType!
languageCode - String!
value - String!
Example
{
  "type": "EMAIL",
  "languageCode": "xyz789",
  "value": "abc123"
}

SubscriberOutput

Fields
Field Name Description
type - SubscriberType!
languageCode - String!
value - String!
Example
{
  "type": "EMAIL",
  "languageCode": "xyz789",
  "value": "abc123"
}

SubscriberType

Values
Enum Value Description

EMAIL

SMS

Example
"EMAIL"

SubscriptionType

Description

Delivery methods for automated reports. Defines how performance reports are distributed to stakeholders.

Values
Enum Value Description

SMS

SMS text message delivery for critical alerts.

EMAIL

Email delivery of reports and notifications.
Example
"SMS"

SupportType

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

SwapPeripheralsInput

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

TabularWidgetData

Fields
Field Name Description
json - JSON!
Example
{"json": {}}

Tag

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

Target

Description

Changeover target information for stop optimization. Provides context and targets for changeover and setup operations.

Fields
Field Name Description
previousBatch - ID Identifier of the batch that was just completed.
nextBatch - ID Identifier of the batch that will be produced next.
currentShift - ID Identifier of the shift during which this changeover occurs.
target - Float! Target duration for this changeover operation (in minutes).
Example
{
  "previousBatch": 4,
  "nextBatch": 4,
  "currentShift": "4",
  "target": 987.65
}

TargetConfigInput

Fields
Input Field Description
enabled - Boolean!
type - TargetType!
badValue - Float!
mediumValue - Float!
targetValue - Float!
Example
{
  "enabled": true,
  "type": "HIGHER",
  "badValue": 123.45,
  "mediumValue": 987.65,
  "targetValue": 123.45
}

TargetInput

Fields
Input Field Description
previousBatch - ID
nextBatch - ID
currentShift - ID
target - Float!
Example
{
  "previousBatch": "4",
  "nextBatch": 4,
  "currentShift": 4,
  "target": 123.45
}

TargetSetup

Fields
Field Name Description
constantTime - Float!
parameterTimes - [TargetSetupParameterTime!]!
Example
{
  "constantTime": 987.65,
  "parameterTimes": [TargetSetupParameterTime]
}

TargetSetupInput

Fields
Input Field Description
constantTime - Float!
parameterTimes - [TargetSetupParameterTimeInput!]!
Example
{
  "constantTime": 987.65,
  "parameterTimes": [TargetSetupParameterTimeInput]
}

TargetSetupParameterTime

Fields
Field Name Description
parameter - String!
time - Float!
unlessParameter - String
Example
{
  "parameter": "xyz789",
  "time": 987.65,
  "unlessParameter": "abc123"
}

TargetSetupParameterTimeInput

Fields
Input Field Description
parameter - String!
time - Float!
unlessParameter - String
Example
{
  "parameter": "abc123",
  "time": 987.65,
  "unlessParameter": "abc123"
}

TargetType

Values
Enum Value Description

HIGHER

LOWER

Example
"HIGHER"

Targets

Description

Performance targets for shifts and schedules.

Fields
Field Name Description
lineId - ID! The line that the schedule is attached to.
validFrom - ScheduleTime The year and week that the targets are valid from, if any exist.
id - ID The identifier of the targets, if any exist.
oee - Float OEE1 target of the shift/schedule.
oee2 - Float OEE2 target of the shift/schedule.
oee3 - Float OEE3 target of the shift/schedule.
tcu - Float TCU target of the shift/schedule.
produced - Float Target number of units produced.
numberOfBatches - Float Target number of batches run.
mainOeeType - OEEType Main OEE type used for targets in e.g. hourly.
Example
{
  "lineId": 4,
  "validFrom": ScheduleTime,
  "id": 4,
  "oee": 123.45,
  "oee2": 123.45,
  "oee3": 123.45,
  "tcu": 123.45,
  "produced": 123.45,
  "numberOfBatches": 123.45,
  "mainOeeType": "OEE1"
}

TargetsInput

Description

Input for setting performance targets.

Fields
Input Field Description
oee - Float OEE1 target of the shift/schedule.
oee2 - Float OEE2 target of the shift/schedule.
oee3 - Float OEE3 target of the shift/schedule.
tcu - Float TCU target of the shift/schedule.
produced - Float Target number of units produced.
numberOfBatches - Float Target number of batches run.
mainOeeType - OEEType Main OEE type used for targets in e.g. hourly.
Example
{
  "oee": 123.45,
  "oee2": 987.65,
  "oee3": 123.45,
  "tcu": 123.45,
  "produced": 987.65,
  "numberOfBatches": 123.45,
  "mainOeeType": "OEE1"
}

TextFieldOptions

Fields
Field Name Description
validation - TextFieldValidation!
Example
{"validation": TextFieldValidation}

TextFieldOptionsInput

Fields
Input Field Description
validation - TextFieldValidationInput!
Example
{"validation": TextFieldValidationInput}

TextFieldValidation

Fields
Field Name Description
required - Boolean!
Example
{"required": true}

TextFieldValidationInput

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

ThingEndpoint

Fields
Field Name Description
id - ID! The identifier for this endpoint
name - String! The name of this endpoint
domainName - String! Whether the endpoint is enabled.
enabled - Boolean! Whether the endpoint is enabled.
authenticationType - String! The authentication type that determines how devices authenticate when connecting.
applicationProtocol - String! The protocol used to communicate with endpoint.
Example
{
  "id": "4",
  "name": "xyz789",
  "domainName": "xyz789",
  "enabled": false,
  "authenticationType": "xyz789",
  "applicationProtocol": "xyz789"
}

ThisPeriod

Description

Represents "This week", "This month", etc.

Fields
Field Name Description
unit - RelativeTimeUnit! The unit for this period
Example
{"unit": "WEEK"}

ThisPeriodInput

Description

Input for "This week", "This month", "This quarter", or "This year"

Fields
Input Field Description
unit - RelativeTimeUnit! The unit for this period (Week, Month, Quarter, Year - Day is not supported)
Example
{"unit": "WEEK"}

Time

Description

Input parameter for specifying time ranges in queries. Used to filter data and calculate KPIs over specific periods.

Fields
Input Field Description
from - Date Start date for the query period.
to - Date End date for the query period.
Example
{
  "from": "2007-12-03",
  "to": "2007-12-03"
}

TimeFilter

Fields
Input Field Description
from - Date!
to - Date!
Example
{
  "from": "2007-12-03",
  "to": "2007-12-03"
}

TimeRange

Description

Time range for data queries. Used for analytics like hourly production rates, daily OEE trends, and shift-based performance comparisons.

Fields
Field Name Description
from - Date Start timestamp for the data period.
to - Date End timestamp for the data period.
Example
{
  "from": "2007-12-03",
  "to": "2007-12-03"
}

TimedTriggerPayload

Fields
Field Name Description
millis - Int!
Example
{"millis": 987}

TimedTriggerPayloadInput

Fields
Input Field Description
millis - Int!
Example
{"millis": 987}

Token

Fields
Field Name Description
paginationToken - ID!
userPool - ID!
Example
{"paginationToken": 4, "userPool": 4}

TokenInput

Fields
Input Field Description
paginationToken - ID!
userPool - ID
Example
{
  "paginationToken": "4",
  "userPool": "4"
}

TrackByCalendar

Description

Describes how a calendar-based maintenance plan produces recurring work orders

Fields
Field Name Description
rrule - RRule! The calendar rule that determines when a new work order is due
gracePeriodDays - Int! Combined with "gracePeriodHours" to represent the time from a work order is due until it is overdue
gracePeriodHours - Int! Combined with "gracePeriodDays" to represent the time from a work order is due until it is overdue
Example
{
  "rrule": RRule,
  "gracePeriodDays": 123,
  "gracePeriodHours": 123
}

TrackByCalendarInput

Description

Input for calendar-based maintenance scheduling. Configures work orders using calendar rules for complex recurring schedules.

Fields
Input Field Description
rrule - RRule!
gracePeriodDays - Int!
gracePeriodHours - Int!
Example
{
  "rrule": RRule,
  "gracePeriodDays": 123,
  "gracePeriodHours": 987
}

TrackByOptions

Fields
Field Name Description
time - TrackByTime
production - TrackByProduction
calendar - TrackByCalendar
Example
{
  "time": TrackByTime,
  "production": TrackByProduction,
  "calendar": TrackByCalendar
}

TrackByOptionsInput

Description

Input for configuring maintenance plan scheduling options. Determines how work orders are generated and when they become due.

Fields
Input Field Description
time - TrackByTimeInput
production - TrackByProductionInput
calendar - TrackByCalendarInput
Example
{
  "time": TrackByTimeInput,
  "production": TrackByProductionInput,
  "calendar": TrackByCalendarInput
}

TrackByProduction

Description

Describes how a production-based maintenance plan produces recurring work orders

Fields
Field Name Description
produced - Int! The production count after which a new work order is due
gracePeriodProduced - Int! The production count after which a due work order becomes overdue
peripheralId - PeripheralId! ID of peripheral data
peripheral - Peripheral Equipment or sensor being tracked for production-based maintenance. Enables predictive maintenance based on actual equipment usage.
Example
{
  "produced": 987,
  "gracePeriodProduced": 123,
  "peripheralId": PeripheralId,
  "peripheral": Peripheral
}

TrackByProductionInput

Description

Input for production-based maintenance scheduling. Configures work orders based on production output from specified equipment.

Fields
Input Field Description
produced - Int!
gracePeriodProduced - Int!
peripheralId - PeripheralId!
Example
{
  "produced": 123,
  "gracePeriodProduced": 123,
  "peripheralId": PeripheralId
}

TrackByTime

Description

Describes how a time-based maintenance plan produces recurring work orders After a plan is started or a work order is completed, a new work order will be due after an interval determined by this object

Fields
Field Name Description
days - Int! Combined with "hours" to represent the interval with which work orders are created
hours - Int! Combined with "days" to represent the interval with which work orders are created
gracePeriodDays - Int! Combined with "gracePeriodHours" to represent the time from a work order is due until it is overdue
gracePeriodHours - Int! Combined with "gracePeriodDays" to represent the time from a work order is due until it is overdue
skipWeekdays - [Weekday!] Used if certain weekdays should be skipped when counting down towards the due date The grace period is not affected by "skipWeekdays"
Example
{
  "days": 123,
  "hours": 987,
  "gracePeriodDays": 987,
  "gracePeriodHours": 987,
  "skipWeekdays": ["MONDAY"]
}

TrackByTimeInput

Description

Input for time-based maintenance scheduling. Configures work orders to be generated at fixed time intervals.

Fields
Input Field Description
days - Int!
hours - Int!
gracePeriodDays - Int!
gracePeriodHours - Int!
skipWeekdays - [Weekday!]
Example
{
  "days": 987,
  "hours": 123,
  "gracePeriodDays": 123,
  "gracePeriodHours": 987,
  "skipWeekdays": ["MONDAY"]
}

TrialStatus

Fields
Field Name Description
trialStart - Date!
trialEnd - Date!
Example
{
  "trialStart": "2007-12-03",
  "trialEnd": "2007-12-03"
}

Trigger

Fields
Field Name Description
id - TriggerId!
type - ActivityTriggerType!
conditions - TriggerConditions!
isActive - Boolean!
Example
{
  "id": TriggerId,
  "type": ActivityTriggerType,
  "conditions": TriggerConditions,
  "isActive": false
}

TriggerConditions

Fields
Field Name Description
locationIds - [NodeId!]!
productIds - [String!]!
packagingIds - [String!]!
stopCauseIds - [String!]!
stopCauseCategoryIds - [String!]!
stopTypes - [String!]!
duringBatch - Boolean!
duringShift - Boolean!
Example
{
  "locationIds": [NodeId],
  "productIds": ["xyz789"],
  "packagingIds": ["xyz789"],
  "stopCauseIds": ["abc123"],
  "stopCauseCategoryIds": ["xyz789"],
  "stopTypes": ["abc123"],
  "duringBatch": true,
  "duringShift": false
}

TriggerConditionsFilter

Fields
Input Field Description
locationIds - [NodeId!]
productIds - [String!]
packagingIds - [String!]
stopCauseIds - [String!]
stopCauseCategoryIds - [String!]
stopTypes - [String!]
Example
{
  "locationIds": [NodeId],
  "productIds": ["xyz789"],
  "packagingIds": ["abc123"],
  "stopCauseIds": ["abc123"],
  "stopCauseCategoryIds": ["xyz789"],
  "stopTypes": ["abc123"]
}

TriggerConditionsInput

Fields
Input Field Description
locationIds - [NodeId!]
productIds - [String!]
packagingIds - [String!]
stopCauseIds - [String!]
stopCauseCategoryIds - [String!]
stopTypes - [String!]
duringBatch - Boolean
duringShift - Boolean
Example
{
  "locationIds": [NodeId],
  "productIds": ["xyz789"],
  "packagingIds": ["abc123"],
  "stopCauseIds": ["xyz789"],
  "stopCauseCategoryIds": ["xyz789"],
  "stopTypes": ["xyz789"],
  "duringBatch": true,
  "duringShift": false
}

TriggerFilter

Fields
Input Field Description
types - [TriggerTypeFilter!]
duringBatch - Boolean
duringShift - Boolean
Example
{"types": ["MANUAL"], "duringBatch": false, "duringShift": false}

TriggerId

Example
TriggerId

TriggerInput

Fields
Input Field Description
type - ActivityTriggerTypeInput!
conditions - TriggerConditionsInput!
isActive - Boolean
Example
{
  "type": ActivityTriggerTypeInput,
  "conditions": TriggerConditionsInput,
  "isActive": false
}

TriggerType

Description

Trigger mechanisms for automated report generation. Defines when and how often performance reports are generated and distributed.

Values
Enum Value Description

CRON

Schedule-based report generation using cron expressions.

LAST_SHIFT_END

Generate report automatically when shift ends.
Example
"CRON"

TriggerTypeFilter

Values
Enum Value Description

MANUAL

EVERY_X_MINUTES

EVERY_X_PRODUCED

STOP_REGISTRATION

BATCH_START

BATCH_END

BATCH_PROGRESS

SHIFT_START

SHIFT_END

FIXED_TIME

Example
"MANUAL"

UUID

Example
"485c797c-c1fb-4c5e-a28a-626b814d0d5d"

Unit

Values
Enum Value Description

TEMPERATURE

GAS_FLOW

PRESSURE

VIBRATION

WEIGHT

CURRENT

VOLTAGE

POWER

HYDROCARBON_EMISSION

RELATIVE_HUMIDITY

SPEED

PCS

Example
"TEMPERATURE"

UpdateActionPlanInput

Fields
Input Field Description
id - String!
category - String!
title - String
content - [ActionPlanContentInput!]!
pdcaState - ActionPlanPDCAState
state - ActionPlanState!
followUpState - Int!
followUpInterval - ActionPlanFollowUpInterval!
linkedProductionData - [String!]!
attachedFiles - [String!]!
dueDate - DateTime
version - Int!
Example
{
  "id": "xyz789",
  "category": "abc123",
  "title": "abc123",
  "content": [ActionPlanContentInput],
  "pdcaState": "PLAN",
  "state": "OPEN",
  "followUpState": 123,
  "followUpInterval": "DAILY",
  "linkedProductionData": ["abc123"],
  "attachedFiles": ["xyz789"],
  "dueDate": "2007-12-03T10:15:30Z",
  "version": 123
}

UpdateActionPlanTaskInput

Fields
Input Field Description
id - String!
content - String!
checked - Boolean!
version - Int!
Example
{
  "id": "xyz789",
  "content": "abc123",
  "checked": false,
  "version": 987
}

UpdateActivityInput

Fields
Input Field Description
status - ActivityStatus!
values - [CustomFieldValueInput!]
initials - String
Example
{
  "status": "PENDING",
  "values": [CustomFieldValueInput],
  "initials": "abc123"
}

UpdateBatchByBatchNumberInput

Description

Update a batch by batch number inputs.

Fields
Input Field Description
lineId - ID!
batchNumber - String!
productId - ID
plannedStart - Date
actualStart - Date
actualStop - Date
amount - Float
manualScrap - Float
comment - String
dataMultiplier - Float
validatedLineSpeed - Float
expectedAverageSpeed - Float
forceStop - Boolean
Example
{
  "lineId": "4",
  "batchNumber": "xyz789",
  "productId": "4",
  "plannedStart": "2007-12-03",
  "actualStart": "2007-12-03",
  "actualStop": "2007-12-03",
  "amount": 123.45,
  "manualScrap": 123.45,
  "comment": "abc123",
  "dataMultiplier": 987.65,
  "validatedLineSpeed": 987.65,
  "expectedAverageSpeed": 123.45,
  "forceStop": false
}

UpdateConfigInput

Fields
Input Field Description
sensor - SensorConfigInput
camera - CameraConfigInput
Example
{
  "sensor": SensorConfigInput,
  "camera": CameraConfigInput
}

UpdateCustomizableReportInput

Fields
Input Field Description
title - String
widgets - [WidgetInput!]
widgetLayouts - [WidgetLayoutInput!]
Example
{
  "title": "abc123",
  "widgets": [WidgetInput],
  "widgetLayouts": [WidgetLayoutInput]
}

UpdateEscalation

Fields
Input Field Description
id - String!
assignedTo - String
priority - Boolean!
version - Int!
Example
{
  "id": "xyz789",
  "assignedTo": "xyz789",
  "priority": true,
  "version": 123
}

UpdateFactoryOverviewSettingsInput

Fields
Input Field Description
oeeType - OEEType!
Example
{"oeeType": "OEE1"}

UpdateGoldenBatchSettingsInput

Fields
Input Field Description
timePeriodMonths - Int!
Example
{"timePeriodMonths": 987}

UpdateLearningActivityInput

Fields
Input Field Description
id - UUID!
nodeId - String!
title - String!
description - String
content - String
startEndDatesRequired - Boolean!
validityInMonths - Int
Example
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "nodeId": "xyz789",
  "title": "xyz789",
  "description": "abc123",
  "content": "abc123",
  "startEndDatesRequired": false,
  "validityInMonths": 987
}

UpdateLearningRoleInput

Fields
Input Field Description
title - String
description - String
nodeId - ID
skills - [UUID!]
Example
{
  "title": "abc123",
  "description": "abc123",
  "nodeId": 4,
  "skills": [
    "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
  ]
}

UpdateMaintenanceLogEntryInput

Description

Input for updating existing maintenance log entries. Allows modification of completed maintenance records and associated metadata.

Fields
Input Field Description
initials - String
comment - String
customData - CustomFormDataInput
stopCauseIds - [String!]
stopCausePeripheralId - PeripheralId
assetIds - [NodeId!]
startOfService - DateTime
endOfService - DateTime
Example
{
  "initials": "xyz789",
  "comment": "xyz789",
  "customData": CustomFormDataInput,
  "stopCauseIds": ["abc123"],
  "stopCausePeripheralId": PeripheralId,
  "assetIds": [NodeId],
  "startOfService": "2007-12-03T10:15:30Z",
  "endOfService": "2007-12-03T10:15:30Z"
}

UpdateMaintenancePlanInput

Description

Input for updating existing maintenance plans. Allows partial updates to maintenance plan configuration and scheduling.

Fields
Input Field Description
asset - String
title - String
tagPartNumber - String
instructions - String
startFrom - DateTime
trackBy - TrackByOptionsInput
roleId - MaintenanceRoleId
Example
{
  "asset": "xyz789",
  "title": "xyz789",
  "tagPartNumber": "xyz789",
  "instructions": "xyz789",
  "startFrom": "2007-12-03T10:15:30Z",
  "trackBy": TrackByOptionsInput,
  "roleId": MaintenanceRoleId
}

UpdateSkillInput

Fields
Input Field Description
title - String!
description - String
nodeId - ID!
learningActivities - [UUID!]
Example
{
  "title": "xyz789",
  "description": "abc123",
  "nodeId": 4,
  "learningActivities": [
    "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
  ]
}

UpdateUserLearningActivityInput

Fields
Input Field Description
userId - ID!
learningActivityId - UUID!
learningActivityVersion - Int!
newStatus - UserLearningActivityStatusInput!
startedAt - DateTime
completedAt - DateTime
Example
{
  "userId": 4,
  "learningActivityId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "learningActivityVersion": 987,
  "newStatus": "ENROLLED",
  "startedAt": "2007-12-03T10:15:30Z",
  "completedAt": "2007-12-03T10:15:30Z"
}

UpdateWebhookInput

Fields
Input Field Description
id - UUID! The unique ID of the webhook to update.
url - String! The new URL to which the webhook will send requests.
name - String! An optional new name for the webhook.
description - String! An optional new description for the webhook.
headers - JSON! The new headers that will be sent with the webhook request.
triggerType - String! The new type of trigger for the webhook. Can be "batch_start" or "batch_end".
disabled - Boolean Whether the webhook is disabled.
locationId - NodeId! The location on which the webhook will trigger
Example
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "url": "abc123",
  "name": "abc123",
  "description": "xyz789",
  "headers": {},
  "triggerType": "xyz789",
  "disabled": false,
  "locationId": NodeId
}

UpsertActionPlansTaskInput

Fields
Input Field Description
id - String
content - String!
checked - Boolean!
version - Int
Example
{
  "id": "xyz789",
  "content": "abc123",
  "checked": true,
  "version": 987
}

Urgency

Description

Urgency levels for production assistance requests. Classifies the severity of issues requiring operator attention.

Values
Enum Value Description

MEDIUM

Moderate attention needed - potential issue developing.

CRITICAL

Immediate attention required - active production problem.
Example
"MEDIUM"

User

Fields
Field Name Description
company - Company!
username - String!
enabled - Boolean!
userStatus - String!
userCreateDate - Date!
userLastModifiedDate - Date!
sub - String!
email - String
givenName - String
familyName - String
emailVerified - String
groups - [Group!]!
locationRoles - [LocationRole!]
devices - [Device]! Production devices accessible to this user. Controls access to equipment data and control functions.
lines - [Line]! Production lines accessible to this user. Determines which line performance data and controls are available.
linesPaginated - LinesPaginated! Paginated access to production lines for this user.
Arguments
offset - Int!
limit - Int!
skills - UserSkillConnection!
Arguments
before - String
after - String
first - Int
last - Int
filter - UserSkillFilter
learningRoles - UserLearningRoleConnection!
Arguments
before - String
after - String
first - Int
last - Int
learningActivities - UserLearningActivityConnection!
Arguments
before - String
after - String
first - Int
last - Int
sessions - [Session!]!
Example
{
  "company": Company,
  "username": "xyz789",
  "enabled": true,
  "userStatus": "abc123",
  "userCreateDate": "2007-12-03",
  "userLastModifiedDate": "2007-12-03",
  "sub": "abc123",
  "email": "abc123",
  "givenName": "xyz789",
  "familyName": "abc123",
  "emailVerified": "xyz789",
  "groups": [Group],
  "locationRoles": [LocationRole],
  "devices": [Device],
  "lines": [Line],
  "linesPaginated": LinesPaginated,
  "skills": UserSkillConnection,
  "learningRoles": UserLearningRoleConnection,
  "learningActivities": UserLearningActivityConnection,
  "sessions": [Session]
}

UserAttributes

Fields
Input Field Description
address - String
birthdate - String
country - String
email - String
familyName - String
gender - String
givenName - String
locale - String
middleName - String
name - String
nickname - String
phoneNumber - String
picture - String
preferredUsername - String
profile - String
timezone - String
updatedAt - String
website - String
Example
{
  "address": "xyz789",
  "birthdate": "abc123",
  "country": "abc123",
  "email": "abc123",
  "familyName": "xyz789",
  "gender": "xyz789",
  "givenName": "abc123",
  "locale": "abc123",
  "middleName": "abc123",
  "name": "xyz789",
  "nickname": "xyz789",
  "phoneNumber": "abc123",
  "picture": "abc123",
  "preferredUsername": "abc123",
  "profile": "xyz789",
  "timezone": "abc123",
  "updatedAt": "abc123",
  "website": "abc123"
}

UserFilter

Fields
Input Field Description
enabled - Boolean
userStatus - String
sub - String
email - String
givenName - String
familyName - String
Example
{
  "enabled": false,
  "userStatus": "xyz789",
  "sub": "xyz789",
  "email": "abc123",
  "givenName": "xyz789",
  "familyName": "xyz789"
}

UserLearningActivity

Fields
Field Name Description
id - UUID!
learningActivityId - UUID!
version - Int!
nodeId - String!
title - String!
status - UserLearningActivityStatus!
description - String
content - String
startEndDatesRequired - Boolean!
validityInMonths - Int
enrolledAt - DateTime
startedAt - DateTime
completedAt - DateTime
exemptedAt - DateTime
expiresAt - DateTime
Example
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "learningActivityId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "version": 123,
  "nodeId": "abc123",
  "title": "abc123",
  "status": "ENROLLED",
  "description": "abc123",
  "content": "xyz789",
  "startEndDatesRequired": false,
  "validityInMonths": 987,
  "enrolledAt": "2007-12-03T10:15:30Z",
  "startedAt": "2007-12-03T10:15:30Z",
  "completedAt": "2007-12-03T10:15:30Z",
  "exemptedAt": "2007-12-03T10:15:30Z",
  "expiresAt": "2007-12-03T10:15:30Z"
}

UserLearningActivityConnection

Fields
Field Name Description
pageInfo - PageInfo! Information to aid in pagination.
edges - [UserLearningActivityEdge!]! A list of edges.
nodes - [UserLearningActivity!]! A list of nodes.
Example
{
  "pageInfo": PageInfo,
  "edges": [UserLearningActivityEdge],
  "nodes": [UserLearningActivity]
}

UserLearningActivityEdge

Description

An edge in a connection.

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

UserLearningActivityFilter

Fields
Input Field Description
nodeIds - [ID!]
skillIds - [UUID!]
status - [UserLearningActivityStatus!]
Example
{
  "nodeIds": ["4"],
  "skillIds": [
    "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
  ],
  "status": ["ENROLLED"]
}

UserLearningActivityStatus

Values
Enum Value Description

ENROLLED

STARTED

COMPLETED

EXEMPTED

ABOUT_TO_EXPIRE

EXPIRED

Example
"ENROLLED"

UserLearningActivityStatusInput

Values
Enum Value Description

ENROLLED

STARTED

COMPLETED

EXEMPTED

Example
"ENROLLED"

UserLearningRole

Fields
Field Name Description
id - UUID!
learningRoleId - UUID!
userId - ID!
title - String!
status - LearningRoleStatus!
description - String
nodeId - ID!
createdAt - DateTime!
updatedAt - DateTime!
createdBySub - String!
updatedBySub - String!
expiresAt - DateTime
completedAt - DateTime
enrolledBySub - String!
skills - UserLearningRoleSkillsConnection! Internal use only
Arguments
after - String
before - String
first - Int
last - Int
filter - UserSkillFilter
node - HierarchyNode Production context for this learning role.
user - User
createdBy - User
updatedBy - User
enrolledBy - User
Example
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "learningRoleId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "userId": "4",
  "title": "abc123",
  "status": "ENROLLED",
  "description": "abc123",
  "nodeId": "4",
  "createdAt": "2007-12-03T10:15:30Z",
  "updatedAt": "2007-12-03T10:15:30Z",
  "createdBySub": "abc123",
  "updatedBySub": "abc123",
  "expiresAt": "2007-12-03T10:15:30Z",
  "completedAt": "2007-12-03T10:15:30Z",
  "enrolledBySub": "xyz789",
  "skills": UserLearningRoleSkillsConnection,
  "node": HierarchyNode,
  "user": User,
  "createdBy": User,
  "updatedBy": User,
  "enrolledBy": User
}

UserLearningRoleConnection

Fields
Field Name Description
pageInfo - PageInfo! Information to aid in pagination.
edges - [UserLearningRoleEdge!]! A list of edges.
nodes - [UserLearningRole!]! A list of nodes.
Example
{
  "pageInfo": PageInfo,
  "edges": [UserLearningRoleEdge],
  "nodes": [UserLearningRole]
}

UserLearningRoleEdge

Description

An edge in a connection.

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

UserLearningRoleFilter

Fields
Input Field Description
nodeIds - [ID!]
learningRoleIds - [UUID!]
Example
{
  "nodeIds": ["4"],
  "learningRoleIds": [
    "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
  ]
}

UserLearningRoleSkill

Fields
Field Name Description
skillId - UUID!
userId - ID!
title - String!
status - SkillStatus!
description - String
nodeId - ID!
createdAt - DateTime!
updatedAt - DateTime!
createdBySub - String!
updatedBySub - String!
expiresAt - DateTime
completedAt - DateTime
orderIndex - Int!
learningActivities - UserLearningRoleSkillLearningActivitiesConnection! Internal use only
Arguments
after - String
before - String
first - Int
last - Int
Example
{
  "skillId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "userId": 4,
  "title": "abc123",
  "status": "ENROLLED",
  "description": "xyz789",
  "nodeId": 4,
  "createdAt": "2007-12-03T10:15:30Z",
  "updatedAt": "2007-12-03T10:15:30Z",
  "createdBySub": "xyz789",
  "updatedBySub": "xyz789",
  "expiresAt": "2007-12-03T10:15:30Z",
  "completedAt": "2007-12-03T10:15:30Z",
  "orderIndex": 987,
  "learningActivities": UserLearningRoleSkillLearningActivitiesConnection
}

UserLearningRoleSkillLearningActivitiesConnection

Fields
Field Name Description
pageInfo - PageInfo! Information to aid in pagination.
edges - [UserLearningRoleSkillLearningActivitiesEdge!]! A list of edges.
nodes - [UserSkillLearningActivity!]! A list of nodes.
Example
{
  "pageInfo": PageInfo,
  "edges": [UserLearningRoleSkillLearningActivitiesEdge],
  "nodes": [UserSkillLearningActivity]
}

UserLearningRoleSkillLearningActivitiesEdge

Description

An edge in a connection.

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

UserLearningRoleSkillsConnection

Fields
Field Name Description
pageInfo - PageInfo! Information to aid in pagination.
edges - [UserLearningRoleSkillsEdge!]! A list of edges.
nodes - [UserLearningRoleSkill!]! A list of nodes.
Example
{
  "pageInfo": PageInfo,
  "edges": [UserLearningRoleSkillsEdge],
  "nodes": [UserLearningRoleSkill]
}

UserLearningRoleSkillsEdge

Description

An edge in a connection.

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

UserList

Fields
Field Name Description
pagination - [Token!]
items - [User!]!
Example
{
  "pagination": [Token],
  "items": [User]
}

UserSkill

Fields
Field Name Description
id - UUID!
skillId - UUID!
userId - ID!
title - String!
status - SkillStatus!
description - String
nodeId - ID!
createdAt - DateTime!
updatedAt - DateTime!
createdBySub - String!
updatedBySub - String!
expiresAt - DateTime
completedAt - DateTime
enrolledBySub - String!
learningActivities - UserSkillLearningActivitiesConnection! Internal use only
Arguments
after - String
before - String
first - Int
last - Int
node - HierarchyNode Production area or equipment this skill assignment covers.
createdBy - User
updatedBy - User
enrolledBy - User
Example
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "skillId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "userId": "4",
  "title": "xyz789",
  "status": "ENROLLED",
  "description": "abc123",
  "nodeId": "4",
  "createdAt": "2007-12-03T10:15:30Z",
  "updatedAt": "2007-12-03T10:15:30Z",
  "createdBySub": "abc123",
  "updatedBySub": "xyz789",
  "expiresAt": "2007-12-03T10:15:30Z",
  "completedAt": "2007-12-03T10:15:30Z",
  "enrolledBySub": "abc123",
  "learningActivities": UserSkillLearningActivitiesConnection,
  "node": HierarchyNode,
  "createdBy": User,
  "updatedBy": User,
  "enrolledBy": User
}

UserSkillConnection

Fields
Field Name Description
pageInfo - PageInfo! Information to aid in pagination.
edges - [UserSkillEdge!]! A list of edges.
nodes - [UserSkill!]! A list of nodes.
Example
{
  "pageInfo": PageInfo,
  "edges": [UserSkillEdge],
  "nodes": [UserSkill]
}

UserSkillEdge

Description

An edge in a connection.

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

UserSkillFilter

Fields
Input Field Description
nodeIds - [ID!]
skillIds - [UUID!]
Example
{
  "nodeIds": ["4"],
  "skillIds": [
    "485c797c-c1fb-4c5e-a28a-626b814d0d5d"
  ]
}

UserSkillLearningActivitiesConnection

Fields
Field Name Description
pageInfo - PageInfo! Information to aid in pagination.
edges - [UserSkillLearningActivitiesEdge!]! A list of edges.
nodes - [UserSkillLearningActivity!]! A list of nodes.
Example
{
  "pageInfo": PageInfo,
  "edges": [UserSkillLearningActivitiesEdge],
  "nodes": [UserSkillLearningActivity]
}

UserSkillLearningActivitiesEdge

Description

An edge in a connection.

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

UserSkillLearningActivity

Fields
Field Name Description
id - UUID!
learningActivityId - UUID!
version - Int!
nodeId - String!
title - String!
status - UserLearningActivityStatus!
description - String
content - String
startEndDatesRequired - Boolean!
enrolledAt - DateTime
startedAt - DateTime
completedAt - DateTime
exemptedAt - DateTime
validityInMonths - Int
expiresAt - DateTime
orderIndex - Int!
Example
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "learningActivityId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "version": 987,
  "nodeId": "xyz789",
  "title": "xyz789",
  "status": "ENROLLED",
  "description": "xyz789",
  "content": "abc123",
  "startEndDatesRequired": false,
  "enrolledAt": "2007-12-03T10:15:30Z",
  "startedAt": "2007-12-03T10:15:30Z",
  "completedAt": "2007-12-03T10:15:30Z",
  "exemptedAt": "2007-12-03T10:15:30Z",
  "validityInMonths": 123,
  "expiresAt": "2007-12-03T10:15:30Z",
  "orderIndex": 123
}

UserSub

Fields
Field Name Description
sub - String!
username - String!
Example
{
  "sub": "xyz789",
  "username": "abc123"
}

VersionedActivityTemplateEdge

Description

An edge in a connection.

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

VersionedActivityTemplatesConnection

Fields
Field Name Description
pageInfo - PageInfo! Information to aid in pagination.
edges - [VersionedActivityTemplateEdge!]! A list of edges.
nodes - [ActivityTemplate!]! A list of nodes.
Example
{
  "pageInfo": PageInfo,
  "edges": [VersionedActivityTemplateEdge],
  "nodes": [ActivityTemplate]
}

VerticalAnnotation

Description

Vertical time-based annotation on charts. Marks specific events, incidents, or periods of interest on the timeline.

Fields
Field Name Description
id - ID! Unique identifier for this annotation.
label - String! Display label describing the event or period.
timestamp - Date! Start timestamp for the annotation marker.
timestampEnd - Date End timestamp for range annotations (optional for point events).
tags - [String!]! Categorization tags for filtering and grouping annotations.
Example
{
  "id": "4",
  "label": "xyz789",
  "timestamp": "2007-12-03",
  "timestampEnd": "2007-12-03",
  "tags": ["xyz789"]
}

VerticalAnnotationInput

Description

Input for creating vertical time-based annotations. Allows marking of specific events or time periods on chart timelines.

Fields
Input Field Description
label - String! Display label describing the event or period.
timestamp - Date! Start timestamp for the annotation marker.
timestampEnd - Date End timestamp for range annotations (optional for point events).
tags - [String!] Categorization tags for filtering and grouping annotations.
Example
{
  "label": "xyz789",
  "timestamp": "2007-12-03",
  "timestampEnd": "2007-12-03",
  "tags": ["abc123"]
}

VerticalAnnotationsInput

Description

Filtering options for retrieving vertical annotations. Controls how annotations are sampled and returned.

Fields
Input Field Description
sample - Boolean Whether to sample annotations for large time ranges to improve performance.
Example
{"sample": false}

VisualizationType

Types
Union Types

BarChart

Example
BarChart

WebPushSubscription

Description

Web push subscription configuration for real-time notifications. Enables operators to receive production alerts on their devices.

Fields
Input Field Description
endpoint - String! Push service endpoint URL for message delivery.
keys - WebPushSubscriptionKeys! Encryption keys for secure message delivery.
Example
{
  "endpoint": "abc123",
  "keys": WebPushSubscriptionKeys
}

WebPushSubscriptionKeys

Description

Cryptographic keys for secure web push notifications. Enables encrypted delivery of production alerts and notifications.

Fields
Input Field Description
p256dh - String! Public key for message encryption (P-256 ECDH).
auth - String! Authentication secret for message verification.
Example
{
  "p256dh": "xyz789",
  "auth": "abc123"
}

Webhook

Description

Represents a webhook.

Fields
Field Name Description
id - UUID! The unique identifier of the webhook.
name - String! The name of the webhook.
url - String! The URL of the webhook.
description - String An optional description of the webhook.
headers - JSON! The headers that will be sent with the webhook request, represented as a JSON object.
triggerType - String! The trigger that determines when the webhook is executed.
disabled - Boolean! Whether or not the webhook is disabled.
locationId - NodeId The ID of the location on which the webhook triggers.
createdAt - DateTime! The timestamp when the webhook was created.
updatedAt - DateTime! The timestamp when the webhook was last updated.
deletedAt - DateTime The timestamp when the webhook was deleted, if applicable.
Example
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "name": "xyz789",
  "url": "xyz789",
  "description": "abc123",
  "headers": {},
  "triggerType": "xyz789",
  "disabled": true,
  "locationId": NodeId,
  "createdAt": "2007-12-03T10:15:30Z",
  "updatedAt": "2007-12-03T10:15:30Z",
  "deletedAt": "2007-12-03T10:15:30Z"
}

WebhookConnection

Fields
Field Name Description
pageInfo - PageInfo! Information to aid in pagination.
edges - [WebhookEdge!]! A list of edges.
nodes - [Webhook!]! A list of nodes.
Example
{
  "pageInfo": PageInfo,
  "edges": [WebhookEdge],
  "nodes": [Webhook]
}

WebhookEdge

Description

An edge in a connection.

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

WebhookExecution

Description

Represents a webhook execution.

Fields
Field Name Description
id - UUID! The unique identifier of the webhook execution.
webhookId - UUID! The ID of the webhook associated with this execution.
requestUrl - String! The URL that was requested during the execution.
requestHeaders - JSON The headers sent with the request, represented as a JSON object.
requestBody - String The body of the request, if any.
statusCode - Int The HTTP status code returned by the execution, if available.
responseHeaders - JSON The headers returned in the response, represented as a JSON object.
responseBody - String The body of the response, if any.
responseError - String Any error message returned during the execution, if applicable.
result - WebhookResult! The result of the webhook execution.
ipAddress - String The IP address of the client that made the request.
redirectChain - [HttpRedirect!] The chain of redirects followed during the execution, if any.
responseTimeMs - Int The time taken for the response, in milliseconds.
requestAt - DateTime The timestamp when the request was made.
responseAt - DateTime The timestamp when the response was received.
createdAt - DateTime! The timestamp when the execution was created.
attemptCount - Int The number of attempts made for this execution.
Example
{
  "id": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "webhookId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "requestUrl": "xyz789",
  "requestHeaders": {},
  "requestBody": "xyz789",
  "statusCode": 123,
  "responseHeaders": {},
  "responseBody": "abc123",
  "responseError": "xyz789",
  "result": "SUCCESS",
  "ipAddress": "xyz789",
  "redirectChain": [HttpRedirect],
  "responseTimeMs": 987,
  "requestAt": "2007-12-03T10:15:30Z",
  "responseAt": "2007-12-03T10:15:30Z",
  "createdAt": "2007-12-03T10:15:30Z",
  "attemptCount": 123
}

WebhookExecutionConnection

Fields
Field Name Description
pageInfo - PageInfo! Information to aid in pagination.
edges - [WebhookExecutionEdge!]! A list of edges.
nodes - [WebhookExecution!]! A list of nodes.
Example
{
  "pageInfo": PageInfo,
  "edges": [WebhookExecutionEdge],
  "nodes": [WebhookExecution]
}

WebhookExecutionEdge

Description

An edge in a connection.

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

WebhookExecutionFilter

Description

Input type for filtering webhook executions.

Fields
Input Field Description
webhookId - UUID Filter by the ID of the webhook.
requestAtBefore - DateTime Filter executions requested before this timestamp.
requestAtAfter - DateTime Filter executions requested after this timestamp.
result - String Filter by the result of the execution.
statusCode - Int Filter by the HTTP status code of the execution.
Example
{
  "webhookId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "requestAtBefore": "2007-12-03T10:15:30Z",
  "requestAtAfter": "2007-12-03T10:15:30Z",
  "result": "abc123",
  "statusCode": 123
}

WebhookFilter

Description

Input type for filtering webhooks.

Fields
Input Field Description
triggerType - String Filter by the trigger type of the webhook.
disabled - Boolean Filter by the disabled status of the webhook.
Example
{"triggerType": "abc123", "disabled": true}

WebhookResult

Values
Enum Value Description

SUCCESS

TIMEOUT

CONNECTION_ERROR

DNS_ERROR

TLS_ERROR

CLIENT_ABORT

Example
"SUCCESS"

Weekday

Values
Enum Value Description

MONDAY

TUESDAY

WEDNESDAY

THURSDAY

FRIDAY

SATURDAY

SUNDAY

Example
"MONDAY"

WiFiConfig

Fields
Field Name Description
enabled - Boolean
networks - [Network!]
Example
{"enabled": true, "networks": [Network]}

WiFiConfigShadow

Fields
Field Name Description
desired - WiFiConfig
reported - WiFiConfig
Example
{
  "desired": WiFiConfig,
  "reported": WiFiConfig
}

Widget

Fields
Field Name Description
id - String!
type - WidgetType!
title - String!
parameters - WidgetParameters!
customConfig - WidgetConfig!
Example
{
  "id": "xyz789",
  "type": "KPI",
  "title": "xyz789",
  "parameters": WidgetParameters,
  "customConfig": KpiWidgetCustomConfig
}

WidgetConfig

Example
KpiWidgetCustomConfig

WidgetConfigInput

Fields
Input Field Description
kpi - KpiWidgetConfigInput
bar - BarWidgetConfigInput
Example
{
  "kpi": KpiWidgetConfigInput,
  "bar": BarWidgetConfigInput
}

WidgetCustomConfigInput

Fields
Input Field Description
kpi - KpiWidgetCustomConfigInput
gauge - GaugeWidgetCustomConfigInput
bar - BarWidgetCustomConfigInput
Example
{
  "kpi": KpiWidgetCustomConfigInput,
  "gauge": GaugeWidgetCustomConfigInput,
  "bar": BarWidgetCustomConfigInput
}

WidgetData

Types
Union Types

KpiWidgetData

TabularWidgetData

Example
KpiWidgetData

WidgetDataParametersInput

Fields
Input Field Description
lines - [LineId!]!
from - DateTime!
to - DateTime!
timezone - String! IANA timezone string (e.g., "America/New_York", "Europe/Copenhagen"). Used to determine day boundaries when grouping BY_DAY in bar charts.
Example
{
  "lines": [LineId],
  "from": "2007-12-03T10:15:30Z",
  "to": "2007-12-03T10:15:30Z",
  "timezone": "abc123"
}

WidgetInput

Fields
Input Field Description
id - String!
title - String!
parameters - WidgetParametersInput!
customConfig - WidgetCustomConfigInput!
Example
{
  "id": "abc123",
  "title": "abc123",
  "parameters": WidgetParametersInput,
  "customConfig": WidgetCustomConfigInput
}

WidgetKpi

Values
Enum Value Description

OEE1

OEE2

OEE3

TCU

PRODUCED

NUMBER_OF_STOPS

GOOD_PARTS

SCRAP

SCRAP_RATE

YIELD_RATE

DOWNTIME

UPTIME

VALUE_ADDING_TIME

CYCLE_TIME

AVERAGE_PRODUCED_PER_MIN

Example
"OEE1"

WidgetLayout

Fields
Field Name Description
widgetId - String!
rowIndex - Int!
orderInRow - Int!
Example
{
  "widgetId": "abc123",
  "rowIndex": 987,
  "orderInRow": 123
}

WidgetLayoutInput

Fields
Input Field Description
widgetId - String!
rowIndex - Int!
orderInRow - Int!
Example
{
  "widgetId": "xyz789",
  "rowIndex": 123,
  "orderInRow": 987
}

WidgetLocation

Fields
Field Name Description
nodeIds - [String!]!
Example
{"nodeIds": ["xyz789"]}

WidgetParameters

Fields
Field Name Description
location - WidgetLocation!
timeRange - CustomizableReportTimeRange!
Example
{
  "location": WidgetLocation,
  "timeRange": AbsoluteTime
}

WidgetParametersInput

Fields
Input Field Description
location - LocationInput!
timeRange - CustomizableReportTimeRangeInput!
Example
{
  "location": LocationInput,
  "timeRange": CustomizableReportTimeRangeInput
}

WidgetType

Values
Enum Value Description

KPI

GAUGE

BAR

Example
"KPI"

WithdrawLearningRoleFromUserInput

Fields
Input Field Description
learningRoleId - UUID!
userId - ID!
Example
{
  "learningRoleId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "userId": "4"
}

WithdrawSkillFromUserInput

Fields
Input Field Description
skillId - UUID!
userId - ID!
Example
{
  "skillId": "485c797c-c1fb-4c5e-a28a-626b814d0d5d",
  "userId": 4
}

WorkOrder

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

WorkOrderKey

Fields
Field Name Description
tagId - ID!
key - ID!
Example
{"tagId": "4", "key": 4}

WorkOrderStatus

Values
Enum Value Description

COMPLETED

Example
"COMPLETED"

WorkOrderStatusFilter

Values
Enum Value Description

PLANNED

DUE

OVERDUE

Example
"PLANNED"

Worker

Fields
Field Name Description
id - ID!
name - String!
email - String
phoneNumber - String
userSub - String This feature is experimental and might be replaced
role - AndonRole! Workers may now reference multiple roles.
roles - [AndonRole!]!
preferredSchedules - [AndonSchedule!]!
Example
{
  "id": "4",
  "name": "xyz789",
  "email": "xyz789",
  "phoneNumber": "xyz789",
  "userSub": "abc123",
  "role": AndonRole,
  "roles": [AndonRole],
  "preferredSchedules": [AndonSchedule]
}

WorkerCreateInput

Fields
Input Field Description
name - String!
email - String
phoneNumber - String
userSub - String
roleId - ID
roleIds - [ID!]
preferredSchedules - [ID!]
Example
{
  "name": "xyz789",
  "email": "xyz789",
  "phoneNumber": "abc123",
  "userSub": "xyz789",
  "roleId": "4",
  "roleIds": ["4"],
  "preferredSchedules": ["4"]
}

WorkerUpdateInput

Fields
Input Field Description
name - String
email - String
phoneNumber - String
userSub - String
roleId - ID
roleIds - [ID!]
preferredSchedules - [ID!]
Example
{
  "name": "abc123",
  "email": "abc123",
  "phoneNumber": "abc123",
  "userSub": "xyz789",
  "roleId": 4,
  "roleIds": ["4"],
  "preferredSchedules": ["4"]
}

_Any

Description

The _Any scalar is used to pass representations of entities from external services into the root _entities field for execution.

Example
_Any

_Entity

Types
Union Types

Line

Example
Line

_Service

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