← API reference
CANONICAL TYPE REFERENCE

CreateWorkspaceInput

Input for creating a workspace.

sourceString!

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

Distribution scope for the new workspace. Defaults to INSTANCE when omitted. TEAM/INSTANCE require workspace:write; PERSONAL (owned by the caller) is self-service.

TypeIDs (prefix tea) of the teams to assign; ignored unless scope is TEAM, in which case at least one existing team is required.

View exact SDL
"""Input for creating a workspace."""
input CreateWorkspaceInput {
  """
  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!
  """
  Distribution scope for the new workspace. Defaults to INSTANCE when omitted. TEAM/INSTANCE require workspace:write; PERSONAL (owned by the caller) is self-service.
  """
  scope: WorkspaceScope
  """
  TypeIDs (prefix `tea`) of the teams to assign; ignored unless `scope` is TEAM, in which case at least one existing team is required.
  """
  teamIds: [TeamID!]
}

One stable address across all schema views. Follow a field’s type to explore connections between domains.