Workbench schema
See Management API schema for every domain, the endpoint and authentication.
Mutations
workbenchAssetImport
Imports an asset owned elsewhere into a workbench as IMPORTED. The asset's owner does not
change.
Scope: ORGANIZATION_WORKSPACE_UPDATE.
workbenchAssetImport(input: WorkbenchAssetImportInput!): WorkbenchAssetImportPayload! @authworkbenchAssetAdoptOwned
Moves the ownership of an asset-library asset to a workbench, as OWNED.
Scope: ORGANIZATION_WORKSPACE_UPDATE.
workbenchAssetAdoptOwned(input: WorkbenchAssetAdoptOwnedInput!): WorkbenchAssetAdoptOwnedPayload! @authworkbenchAssetRemove
Removes an asset from a workbench. Removing an OWNED asset also deletes it, which needs
ORGANIZATION_PROJECTS_UPDATE and fails once a publish uses the asset.
Scope: ORGANIZATION_WORKSPACE_UPDATE.
workbenchAssetRemove(input: WorkbenchAssetRemoveInput!): WorkbenchAssetRemovePayload! @authTypes
WorkbenchAssetRelationship
"""How an asset belongs to a workbench."""
enum WorkbenchAssetRelationship {
"""
Uploaded into the workbench, which owns it. Removing it deletes the asset.
"""
OWNED
"""
Owned elsewhere, such as a design system's Markdown file. Removing it keeps the asset.
"""
IMPORTED
}WorkbenchOwner
"""The experience or design system that a workbench belongs to."""
type WorkbenchOwner {
"""The kind of owner: `"experience"` or `"design_system"`."""
type: String!
"""
The stable reference of the owner: an experience's `key`, or a design system's `id`.
"""
ref: String!
}WorkbenchAsset
"""One asset in a workbench."""
type WorkbenchAsset {
"""Whether the workbench owns the asset or imports it."""
relationship: WorkbenchAssetRelationship!
"""The path of the asset in the workbench. Null when none was given."""
path: String
"""The asset."""
asset: Asset!
"""
The design system whose file the asset is. Null unless it is an imported design system file.
"""
sourceDesignSystem: DesignSystem
}WorkbenchAssetEdge
"""A workbench asset in a page of results."""
type WorkbenchAssetEdge {
"""The cursor of this edge."""
cursor: String!
"""The workbench asset."""
node: WorkbenchAsset!
}WorkbenchAssetConnection
"""A page of workbench assets."""
type WorkbenchAssetConnection {
"""The edges in this page."""
edges: [WorkbenchAssetEdge!]!
"""The workbench assets in this page."""
nodes: [WorkbenchAsset!]!
"""Where this page sits in the list."""
pageInfo: PageInfo!
"""The number of assets in the workbench that match `relationship`."""
totalCount: Int!
}Workbench
"""
A working folder of assets for one experience or design system. It is not tied to a workspace:
every workspace of the project whose owner has the same reference shares it, duplicates included.
"""
type Workbench {
"""The ID of the workbench."""
id: ID!
"""The experience or design system the workbench belongs to."""
owner: WorkbenchOwner!
"""The assets in the workbench."""
assets(
"""The relationship to filter by. Omit it for both."""
relationship: WorkbenchAssetRelationship
first: Int
after: String
): WorkbenchAssetConnection!
}Experience (extension)
extend type Experience {
"""
The workbench of the experience, found by its `key`. Reading it creates the workbench when none
exists, and needs `ORGANIZATION_WORKSPACE_UPDATE`.
"""
workbench: Workbench!
}DesignSystem (extension)
extend type DesignSystem {
"""
The workbench of the design system. Reading it creates the workbench when none exists, and needs
`ORGANIZATION_WORKSPACE_UPDATE`.
"""
workbench: Workbench!
}WorkbenchAssetImportInput
"""The input of `workbenchAssetImport`."""
input WorkbenchAssetImportInput {
"""The ID of the workbench to import into."""
workbenchId: ID!
"""The ID of the asset to import."""
assetId: ID!
}WorkbenchAssetImportPayload
"""The result of `workbenchAssetImport`."""
type WorkbenchAssetImportPayload {
"""The imported workbench asset."""
workbenchAsset: WorkbenchAsset!
}WorkbenchAssetAdoptOwnedInput
"""The input of `workbenchAssetAdoptOwned`."""
input WorkbenchAssetAdoptOwnedInput {
"""The ID of the workbench that takes ownership."""
workbenchId: ID!
"""
The ID of the asset, in the workbench's project and not owned by another workbench.
"""
assetId: ID!
"""The path of the asset in the workbench."""
path: String
}WorkbenchAssetAdoptOwnedPayload
"""The result of `workbenchAssetAdoptOwned`."""
type WorkbenchAssetAdoptOwnedPayload {
"""The owned workbench asset."""
workbenchAsset: WorkbenchAsset!
}WorkbenchAssetRemoveInput
"""The input of `workbenchAssetRemove`."""
input WorkbenchAssetRemoveInput {
"""The ID of the workbench to remove the asset from."""
workbenchId: ID!
"""The ID of the asset to remove."""
assetId: ID!
}WorkbenchAssetRemovePayload
"""The result of `workbenchAssetRemove`."""
type WorkbenchAssetRemovePayload {
"""The ID of the removed asset."""
removedAssetId: ID!
}