symmedia Hub GraphQL API Reference

symmedia Hub GraphQL API Reference

Welcome to the symmedia Hub GraphQL API Reference! This documentation provides detailed information about the available GraphQL API endpoints, queries, mutations, and types in our symmedia Hub platform.

API Endpoints
# non-productive environments:
https://api.{environment}.symmedia-hub.com/graphql
# Production server:
https://api.symmedia-hub.com/graphql
Headers
# Your Auth token
Authorization: Bearer <YOUR_TOKEN_HERE>
# Your API key
api-key: s3cretAP1k3y

Overview

The symmedia Hub GraphQL API allows developers to interact with our services programmatically. With this API, you can perform various operations related to customers, machines, service cases, and more.

Getting Started

To get started with the symmedia Hub GraphQL API, you will need API credentials and an understanding of GraphQL queries and mutations. Please refer to the Authentication section for details on obtaining API access tokens.

Documentation Structure

This documentation is organized as follows:

  • Queries: Describes read-only operations and how to retrieve information from the API.
  • Mutations: Covers write operations and how to make changes to the system.
  • Types: Lists the data types used in the API.

Example Usage

Below is a simple example of how to use the symmedia Hub GraphQL API to retrieve your user information:

query {
  myUser {
    id
    username
    email
  }
}

Authentication

All symmedia Hub API queries and mutations require dual authentication using a valid API Key and a valid Bearer Token. You need to include both in the HTTP headers of your requests.

Example Request Headers

POST /graphql HTTP/1.1
Host: api.symmedia-hub.com
api-key: <Your API Key>
Authorization: Bearer <Your Bearer Token>
Content-Type: application/json

In the example above:

  • <Your API Key> should be replaced with your valid API Key.
  • <Your Bearer Token> should be replaced with your valid Bearer Token. To properly authenticate and access the symmedia Hub API, please ensure that you include both the API Key (api-key) and Bearer Token (Authorization) in the headers of your GraphQL requests to properly authenticate and access the symmedia Hub API.

How do you obtain an API key from symmedia?

Follow these steps to obtain an API key from symmedia:

  1. Contact symmedia: Reach out to symmedia through their official website, support email, or support hotline to request an API key.

  2. Submit your Request: Explain the purpose of your request or the type of integration you plan to undertake with the API key. This will help symmedia provide you with the appropriate key and instructions.

  3. Receive Documentation and Instructions: symmedia will likely provide specific instructions on how to use the API key for authentication. Make sure you carefully read and follow these instructions.

  4. Prioritize Security: Treat the API key with care and store it securely, as it grants access to systems and data. Adhere to the best security practices to protect your API key.

  5. Integrate: Once you have the API key and have followed the provided instructions, you can integrate it into your systems and utilize the symmedia API as needed.

How to Obtain an Bearer Token (Development)

Follow these steps to obtain a Bearer Token:

  1. Log in to the symmedia Hub: Go to the portal and log in with your credentials.
  2. Open the developer tools: Open your browser's developer tools and go to the Network tab.
  3. Search for a GraphQL request: Search for the GraphQL request in the network tab. The request should look like this: graphql?myTenantUser
  4. Copy the Bearer Token: Copy the Bearer Token from the request and use it in the Header for the API Request.

Queries

assetsPaginated

Response

Returns an AssetQueryResult!

Example

Query
query AssetsPaginated {
  assetsPaginated {
    data {
      id
      edgeDevice {
        id
        iotDeviceId
      }
      tenant {
        id
        name
        shortname
        status
        address {
          ...AddressFragment
        }
        helpLink
      }
      serialNumber
      displayName
      avatar
      machineModel {
        id
        modelName
        technology
        brand
        externalId
      }
      facility {
        id
        tenant {
          ...TenantFragment
        }
        name
        description
      }
      dataSourceConfigs {
        id
        tenantId
        name
        adapterType
        payload {
          ...DataSourceConfigPayloadFragment
        }
      }
      machine {
        id
        owner {
          ...OwnerFragment
        }
        technology
        modelName
        brand
        avatar
        serialNumber
        edgeDevice {
          ...EdgeDeviceFragment
        }
        collaborationStatus
      }
    }
  }
}
Response
{"data": {"assetsPaginated": {"data": [Asset]}}}

customer

Response

Returns a Customer

Arguments
Name Description
id - ID
externalId - String

Example

Query
query Customer(
  $id: ID,
  $externalId: String
) {
  customer(
    id: $id,
    externalId: $externalId
  ) {
    id
    name
    status
    externalId
    serviceOrganisation {
      id
      tenant {
        id
        name
        shortname
        status
        address {
          ...AddressFragment
        }
        helpLink
      }
      name
      description
      followTheSun {
        providesFollowTheSunSupport
        zoneId
        schedule {
          ...ServiceScheduleFragment
        }
      }
    }
    address {
      country
      state
      city
      postalCode
      street
      street2
    }
  }
}
Variables
{"id": 4, "externalId": "abc123"}
Response
{
  "data": {
    "customer": {
      "id": "4",
      "name": "abc123",
      "status": "NEW",
      "externalId": "abc123",
      "serviceOrganisation": ServiceOrganisation,
      "address": {
        "street": "Metadata example of `street`",
        "city": "Metadata example of `city`",
        "state": "Metadata example of `state`",
        "zip": "Metadata example of `zip`"
      }
    }
  }
}

customerMachine

Response

Returns a CustomerMachine

Arguments
Name Description
customerMachineId - ID
externalId - String

Example

Query
query CustomerMachine(
  $customerMachineId: ID,
  $externalId: String
) {
  customerMachine(
    customerMachineId: $customerMachineId,
    externalId: $externalId
  ) {
    id
    serialNumber
    machineModel {
      id
      modelName
      technology
      brand
      externalId
    }
    displayName
    externalId
    avatar
    warrantyBegin
    warrantyEnd
    status
    customer {
      id
      name
      status
      externalId
      serviceOrganisation {
        id
        tenant {
          ...TenantFragment
        }
        name
        description
        followTheSun {
          ...FollowTheSunFragment
        }
      }
      address {
        country
        state
        city
        postalCode
        street
        street2
      }
    }
    isSp1Migration
    edgeDeviceSerialNumber
    machine {
      id
      owner {
        tenant {
          ...TenantFragment
        }
        ownerType
        owner {
          ... on CustomerMachine {
            ...CustomerMachineFragment
          }
          ... on Asset {
            ...AssetFragment
          }
        }
      }
      technology
      modelName
      brand
      avatar
      serialNumber
      edgeDevice {
        id
        iotDeviceId
      }
      collaborationStatus
    }
  }
}
Variables
{
  "customerMachineId": 4,
  "externalId": "abc123"
}
Response
{
  "data": {
    "customerMachine": {
      "id": 4,
      "serialNumber": "xyz789",
      "machineModel": MachineModel,
      "displayName": "xyz789",
      "externalId": "abc123",
      "avatar": "xyz789",
      "warrantyBegin": "2007-12-03",
      "warrantyEnd": "2007-12-03",
      "status": "NEW",
      "customer": Customer,
      "isSp1Migration": true,
      "edgeDeviceSerialNumber": "xyz789",
      "machine": Machine
    }
  }
}

customerMachinesPaginated

Response

Returns a CustomerMachineQueryResult!

Arguments
Name Description
options - CustomerMachineOptions

Example

Query
query CustomerMachinesPaginated($options: CustomerMachineOptions) {
  customerMachinesPaginated(options: $options) {
    data {
      id
      serialNumber
      machineModel {
        id
        modelName
        technology
        brand
        externalId
      }
      displayName
      externalId
      avatar
      warrantyBegin
      warrantyEnd
      status
      customer {
        id
        name
        status
        externalId
        serviceOrganisation {
          ...ServiceOrganisationFragment
        }
        address {
          ...AddressFragment
        }
      }
      isSp1Migration
      edgeDeviceSerialNumber
      machine {
        id
        owner {
          ...OwnerFragment
        }
        technology
        modelName
        brand
        avatar
        serialNumber
        edgeDevice {
          ...EdgeDeviceFragment
        }
        collaborationStatus
      }
    }
  }
}
Variables
{"options": CustomerMachineOptions}
Response
{
  "data": {
    "customerMachinesPaginated": {
      "data": [CustomerMachine]
    }
  }
}

customersPaginated

Response

Returns a CustomerQueryResult!

Arguments
Name Description
options - CustomerOptions

Example

Query
query CustomersPaginated($options: CustomerOptions) {
  customersPaginated(options: $options) {
    data {
      id
      name
      status
      externalId
      serviceOrganisation {
        id
        tenant {
          ...TenantFragment
        }
        name
        description
        followTheSun {
          ...FollowTheSunFragment
        }
      }
      address {
        country
        state
        city
        postalCode
        street
        street2
      }
    }
    pageInfo {
      totalElements
      totalPages
      currentPage
      fromElement
      untilElement
    }
  }
}
Variables
{"options": CustomerOptions}
Response
{
  "data": {
    "customersPaginated": {
      "data": [Customer],
      "pageInfo": PageInfo
    }
  }
}

dataPoints

Response

Returns a DataPointsResult

Arguments
Name Description
options - DataPointsOptions!

Example

Query
query DataPoints($options: DataPointsOptions!) {
  dataPoints(options: $options) {
    machineDataPoints {
      assetId
      dataPoints {
        timestampUtc
        dataPointName
        value
      }
    }
  }
}
Variables
{"options": DataPointsOptions}
Response
{
  "data": {
    "dataPoints": {
      "machineDataPoints": [MachineDataPoints]
    }
  }
}

facilitiesPaginated

Response

Returns a FacilityQueryResult!

Example

Query
query FacilitiesPaginated {
  facilitiesPaginated {
    data {
      id
      tenant {
        id
        name
        shortname
        status
        address {
          ...AddressFragment
        }
        helpLink
      }
      name
      description
    }
  }
}
Response
{"data": {"facilitiesPaginated": {"data": [Facility]}}}

machineInvoiceEnclosuresPaginated

Arguments
Name Description
input - MachineInvoiceEnclosuresInput!
options - MachineInvoiceEnclosureOptions!

Example

Query
query MachineInvoiceEnclosuresPaginated(
  $input: MachineInvoiceEnclosuresInput!,
  $options: MachineInvoiceEnclosureOptions!
) {
  machineInvoiceEnclosuresPaginated(
    input: $input,
    options: $options
  ) {
    pageInfo {
      totalElements
      totalPages
      currentPage
      fromElement
      untilElement
    }
    data {
      machine {
        id
        owner {
          ...OwnerFragment
        }
        technology
        modelName
        brand
        avatar
        serialNumber
        edgeDevice {
          ...EdgeDeviceFragment
        }
        collaborationStatus
      }
      billedOwnerTenant {
        id
        name
        shortname
        status
        address {
          ...AddressFragment
        }
        helpLink
      }
      serialNumber
      validFor {
        year
        month
      }
      ownerType
      customer {
        id
        name
        status
        externalId
        serviceOrganisation {
          ...ServiceOrganisationFragment
        }
        address {
          ...AddressFragment
        }
      }
      licenseType
    }
  }
}
Variables
{
  "input": MachineInvoiceEnclosuresInput,
  "options": MachineInvoiceEnclosureOptions
}
Response
{
  "data": {
    "machineInvoiceEnclosuresPaginated": {
      "pageInfo": PageInfo,
      "data": [MachineInvoiceEnclosure]
    }
  }
}

machineModel

Response

Returns a MachineModel

Arguments
Name Description
machineModelId - ID
externalId - String
tenantLinkType - TenantLinkType Default = ALL

Example

Query
query MachineModel(
  $machineModelId: ID,
  $externalId: String,
  $tenantLinkType: TenantLinkType
) {
  machineModel(
    machineModelId: $machineModelId,
    externalId: $externalId,
    tenantLinkType: $tenantLinkType
  ) {
    id
    modelName
    technology
    brand
    externalId
  }
}
Variables
{
  "machineModelId": 4,
  "externalId": "abc123",
  "tenantLinkType": "ALL"
}
Response
{
  "data": {
    "machineModel": {
      "id": "4",
      "modelName": "abc123",
      "technology": "abc123",
      "brand": "xyz789",
      "externalId": "abc123"
    }
  }
}

machineModelsPaginated

Response

Returns a MachineModelQueryResult!

Arguments
Name Description
options - MachineModelOptions

Example

Query
query MachineModelsPaginated($options: MachineModelOptions) {
  machineModelsPaginated(options: $options) {
    data {
      id
      modelName
      technology
      brand
      externalId
    }
  }
}
Variables
{"options": MachineModelOptions}
Response
{
  "data": {
    "machineModelsPaginated": {"data": [MachineModel]}
  }
}

myUser

Response

Returns a User!

Example

Query
query MyUser {
  myUser {
    id
    name
    email
    tenant {
      id
      name
      shortname
      status
      address {
        country
        state
        city
        postalCode
        street
        street2
      }
      helpLink
    }
    identityId
    isTechnicalUser
  }
}
Response
{
  "data": {
    "myUser": {
      "id": 4,
      "name": "xyz789",
      "email": "abc123",
      "tenant": Tenant,
      "identityId": "4",
      "isTechnicalUser": false
    }
  }
}

permissionsOfCurrentUserPaginated

Example

Query
query PermissionsOfCurrentUserPaginated {
  permissionsOfCurrentUserPaginated {
    data {
      key
      displayName
      description
      applicationId
    }
  }
}
Response
{
  "data": {
    "permissionsOfCurrentUserPaginated": {
      "data": [Permission]
    }
  }
}

serviceCasesPaginated

Response

Returns a ServiceCaseQueryResult!

Arguments
Name Description
options - ServiceCaseOptions!

Example

Query
query ServiceCasesPaginated($options: ServiceCaseOptions!) {
  serviceCasesPaginated(options: $options) {
    data {
      id
      displayId
      state {
        id
        index
        name
        isClosed
      }
      title
      description
      createdAt
      updatedAt
      closedAt
      firstTimeAssignedAt
      firstTimeInProgressAt
      creator {
        id
        name
        email
        tenant {
          ...TenantFragment
        }
        identityId
        isTechnicalUser
      }
      assignee {
        id
        name
        email
        tenant {
          ...TenantFragment
        }
        identityId
        isTechnicalUser
      }
      customerMachine {
        id
        serialNumber
        machineModel {
          ...MachineModelFragment
        }
        displayName
        externalId
        avatar
        warrantyBegin
        warrantyEnd
        status
        customer {
          ...CustomerFragment
        }
        isSp1Migration
        edgeDeviceSerialNumber
        machine {
          ...MachineFragment
        }
      }
      priority
      severity
      externalId
      customFields {
        key
        value
      }
      closingReport {
        id
        isSolved
        notes
      }
    }
  }
}
Variables
{"options": "Metadata example of `nonReqQueryArg`"}
Response
{
  "data": {
    "serviceCasesPaginated": {"data": [ServiceCase]}
  }
}

serviceContractsPaginated

Response

Returns a ServiceContractQueryResult!

Example

Query
query ServiceContractsPaginated {
  serviceContractsPaginated {
    data {
      id
      contractName
      shortDescription
      isAssignable
      followTheSun
      serviceContractAssignments {
        id
        serviceContract {
          ...ServiceContractFragment
        }
        customerMachine {
          ...CustomerMachineFragment
        }
        startDate
        endDate
        createdAt
        updatedAt
      }
    }
  }
}
Response
{
  "data": {
    "serviceContractsPaginated": {
      "data": [ServiceContract]
    }
  }
}

serviceOrganisationsPaginated

Response

Returns a ServiceOrganisationQueryResult!

Example

Query
query ServiceOrganisationsPaginated {
  serviceOrganisationsPaginated {
    data {
      id
      tenant {
        id
        name
        shortname
        status
        address {
          ...AddressFragment
        }
        helpLink
      }
      name
      description
      followTheSun {
        providesFollowTheSunSupport
        zoneId
        schedule {
          ...ServiceScheduleFragment
        }
      }
    }
  }
}
Response
{
  "data": {
    "serviceOrganisationsPaginated": {
      "data": [ServiceOrganisation]
    }
  }
}

tenant

Response

Returns a Tenant!

Arguments
Name Description
id - ID!

Example

Query
query Tenant($id: ID!) {
  tenant(id: $id) {
    id
    name
    shortname
    status
    address {
      country
      state
      city
      postalCode
      street
      street2
    }
    helpLink
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "tenant": {
      "id": "4",
      "name": "abc123",
      "shortname": "abc123",
      "status": "INCOMPLETE",
      "address": {
        "street": "Metadata example of `street`",
        "city": "Metadata example of `city`",
        "state": "Metadata example of `state`",
        "zip": "Metadata example of `zip`"
      },
      "helpLink": "xyz789"
    }
  }
}

tenantsPaginated

Response

Returns a TenantQueryResult!

Arguments
Name Description
options - TenantOptions

Example

Query
query TenantsPaginated($options: TenantOptions) {
  tenantsPaginated(options: $options) {
    data {
      id
      name
      shortname
      status
      address {
        country
        state
        city
        postalCode
        street
        street2
      }
      helpLink
    }
  }
}
Variables
{"options": TenantOptions}
Response
{"data": {"tenantsPaginated": {"data": [Tenant]}}}

timeSeries

Response

Returns a TimeSeriesResult

Arguments
Name Description
options - TimeSeriesOptions!

Example

Query
query TimeSeries($options: TimeSeriesOptions!) {
  timeSeries(options: $options) {
    timestamps
    assetSeries {
      assetId
      dataPointSeries {
        dataPointName
        values {
          ...FloatWithTimestampFragment
        }
      }
    }
  }
}
Variables
{"options": TimeSeriesOptions}
Response
{
  "data": {
    "timeSeries": {
      "timestamps": [
        "2007-12-03T10:15:30Z"
      ],
      "assetSeries": [AssetTimeSeries]
    }
  }
}

Mutations

createCustomer

Response

Returns a Customer

Arguments
Name Description
customer - CreateCustomerInput!

Example

Query
mutation CreateCustomer($customer: CreateCustomerInput!) {
  createCustomer(customer: $customer) {
    id
    name
    status
    externalId
    serviceOrganisation {
      id
      tenant {
        id
        name
        shortname
        status
        address {
          ...AddressFragment
        }
        helpLink
      }
      name
      description
      followTheSun {
        providesFollowTheSunSupport
        zoneId
        schedule {
          ...ServiceScheduleFragment
        }
      }
    }
    address {
      country
      state
      city
      postalCode
      street
      street2
    }
  }
}
Variables
{"customer": CreateCustomerInput}
Response
{
  "data": {
    "createCustomer": {
      "id": 4,
      "name": "abc123",
      "status": "NEW",
      "externalId": "abc123",
      "serviceOrganisation": ServiceOrganisation,
      "address": {
        "street": "Metadata example of `street`",
        "city": "Metadata example of `city`",
        "state": "Metadata example of `state`",
        "zip": "Metadata example of `zip`"
      }
    }
  }
}

createCustomerMachine

Response

Returns a CustomerMachine

Arguments
Name Description
customerMachine - CreateCustomerMachineInput!

Example

Query
mutation CreateCustomerMachine($customerMachine: CreateCustomerMachineInput!) {
  createCustomerMachine(customerMachine: $customerMachine) {
    id
    serialNumber
    machineModel {
      id
      modelName
      technology
      brand
      externalId
    }
    displayName
    externalId
    avatar
    warrantyBegin
    warrantyEnd
    status
    customer {
      id
      name
      status
      externalId
      serviceOrganisation {
        id
        tenant {
          ...TenantFragment
        }
        name
        description
        followTheSun {
          ...FollowTheSunFragment
        }
      }
      address {
        country
        state
        city
        postalCode
        street
        street2
      }
    }
    isSp1Migration
    edgeDeviceSerialNumber
    machine {
      id
      owner {
        tenant {
          ...TenantFragment
        }
        ownerType
        owner {
          ... on CustomerMachine {
            ...CustomerMachineFragment
          }
          ... on Asset {
            ...AssetFragment
          }
        }
      }
      technology
      modelName
      brand
      avatar
      serialNumber
      edgeDevice {
        id
        iotDeviceId
      }
      collaborationStatus
    }
  }
}
Variables
{"customerMachine": CreateCustomerMachineInput}
Response
{
  "data": {
    "createCustomerMachine": {
      "id": 4,
      "serialNumber": "abc123",
      "machineModel": MachineModel,
      "displayName": "xyz789",
      "externalId": "xyz789",
      "avatar": "abc123",
      "warrantyBegin": "2007-12-03",
      "warrantyEnd": "2007-12-03",
      "status": "NEW",
      "customer": Customer,
      "isSp1Migration": true,
      "edgeDeviceSerialNumber": "xyz789",
      "machine": Machine
    }
  }
}

createMachineModel

Response

Returns a MachineModel

Arguments
Name Description
machineModel - CreateMachineModelInput!

Example

Query
mutation CreateMachineModel($machineModel: CreateMachineModelInput!) {
  createMachineModel(machineModel: $machineModel) {
    id
    modelName
    technology
    brand
    externalId
  }
}
Variables
{"machineModel": CreateMachineModelInput}
Response
{
  "data": {
    "createMachineModel": {
      "id": 4,
      "modelName": "xyz789",
      "technology": "xyz789",
      "brand": "abc123",
      "externalId": "xyz789"
    }
  }
}

updateCustomer

Response

Returns a Customer

Arguments
Name Description
id - ID!
customer - UpdateCustomerInput!

Example

Query
mutation UpdateCustomer(
  $id: ID!,
  $customer: UpdateCustomerInput!
) {
  updateCustomer(
    id: $id,
    customer: $customer
  ) {
    id
    name
    status
    externalId
    serviceOrganisation {
      id
      tenant {
        id
        name
        shortname
        status
        address {
          ...AddressFragment
        }
        helpLink
      }
      name
      description
      followTheSun {
        providesFollowTheSunSupport
        zoneId
        schedule {
          ...ServiceScheduleFragment
        }
      }
    }
    address {
      country
      state
      city
      postalCode
      street
      street2
    }
  }
}
Variables
{
  "id": "4",
  "customer": UpdateCustomerInput
}
Response
{
  "data": {
    "updateCustomer": {
      "id": "4",
      "name": "xyz789",
      "status": "NEW",
      "externalId": "abc123",
      "serviceOrganisation": ServiceOrganisation,
      "address": {
        "street": "Metadata example of `street`",
        "city": "Metadata example of `city`",
        "state": "Metadata example of `state`",
        "zip": "Metadata example of `zip`"
      }
    }
  }
}

updateCustomerByExternalId

Response

Returns a Customer

Arguments
Name Description
externalId - ID!
customer - UpdateCustomerInput!

Example

Query
mutation UpdateCustomerByExternalId(
  $externalId: ID!,
  $customer: UpdateCustomerInput!
) {
  updateCustomerByExternalId(
    externalId: $externalId,
    customer: $customer
  ) {
    id
    name
    status
    externalId
    serviceOrganisation {
      id
      tenant {
        id
        name
        shortname
        status
        address {
          ...AddressFragment
        }
        helpLink
      }
      name
      description
      followTheSun {
        providesFollowTheSunSupport
        zoneId
        schedule {
          ...ServiceScheduleFragment
        }
      }
    }
    address {
      country
      state
      city
      postalCode
      street
      street2
    }
  }
}
Variables
{"externalId": 4, "customer": UpdateCustomerInput}
Response
{
  "data": {
    "updateCustomerByExternalId": {
      "id": "4",
      "name": "xyz789",
      "status": "NEW",
      "externalId": "xyz789",
      "serviceOrganisation": ServiceOrganisation,
      "address": {
        "street": "Metadata example of `street`",
        "city": "Metadata example of `city`",
        "state": "Metadata example of `state`",
        "zip": "Metadata example of `zip`"
      }
    }
  }
}

updateCustomerMachine

Response

Returns a CustomerMachine

Arguments
Name Description
id - ID!
customerMachine - UpdateCustomerMachineInput!

Example

Query
mutation UpdateCustomerMachine(
  $id: ID!,
  $customerMachine: UpdateCustomerMachineInput!
) {
  updateCustomerMachine(
    id: $id,
    customerMachine: $customerMachine
  ) {
    id
    serialNumber
    machineModel {
      id
      modelName
      technology
      brand
      externalId
    }
    displayName
    externalId
    avatar
    warrantyBegin
    warrantyEnd
    status
    customer {
      id
      name
      status
      externalId
      serviceOrganisation {
        id
        tenant {
          ...TenantFragment
        }
        name
        description
        followTheSun {
          ...FollowTheSunFragment
        }
      }
      address {
        country
        state
        city
        postalCode
        street
        street2
      }
    }
    isSp1Migration
    edgeDeviceSerialNumber
    machine {
      id
      owner {
        tenant {
          ...TenantFragment
        }
        ownerType
        owner {
          ... on CustomerMachine {
            ...CustomerMachineFragment
          }
          ... on Asset {
            ...AssetFragment
          }
        }
      }
      technology
      modelName
      brand
      avatar
      serialNumber
      edgeDevice {
        id
        iotDeviceId
      }
      collaborationStatus
    }
  }
}
Variables
{"id": 4, "customerMachine": UpdateCustomerMachineInput}
Response
{
  "data": {
    "updateCustomerMachine": {
      "id": 4,
      "serialNumber": "abc123",
      "machineModel": MachineModel,
      "displayName": "xyz789",
      "externalId": "xyz789",
      "avatar": "abc123",
      "warrantyBegin": "2007-12-03",
      "warrantyEnd": "2007-12-03",
      "status": "NEW",
      "customer": Customer,
      "isSp1Migration": false,
      "edgeDeviceSerialNumber": "abc123",
      "machine": Machine
    }
  }
}

updateCustomerMachineByExternalId

Response

Returns a CustomerMachine

Arguments
Name Description
externalId - ID!
customerMachine - UpdateCustomerMachineInput!

Example

Query
mutation UpdateCustomerMachineByExternalId(
  $externalId: ID!,
  $customerMachine: UpdateCustomerMachineInput!
) {
  updateCustomerMachineByExternalId(
    externalId: $externalId,
    customerMachine: $customerMachine
  ) {
    id
    serialNumber
    machineModel {
      id
      modelName
      technology
      brand
      externalId
    }
    displayName
    externalId
    avatar
    warrantyBegin
    warrantyEnd
    status
    customer {
      id
      name
      status
      externalId
      serviceOrganisation {
        id
        tenant {
          ...TenantFragment
        }
        name
        description
        followTheSun {
          ...FollowTheSunFragment
        }
      }
      address {
        country
        state
        city
        postalCode
        street
        street2
      }
    }
    isSp1Migration
    edgeDeviceSerialNumber
    machine {
      id
      owner {
        tenant {
          ...TenantFragment
        }
        ownerType
        owner {
          ... on CustomerMachine {
            ...CustomerMachineFragment
          }
          ... on Asset {
            ...AssetFragment
          }
        }
      }
      technology
      modelName
      brand
      avatar
      serialNumber
      edgeDevice {
        id
        iotDeviceId
      }
      collaborationStatus
    }
  }
}
Variables
{
  "externalId": "4",
  "customerMachine": UpdateCustomerMachineInput
}
Response
{
  "data": {
    "updateCustomerMachineByExternalId": {
      "id": "4",
      "serialNumber": "xyz789",
      "machineModel": MachineModel,
      "displayName": "xyz789",
      "externalId": "xyz789",
      "avatar": "abc123",
      "warrantyBegin": "2007-12-03",
      "warrantyEnd": "2007-12-03",
      "status": "NEW",
      "customer": Customer,
      "isSp1Migration": true,
      "edgeDeviceSerialNumber": "xyz789",
      "machine": Machine
    }
  }
}

updateServiceCase

Response

Returns a ServiceCase

Arguments
Name Description
serviceCase - UpdateServiceCaseInput!

Example

Query
mutation UpdateServiceCase($serviceCase: UpdateServiceCaseInput!) {
  updateServiceCase(serviceCase: $serviceCase) {
    id
    displayId
    state {
      id
      index
      name
      isClosed
    }
    title
    description
    createdAt
    updatedAt
    closedAt
    firstTimeAssignedAt
    firstTimeInProgressAt
    creator {
      id
      name
      email
      tenant {
        id
        name
        shortname
        status
        address {
          ...AddressFragment
        }
        helpLink
      }
      identityId
      isTechnicalUser
    }
    assignee {
      id
      name
      email
      tenant {
        id
        name
        shortname
        status
        address {
          ...AddressFragment
        }
        helpLink
      }
      identityId
      isTechnicalUser
    }
    customerMachine {
      id
      serialNumber
      machineModel {
        id
        modelName
        technology
        brand
        externalId
      }
      displayName
      externalId
      avatar
      warrantyBegin
      warrantyEnd
      status
      customer {
        id
        name
        status
        externalId
        serviceOrganisation {
          ...ServiceOrganisationFragment
        }
        address {
          ...AddressFragment
        }
      }
      isSp1Migration
      edgeDeviceSerialNumber
      machine {
        id
        owner {
          ...OwnerFragment
        }
        technology
        modelName
        brand
        avatar
        serialNumber
        edgeDevice {
          ...EdgeDeviceFragment
        }
        collaborationStatus
      }
    }
    priority
    severity
    externalId
    customFields {
      key
      value
    }
    closingReport {
      id
      isSolved
      notes
    }
  }
}
Variables
{"serviceCase": UpdateServiceCaseInput}
Response
{
  "data": {
    "updateServiceCase": {
      "id": "4",
      "displayId": "xyz789",
      "state": ServiceCaseState,
      "title": "abc123",
      "description": "abc123",
      "createdAt": "2007-12-03T10:15:30Z",
      "updatedAt": "2007-12-03T10:15:30Z",
      "closedAt": "2007-12-03T10:15:30Z",
      "firstTimeAssignedAt": "2007-12-03T10:15:30Z",
      "firstTimeInProgressAt": "2007-12-03T10:15:30Z",
      "creator": User,
      "assignee": User,
      "customerMachine": CustomerMachine,
      "priority": 987,
      "severity": "MACHINE_BREAKDOWN",
      "externalId": "xyz789",
      "customFields": [CustomFieldValue],
      "closingReport": ClosingReport
    }
  }
}

Types

AdapterType

Values
Enum Value Description

OPCUA

Example
{}

Address

Fields
Field Name Description
country - String!
state - String
city - String
postalCode - String
street - String
street2 - String
Example
{
  "street": "Metadata example of `street`",
  "city": "Metadata example of `city`",
  "state": "Metadata example of `state`",
  "zip": "Metadata example of `zip`"
}

AddressFilter

Fields
Input Field Description
country - StringExpression
postalCode - StringExpression
city - StringExpression
street - StringExpression
street2 - StringExpression
state - StringExpression
and - [AddressFilter!]
or - [AddressFilter!]
not - AddressFilter
Example
{}

AggregationFunction

Values
Enum Value Description

MIN

MAX

DELTA

AVG

COUNT

Example
{}

Asset

Fields
Field Name Description
id - ID!
edgeDevice - EdgeDevice Substituted by 'machine.edgeDevice'.
tenant - Tenant
serialNumber - String! Substituted by 'machine.serialNumber'.
displayName - String
avatar - String
machineModel - MachineModel Substituted by respective fields in 'machine'.
facility - Facility
dataSourceConfigs - [DataSourceConfigDetails]
machine - Machine
Example
{
  "id": 4,
  "edgeDevice": EdgeDevice,
  "tenant": Tenant,
  "serialNumber": "xyz789",
  "displayName": "xyz789",
  "avatar": "xyz789",
  "machineModel": MachineModel,
  "facility": Facility,
  "dataSourceConfigs": [DataSourceConfigDetails],
  "machine": Machine
}

AssetQueryResult

Fields
Field Name Description
data - [Asset!]!
Example
{"data": [Asset]}

AssetTimeSeries

Fields
Field Name Description
assetId - ID!
dataPointSeries - [DataPointTimeSeries!]!
Example
{"assetId": 4, "dataPointSeries": [DataPointTimeSeries]}

Boolean

Description

The 'Boolean' scalar type represents 'true' or 'false' .

Example
{}

ClosingReport

Fields
Field Name Description
id - ID!
isSolved - Boolean!
notes - String
Example
{
  "id": 4,
  "isSolved": true,
  "notes": "xyz789"
}

CreateCustomerAddressInput

Fields
Input Field Description
country - String!
postalCode - String
city - String
street - String
street2 - String
state - String
Example
{}

CreateCustomerInput

Fields
Input Field Description
name - String!
externalId - String
serviceOrganisation - ID!
address - CreateCustomerAddressInput!
Example
{}

CreateCustomerMachineInput

Fields
Input Field Description
customer - CustomerInput!
serialNumber - String!
machineModel - MachineModelInput!
externalId - String
edgeDeviceSerialNumber - String
warrantyBegin - Date
warrantyEnd - Date
isSp1Migration - Boolean
Example
{}

CreateMachineModelInput

Fields
Input Field Description
modelName - String!
technology - String!
brand - String
externalId - String
Example
{}

CustomFieldValue

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

Customer

Fields
Field Name Description
id - ID!
name - String!
status - CustomerStatus!
externalId - String
serviceOrganisation - ServiceOrganisation
address - Address
Example
{
  "id": 4,
  "name": "xyz789",
  "status": "NEW",
  "externalId": "abc123",
  "serviceOrganisation": ServiceOrganisation,
  "address": {
    "street": "Metadata example of `street`",
    "city": "Metadata example of `city`",
    "state": "Metadata example of `state`",
    "zip": "Metadata example of `zip`"
  }
}

CustomerFilter

Fields
Input Field Description
id - IDExpression
name - StringExpression
status - CustomerStatusExpression
linkedTenantId - StringExpression
externalId - StringExpression
websiteUrl - StringExpression
address - AddressFilter
and - [CustomerFilter!]
or - [CustomerFilter!]
not - CustomerFilter
Example
{}

CustomerInput

Fields
Input Field Description
customerId - ID
customerExternalId - String
Example
{}

CustomerMachine

Fields
Field Name Description
id - ID!
serialNumber - String! Substituted by 'machine.serialNumber'.
machineModel - MachineModel
displayName - String Discontinued. To be removed.
externalId - String
avatar - String
warrantyBegin - Date
warrantyEnd - Date
status - CustomerMachineStatus Substituted by 'machine.collaborationStatus'.
customer - Customer
isSp1Migration - Boolean
edgeDeviceSerialNumber - String
machine - Machine
Example
{
  "id": 4,
  "serialNumber": "abc123",
  "machineModel": MachineModel,
  "displayName": "abc123",
  "externalId": "abc123",
  "avatar": "abc123",
  "warrantyBegin": "2007-12-03",
  "warrantyEnd": "2007-12-03",
  "status": "NEW",
  "customer": Customer,
  "isSp1Migration": false,
  "edgeDeviceSerialNumber": "abc123",
  "machine": Machine
}

CustomerMachineFilter

Fields
Input Field Description
externalId - StringExpression
customerId - IDExpression
customerName - StringExpression
status - CustomerMachineStatusExpression
serialNumber - StringExpression
machineModelName - StringExpression
brand - StringExpression
technology - StringExpression
id - StringExpression
serviceContracts - StringExpression
Example
{}

CustomerMachineOptions

Fields
Input Field Description
filter - CustomerMachineFilter
pagination - PaginationInput
sortBy - [CustomerMachineSorter!]
Example
{}

CustomerMachineQueryResult

Fields
Field Name Description
data - [CustomerMachine!]!
Example
{"data": [CustomerMachine]}

CustomerMachineSorter

Fields
Input Field Description
id - SortDirection
status - SortDirection
brand - SortDirection
technology - SortDirection
model - SortDirection
externalId - SortDirection
serialNumber - SortDirection
customerName - SortDirection
Example
{}

CustomerMachineStatus

Values
Enum Value Description

NEW

PROPOSED

UNCONNECTED

CONNECTED

Example
{}

CustomerMachineStatusExpression

Fields
Input Field Description
is - CustomerMachineStatus
Example
{}

CustomerOptions

Fields
Input Field Description
filter - CustomerFilter
pagination - PaginationInput
sortBy - [CustomerSorter!]
Example
{}

CustomerQueryResult

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

CustomerSorter

Fields
Input Field Description
name - SortDirection
status - SortDirection
linkedTenantId - SortDirection
externalId - SortDirection
websiteUrl - SortDirection
Example
{}

CustomerStatus

Values
Enum Value Description

NEW

INVITED

ONBOARDED

DEMO

CONVERTED

Example
{}

CustomerStatusExpression

Fields
Input Field Description
is - CustomerStatus
Example
{}

DataPoint

Fields
Field Name Description
timestampUtc - Int!
dataPointName - String!
value - String!
Example
{
  "timestampUtc": 123,
  "dataPointName": "xyz789",
  "value": "abc123"
}

DataPointQueryRange

Values
Enum Value Description

IN_RANGE

INCLUDE_LAST_BEFORE

INCLUDE_FIRST_AFTER

INCLUDE_LAST_BEFORE_AND_FIRST_AFTER

Example
{}

DataPointSortOrder

Values
Enum Value Description

ASCENDING

DESCENDING

Example
{}

DataPointTimeSeries

Fields
Field Name Description
dataPointName - String!
values - [FloatWithTimestamp]!
Example
{
  "dataPointName": "abc123",
  "values": [FloatWithTimestamp]
}

DataPointsOptions

Fields
Input Field Description
assetIds - [ID!]!
timeRange - TimeRange!
dataPointNames - [String!]!
take - Int!
dataPointQueryRange - DataPointQueryRange!
sortOrder - DataPointSortOrder!
Example
{}

DataPointsResult

Fields
Field Name Description
machineDataPoints - [MachineDataPoints!]!
Example
{"machineDataPoints": [MachineDataPoints]}

DataSourceConfigDetails

Fields
Field Name Description
id - ID!
tenantId - ID!
name - String!
adapterType - AdapterType!
payload - [DataSourceConfigPayload]!
Example
{
  "id": "4",
  "tenantId": "4",
  "name": "abc123",
  "adapterType": "OPCUA",
  "payload": [DataSourceConfigPayload]
}

DataSourceConfigPayload

Fields
Field Name Description
measurementName - String!
heartbeatInterval - Int!
opcSamplingInterval - Int!
opcPublishingInterval - Int!
hotNode - Boolean
isNumeric - Boolean
Example
{
  "measurementName": "xyz789",
  "heartbeatInterval": 123,
  "opcSamplingInterval": 123,
  "opcPublishingInterval": 123,
  "hotNode": true,
  "isNumeric": false
}

Date

Example
{}

DateTime

Example
{}

Duration

Example
{}

EdgeDevice

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

Facility

Fields
Field Name Description
id - ID!
tenant - Tenant!
name - String!
description - String
Example
{
  "id": "4",
  "tenant": Tenant,
  "name": "xyz789",
  "description": "abc123"
}

FacilityQueryResult

Fields
Field Name Description
data - [Facility!]!
Example
{"data": [Facility]}

Float

Description

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

Example
{}

FloatWithTimestamp

Fields
Field Name Description
timestamp - DateTime!
value - Float
Example
{
  "timestamp": "2007-12-03T10:15:30Z",
  "value": 123.45
}

FollowTheSun

Fields
Field Name Description
providesFollowTheSunSupport - Boolean!
zoneId - String
schedule - [ServiceSchedule!]!
Example
{
  "providesFollowTheSunSupport": true,
  "zoneId": "abc123",
  "schedule": [ServiceSchedule]
}

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
{}

IDExpression

Fields
Input Field Description
is - ID
Example
{}

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
{}

LocalTime

Example
{}

Machine

Fields
Field Name Description
id - ID!
owner - Owner
technology - String
modelName - String
brand - String
avatar - String
serialNumber - String!
edgeDevice - EdgeDevice
collaborationStatus - MachineCollaborationStatus
Example
{
  "id": "4",
  "owner": Owner,
  "technology": "xyz789",
  "modelName": "xyz789",
  "brand": "xyz789",
  "avatar": "abc123",
  "serialNumber": "abc123",
  "edgeDevice": EdgeDevice,
  "collaborationStatus": "INTERNAL"
}

MachineCollaborationStatus

Values
Enum Value Description

INTERNAL

PROPOSED

SHARED

DEACTIVATED

REJECTED

Example
{}

MachineDataPoints

Fields
Field Name Description
assetId - ID!
dataPoints - [DataPoint!]!
Example
{"assetId": 4, "dataPoints": [DataPoint]}

MachineInvoiceEnclosure

Fields
Field Name Description
machine - Machine!
billedOwnerTenant - Tenant!
serialNumber - String
validFor - YearMonth!
ownerType - OwnerType!
customer - Customer
licenseType - MachineLicenseType!
Example
{
  "machine": Machine,
  "billedOwnerTenant": Tenant,
  "serialNumber": "abc123",
  "validFor": YearMonth,
  "ownerType": "ASSET",
  "customer": Customer,
  "licenseType": "UNCONNECTED"
}

MachineInvoiceEnclosureFilter

Fields
Input Field Description
machineId - StringExpression
ownerType - OwnerTypeFilter
customerId - StringExpression
licenseType - MachineLicenseTypeFilter
serialNumber - StringExpression
and - [MachineInvoiceEnclosureFilter!]
or - [MachineInvoiceEnclosureFilter!]
not - MachineInvoiceEnclosureFilter Not can only be used if there are no other filters defined on this level
Example
{}

MachineInvoiceEnclosureOptions

Fields
Input Field Description
filter - MachineInvoiceEnclosureFilter
pagination - PaginationInput!
sortBy - [MachineInvoiceEnclosureSorter!]
Example
{}

MachineInvoiceEnclosureQueryResult

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

MachineInvoiceEnclosureSorter

Fields
Input Field Description
machineId - SortDirection
ownerType - SortDirection
customerId - SortDirection
licenseType - SortDirection
serialNumber - SortDirection
Example
{}

MachineInvoiceEnclosuresInput

Fields
Input Field Description
yearMonthInput - YearMonthInput!
Example
{}

MachineLicenseType

Values
Enum Value Description

UNCONNECTED

CONNECTED

Example
{}

MachineLicenseTypeFilter

Fields
Input Field Description
is - MachineLicenseType
Example
{}

MachineModel

Fields
Field Name Description
id - ID!
modelName - String!
technology - String!
brand - String
externalId - String
Example
{
  "id": 4,
  "modelName": "abc123",
  "technology": "abc123",
  "brand": "abc123",
  "externalId": "abc123"
}

MachineModelFilter

Fields
Input Field Description
tenantLinkType - TenantLinkType
Example
{}

MachineModelInput

Fields
Input Field Description
machineModelId - ID
machineModelExternalId - String
Example
{}

MachineModelOptions

Fields
Input Field Description
filter - MachineModelFilter
Example
{}

MachineModelQueryResult

Fields
Field Name Description
data - [MachineModel!]!
Example
{"data": [MachineModel]}

MachineOwner

Types
Union Types

CustomerMachine

Asset

Example
{}

Owner

Fields
Field Name Description
tenant - Tenant
ownerType - OwnerType
owner - MachineOwner
Example
{
  "tenant": Tenant,
  "ownerType": "ASSET",
  "owner": CustomerMachine
}

OwnerType

Values
Enum Value Description

ASSET

CUSTOMER_MACHINE

Example
{}

OwnerTypeFilter

Fields
Input Field Description
is - OwnerType
Example
{}

PageInfo

Fields
Field Name Description
totalElements - Int
totalPages - Int
currentPage - Int
fromElement - Int
untilElement - Int
Example
{
  "totalElements": 987,
  "totalPages": 123,
  "currentPage": 987,
  "fromElement": 987,
  "untilElement": 987
}

PaginationInput

Fields
Input Field Description
page - Int!
pageSize - Int!
Example
{}

Permission

Fields
Field Name Description
key - String!
displayName - String!
description - String!
applicationId - ID!
Example
{
  "key": "xyz789",
  "displayName": "xyz789",
  "description": "abc123",
  "applicationId": 4
}

PermissionsOfCurrentUserQueryResult

Fields
Field Name Description
data - [Permission!]!
Example
{"data": [Permission]}

SeriesDataSource

Values
Enum Value Description

PRE_AGGREGATED

ORIGINAL

Example
{}

ServiceCase

Fields
Field Name Description
id - ID!
displayId - String!
state - ServiceCaseState
title - String!
description - String
createdAt - DateTime!
updatedAt - DateTime
closedAt - DateTime
firstTimeAssignedAt - DateTime The first time when the service case was assigned to a service provider user.
firstTimeInProgressAt - DateTime The first time when the service case state was changed to IN_PROGRESS.
creator - User
assignee - User
customerMachine - CustomerMachine
priority - Int
severity - Severity
externalId - String
customFields - [CustomFieldValue]
closingReport - ClosingReport
Example
{
  "id": "4",
  "displayId": "xyz789",
  "state": ServiceCaseState,
  "title": "abc123",
  "description": "abc123",
  "createdAt": "2007-12-03T10:15:30Z",
  "updatedAt": "2007-12-03T10:15:30Z",
  "closedAt": "2007-12-03T10:15:30Z",
  "firstTimeAssignedAt": "2007-12-03T10:15:30Z",
  "firstTimeInProgressAt": "2007-12-03T10:15:30Z",
  "creator": User,
  "assignee": User,
  "customerMachine": CustomerMachine,
  "priority": 987,
  "severity": "MACHINE_BREAKDOWN",
  "externalId": "xyz789",
  "customFields": [CustomFieldValue],
  "closingReport": ClosingReport
}

ServiceCaseFilter

Fields
Input Field Description
isClosed - Boolean
Example
{}

ServiceCaseOptions

Fields
Input Field Description
view - ServiceCaseView!
filter - ServiceCaseFilter
Example
{}

ServiceCaseQueryResult

Fields
Field Name Description
data - [ServiceCase!]!
Example
{"data": [ServiceCase]}

ServiceCaseState

Fields
Field Name Description
id - ID!
index - Int!
name - String!
isClosed - Boolean!
Example
{
  "id": 4,
  "index": 123,
  "name": "abc123",
  "isClosed": true
}

ServiceCaseView

Values
Enum Value Description

OPERATOR

SERVICE_PROVIDER

Example
{}

ServiceContract

Fields
Field Name Description
id - ID!
contractName - String!
shortDescription - String
isAssignable - Boolean!
followTheSun - Boolean!
serviceContractAssignments - [ServiceContractAssignment!]!
Example
{
  "id": "4",
  "contractName": "abc123",
  "shortDescription": "xyz789",
  "isAssignable": false,
  "followTheSun": true,
  "serviceContractAssignments": [
    ServiceContractAssignment
  ]
}

ServiceContractAssignment

Fields
Field Name Description
id - ID!
serviceContract - ServiceContract!
customerMachine - CustomerMachine
startDate - DateTime!
endDate - DateTime!
createdAt - DateTime!
updatedAt - DateTime
Example
{
  "id": 4,
  "serviceContract": ServiceContract,
  "customerMachine": CustomerMachine,
  "startDate": "2007-12-03T10:15:30Z",
  "endDate": "2007-12-03T10:15:30Z",
  "createdAt": "2007-12-03T10:15:30Z",
  "updatedAt": "2007-12-03T10:15:30Z"
}

ServiceContractQueryResult

Fields
Field Name Description
data - [ServiceContract!]!
Example
{"data": [ServiceContract]}

ServiceOrganisation

Fields
Field Name Description
id - ID!
tenant - Tenant!
name - String!
description - String
followTheSun - FollowTheSun
Example
{
  "id": 4,
  "tenant": Tenant,
  "name": "xyz789",
  "description": "abc123",
  "followTheSun": FollowTheSun
}

ServiceOrganisationQueryResult

Fields
Field Name Description
data - [ServiceOrganisation!]!
Example
{"data": [ServiceOrganisation]}

ServiceSchedule

Fields
Field Name Description
startTime - LocalTime!
endTime - LocalTime!
dayOfWeek - Int!
Example
{
  "startTime": "08:45:59",
  "endTime": "08:45:59",
  "dayOfWeek": 123
}

Severity

Values
Enum Value Description

MACHINE_BREAKDOWN

PRODUCTION_IMPAIRED

NO_IMPAIRMENT

Example
{}

SortDirection

Values
Enum Value Description

ASC

DESC

Example
{}

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
{}

StringExpression

Fields
Input Field Description
equals - String
contains - String
starts - String
ends - String
Example
{}

Tenant

Fields
Field Name Description
id - ID!
name - String!
shortname - String
status - TenantStatus
address - Address
helpLink - String
Example
{
  "id": "4",
  "name": "abc123",
  "shortname": "xyz789",
  "status": "INCOMPLETE",
  "address": {
    "street": "Metadata example of `street`",
    "city": "Metadata example of `city`",
    "state": "Metadata example of `state`",
    "zip": "Metadata example of `zip`"
  },
  "helpLink": "xyz789"
}

TenantFilter

Fields
Input Field Description
status - [TenantStatus]
Example
{}

TenantLinkType

Values
Enum Value Description

ALL

SERVICE_PROVIDER

OPERATOR

NONE

Example
{}

TenantOptions

Fields
Input Field Description
filter - TenantFilter
Example
{}

TenantQueryResult

Fields
Field Name Description
data - [Tenant!]!
Example
{"data": [Tenant]}

TenantStatus

Values
Enum Value Description

INCOMPLETE

ACTIVE

DEACTIVATED

Example
{}

TimeRange

Fields
Input Field Description
from - DateTime
to - DateTime
Example
{}

TimeSeriesOptions

Fields
Input Field Description
assetIds - [ID!]!
timeRange - TimeRange!
dataPointNames - [String!]!
aggregation - AggregationFunction!
binSize - Duration!
dataSource - SeriesDataSource!
Example
{}

TimeSeriesResult

Fields
Field Name Description
timestamps - [DateTime!]!
assetSeries - [AssetTimeSeries!]!
Example
{
  "timestamps": ["2007-12-03T10:15:30Z"],
  "assetSeries": [AssetTimeSeries]
}

UpdateCustomerAddressInput

Fields
Input Field Description
country - String
postalCode - String
city - String
street - String
street2 - String
state - String
Example
{}

UpdateCustomerInput

Fields
Input Field Description
name - String
externalId - String
websiteUrl - String
serviceOrganisation - ID
address - UpdateCustomerAddressInput
Example
{}

UpdateCustomerMachineInput

Fields
Input Field Description
customer - CustomerInput
serialNumber - String
machineModel - MachineModelInput
warrantyBegin - Date
warrantyEnd - Date
isSp1Migration - Boolean
Example
{}

UpdateServiceCaseInput

Fields
Input Field Description
serviceCaseId - ID!
externalId - String
priority - Int
Example
{}

User

Fields
Field Name Description
id - ID!
name - String!
email - String
tenant - Tenant!
identityId - ID
isTechnicalUser - Boolean!
Example
{
  "id": "4",
  "name": "abc123",
  "email": "abc123",
  "tenant": Tenant,
  "identityId": "4",
  "isTechnicalUser": false
}

YearMonth

Fields
Field Name Description
year - Int!
month - Int!
Example
{"year": 987, "month": 123}

YearMonthInput

Fields
Input Field Description
year - Int!
month - Int!
Example
{}