Step schema
See Management API schema for every domain, the endpoint and authentication.
Queries
step
Reads a step.
Scope: ORGANIZATION_WORKSPACE_READ.
step(id: ID!, workspaceId: ID!): Step @authsteps
Lists the steps in a workspace. search matches a case-insensitive substring of the name;
sortKey and reverse set the order.
Scope: ORGANIZATION_WORKSPACE_READ.
steps(first: Int, after: String, last: Int, before: String, workspaceId: ID!, search: String, sortKey: StepSortKeys = NAME, reverse: Boolean = false): StepConnection! @authMutations
stepCreate
Creates a step in a workspace.
Scope: ORGANIZATION_WORKSPACE_UPDATE.
stepCreate(input: StepCreateInput!): StepCreatePayload! @authstepUpdate
Updates a step.
Scope: ORGANIZATION_WORKSPACE_UPDATE.
stepUpdate(input: StepUpdateInput!): StepUpdatePayload! @authstepDelete
Deletes a step. A step that an experience references is not deleted, and comes back as an
IN_USE user error.
Scope: ORGANIZATION_WORKSPACE_UPDATE.
stepDelete(input: StepDeleteInput!): StepDeletePayload! @authTypes
Step
"""
One screen that a visitor sees. It holds fields, and a flow shows it when it reaches a step node.
"""
type Step {
"""The ID of the step."""
id: ID!
"""The name of the step."""
name: String!
"""The stable identifier of the step, unique within its workspace."""
key: String!
"""A description of the step. Null when none is set."""
description: String
"""
The layout name: the component that renders the step, such as `card` or `modal`. Null when none is set.
"""
layoutName: String
"""
The content entry that holds the step's layout content. Null when none is attached.
"""
layoutContentEntry: ContentEntry
"""When the step was created."""
createdAt: DateTime!
"""When the step last changed."""
updatedAt: DateTime!
"""The workspace the step belongs to."""
workspace: Workspace!
"""The ID of the workspace the step belongs to."""
workspaceId: ID
"""The fields on the step, in order."""
fields(first: Int, after: String, last: Int, before: String): FieldConnection!
}StepEdge
"""A step in a page of results."""
type StepEdge {
"""The cursor of this edge."""
cursor: String!
"""The step."""
node: Step!
}StepConnection
"""A page of steps."""
type StepConnection {
"""The edges in this page."""
edges: [StepEdge!]!
"""The steps in this page."""
nodes: [Step!]!
"""Where this page sits in the list."""
pageInfo: PageInfo!
"""The number of steps across all pages, ignoring `search`."""
totalCount: Int!
}StepCreateInput
"""The input of `stepCreate`."""
input StepCreateInput {
"""The ID of the workspace to create the step in."""
workspaceId: ID!
"""The name of the step."""
name: String!
"""
The stable identifier of the step, unique within the workspace. It cannot change later.
"""
key: String!
"""A description of the step."""
description: String
"""
The layout name: the component that renders the step, such as `card` or `modal`.
"""
layoutName: String
"""The IDs of the fields to put on the step, in order."""
fieldIds: [ID!]
}StepCreatePayload
"""The result of `stepCreate`."""
type StepCreatePayload {
"""The created step."""
step: Step
}StepUpdateInput
"""The input of `stepUpdate`. Omit a field to keep its value."""
input StepUpdateInput {
"""The ID of the step."""
id: ID!
"""The ID of the workspace the step belongs to."""
workspaceId: ID!
"""The name of the step."""
name: String
"""A description of the step. Null clears it."""
description: String
"""The layout name: the component that renders the step. Null clears it."""
layoutName: String
"""
The ID of a content entry to attach as the step's layout. The entry must be in the step's
workspace and belong to a page-layout or step-layout model. Null detaches the current entry.
"""
layoutContentEntryId: ID
"""
The IDs of the fields on the step, in order. Replaces the current list.
"""
fieldIds: [ID!]
}StepUpdatePayload
"""The result of `stepUpdate`."""
type StepUpdatePayload {
"""The updated step."""
step: Step
}StepDeleteInput
"""The input of `stepDelete`."""
input StepDeleteInput {
"""The ID of the step."""
id: ID!
"""The ID of the workspace the step belongs to."""
workspaceId: ID!
}StepDeletePayload
"""The result of `stepDelete`."""
type StepDeletePayload {
"""The ID of the deleted step. Null when `userErrors` is not empty."""
deletedStepId: ID
"""The reasons the step was not deleted. Empty on success."""
userErrors: [StepDeleteUserError!]!
}StepDeleteUserErrorCode
"""The reasons `stepDelete` refuses a delete."""
enum StepDeleteUserErrorCode {
"""An experience references the step."""
IN_USE
}StepDeleteUserError
"""A reason `stepDelete` did not delete a step."""
type StepDeleteUserError {
"""
The path to the input field at fault. Null when no single field is at fault.
"""
field: [String!]
"""A message to show the user."""
message: String!
"""A machine-readable code."""
code: StepDeleteUserErrorCode!
"""
The experiences that reference the step. Null unless `code` is `IN_USE`.
"""
referencingExperiences: [ReferencingExperience!]
}StepSortKeys
"""The orders `steps` can sort by. `reverse: true` flips each."""
enum StepSortKeys {
"""By name, A to Z."""
NAME
"""By creation time, oldest first."""
CREATED_AT
"""By last change, oldest first."""
UPDATED_AT
}