Apps & SurfacesMu Mutation

publishWorkspace

Topics: Surfaces

Promote a named draft version of a workspace to the live published version. Other open drafts are left untouched. Owner for PERSONAL, else workspace:write.

Returns

WorkspacePayload!

Arguments

id

WorkspaceID!Required

TypeID of the workspace to publish (prefix wks).

TypeID of the draft version to promote (prefix wsv). Fails with a field error when the version is unknown, belongs to another workspace, or is not an open draft.

Exact field SDL
"""
Promote a named draft version of a workspace to the live published version. Other open drafts are left untouched. Owner for PERSONAL, else workspace:write.
"""
publishWorkspace(
  """TypeID of the workspace to publish (prefix `wks`)."""
  id: WorkspaceID!
  """
  TypeID of the draft version to promote (prefix `wsv`). Fails with a field error when the version is unknown, belongs to another workspace, or is not an open draft.
  """
  versionId: WorkspaceVersionID!
): WorkspacePayload! @topic(names: ["surfaces"])

Declared on Mutation. Access is checked by the platform for each operation.