Skip to content
LogoLogo

Operation schema

See Management API schema for every domain, the endpoint and authentication.

Types

OperationType

"""What an operation did to its resource."""
enum OperationType {
  """The resource was created."""
  CREATED
  """The resource was changed."""
  UPDATED
  """The resource was deleted."""
  DELETED
}

OperationSortKeys

"""
The orders a list of operations can be sorted in. `reverse: true`, the default, puts the latest
first. A cursor belongs to the order it was issued under.
"""
enum OperationSortKeys {
  """By `occurredAt`."""
  OCCURRED_AT
}

Operation

"""
One entry in the log of what was done to a resource, such as a lead or a label. Each resource has
its own operation type that carries the resource.
"""
interface Operation {
  """The ID of the operation."""
  id: ID!
  """What was done to the resource."""
  type: OperationType!
  """When the operation happened."""
  occurredAt: DateTime!
  """
  The workflow run task that performed the operation. Null when a person or an API key did.
  """
  task: WorkflowTask
}

OperationConnection

"""A page of operations."""
type OperationConnection {
  """The edges in this page."""
  edges: [OperationEdge!]!
  """The items in this page."""
  nodes: [Operation!]!
  """Where this page sits in the list."""
  pageInfo: PageInfo!
  """The number of items across all pages."""
  totalCount: Int!
}

OperationEdge

"""An operation in a page of results."""
type OperationEdge {
  """The cursor of this edge."""
  cursor: String!
  """The item."""
  node: Operation!
}