CreateWorkspaceInput
Input for creating a workspace.
Fields
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.
Possible values (3)
PERSONALOwned 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.
TEAMOffered to the members of the teams it is assigned to; at least one team is required. Authoring it needs workspace:write.
INSTANCEOffered to everyone in the tenant whose permissions cover its requiredDomains. The default scope when none is given; authoring it needs workspace:write.
TypeIDs (prefix tea) of the teams to assign; ignored unless scope is TEAM, in which case at least one existing team is required.
Referenced by (1)
Exact type 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!]
}