Skip to main content
POST
/
organizations
/
{organizationName}
/
workspaces
/
{workspaceName}
/
documents
Error
A valid request URL is required to generate request examples
{
  "path": "<string>",
  "content": "<string>",
  "type": "workbook",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationName
string
required

The unique identifier of the organization Standard identifier pattern for resource names

Pattern: ^[a-zA-Z0-9_-]+$
workspaceName
string
required

The unique identifier of the workspace Standard identifier pattern for resource names

Pattern: ^[a-zA-Z0-9_-]+$

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

Pattern: ^[a-zA-Z0-9_/.-]+$
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

Pattern: ^[a-zA-Z0-9_/.-]+$
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