Create document
Creates a new document within the workspace (the {workspaceName} in the path is the
destination), such as a workbook or dashboard.
Authorization: Requires workspace manager or editor permissions.
Parameters: Use overwrite to replace existing documents with the same path.
Content: Supports Malloy code, configuration, and other document types.
Relocating an existing document: Set moveFrom to the credible:// URI of a
document in another workspace to atomically relocate it into this workspace instead of
creating from the request body. The source document is deleted, its content/metadata are
transplanted under the same path here, and chat/report bookmarks are re-pointed. The
request body is ignored in this mode. The destination workspace must be a shared (Group)
workspace and must already have every package the source document references — the
endpoint deliberately does NOT silently attach packages (that would be a backdoor for
granting package read access). Returns 400 if a required package is missing; attach it
via the package-permission endpoints first and retry.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier of the organization Standard identifier pattern for resource names
^[a-zA-Z0-9_ -]+$The unique identifier of the destination workspace
Workspace name pattern. Allows any character except / (would split the FGA resource path — see ResourceIdentifier.parseFromFga) and * (FGA wildcard). 1-63 chars.
^(?!.*\*)(?!.*[/]).{1,63}$Query Parameters
If true, the document will be overwritten if it already exists
Optional credible:// URI of a source document to relocate into this workspace (e.g. credible://workspaces/{sourceWorkspace}/documents/{sourcePath}). When set, the source document is moved here under the same path and the request body is ignored. Only data chats and reports may be moved. Not constrained by ResourceIdentifierPattern: the embedded workspace name and document path allow spaces and punctuation (see WorkspaceNamePattern / DocumentPathPattern). The URI is structurally validated by the server (parsed into workspace + document path) and the move is authorized against the resolved source document.
512Body
Represents a document within a workspace, such as a workbook or dashboard
The file path of the document within the workspace
255^(?!.*\.\.)[a-zA-Z0-9_/. \-&:,'+?!()$^–—]+$The content of the document, typically Malloy code or configuration
The type of document, determining its purpose and behavior
workbook, dashboard, modeling_chat, data_chat, agent_report, agent_modeling_file, agent_html_report, draft_agent_html_report, draft_agent_report, draft_package, model_summary ISO 8601 timestamp indicating when the document was created
ISO 8601 timestamp indicating when the document was last modified
The userId of the user who last modified this document
Optional JSON metadata associated with the document (e.g. title, tags)
Response
Document created (or relocated) successfully
Represents a document within a workspace, such as a workbook or dashboard
The file path of the document within the workspace
255^(?!.*\.\.)[a-zA-Z0-9_/. \-&:,'+?!()$^–—]+$The content of the document, typically Malloy code or configuration
The type of document, determining its purpose and behavior
workbook, dashboard, modeling_chat, data_chat, agent_report, agent_modeling_file, agent_html_report, draft_agent_html_report, draft_agent_report, draft_package, model_summary ISO 8601 timestamp indicating when the document was created
ISO 8601 timestamp indicating when the document was last modified
The userId of the user who last modified this document
Optional JSON metadata associated with the document (e.g. title, tags)