Skip to main content
POST
/
organizations
/
{organizationName}
/
workspaces
/
{workspaceName}
/
documents
{
  "path": "<string>",
  "content": "<string>",
  "type": "workbook",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Path Parameters

organizationName
string
required

The unique identifier of the organization

workspaceName
string
required

The unique identifier of the workspace

Query Parameters

overwrite
boolean

If true, the document will be overwritten if it already exists

Body

application/json

Represents a document within a workspace, such as a workbook or dashboard

path
string

The file path of the document within the workspace

content
string

The content of the document, typically Malloy code or configuration

type
enum<string>

The type of document, determining its purpose and behavior

Available options:
workbook,
dashboard
createdAt
string<date-time>

ISO 8601 timestamp indicating when the document was created

updatedAt
string<date-time>

ISO 8601 timestamp indicating when the document was last modified

Response

Document created successfully

Represents a document within a workspace, such as a workbook or dashboard

path
string

The file path of the document within the workspace

content
string

The content of the document, typically Malloy code or configuration

type
enum<string>

The type of document, determining its purpose and behavior

Available options:
workbook,
dashboard
createdAt
string<date-time>

ISO 8601 timestamp indicating when the document was created

updatedAt
string<date-time>

ISO 8601 timestamp indicating when the document was last modified

I