← All types
Apps & SurfacesIn Input object

UpdateWorkspaceInput

Input for updating a workspace. Only provided fields are changed.

Fields

Observed authoring revision; required by IaC source updates.

source

StringOptional

Author-owned cococo-workspace-source/1 JSON envelope containing sourceXML and serverLua. Compilation and AST are server-owned; read back source for IaC comparison.

New distribution scope. Omit to keep the current one. Moving a workspace to (or away from) TEAM/INSTANCE requires workspace:write.

Possible values (3)
PERSONAL

Owned by one user and visible only to them. Self-service: authoring it needs workspace:personal rather than workspace:write, and workspace:write is not a backdoor into someone else's personal workspace.

TEAM

Offered to the members of the teams it is assigned to; at least one team is required. Authoring it needs workspace:write.

INSTANCE

Offered to everyone in the tenant whose permissions cover its requiredDomains. The default scope when none is given; authoring it needs workspace:write.

teamIds

[TeamID!]Optional

Replacement team assignments (TypeIDs, prefix tea) for a TEAM-scoped workspace. Unlike upsertWorkspace, omitting it keeps the current assignments.

Referenced by (2)
Exact type SDL
"""Input for updating a workspace. Only provided fields are changed."""
input UpdateWorkspaceInput {
  """Observed authoring revision; required by IaC source updates."""
  expectedRevision: String
  """
  Author-owned cococo-workspace-source/1 JSON envelope containing sourceXML and serverLua. Compilation and AST are server-owned; read back source for IaC comparison.
  """
  source: String
  """
  New distribution scope. Omit to keep the current one. Moving a workspace to (or away from) TEAM/INSTANCE requires workspace:write.
  """
  scope: WorkspaceScope
  """
  Replacement team assignments (TypeIDs, prefix `tea`) for a TEAM-scoped workspace. Unlike `upsertWorkspace`, omitting it keeps the current assignments.
  """
  teamIds: [TeamID!]
}