Notebooks (GraphQL)

Related queries and mutations in AI features. Each has its own section.

Queries

getNotebook (query)

getNotebook is a query in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Get a notebook by UUID

Arguments

ArgumentTypeDescription
uuidUUID!Notebook UUID

Returns

Notebook

Example

query GetNotebook($uuid: UUID!) {
  getNotebook(uuid: $uuid) {
    uuid
    name
    definition
    createdTime
    updatedTime
  }
}

Related types

Notebook, UUID

getNotebooks (query)

getNotebooks is a query in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

List all notebooks

Arguments

ArgumentTypeDescription
limitIntMax notebooks to return Default: 100.
offsetIntStarting index for pagination Default: 0.

Returns

[Notebook!]

Example

query GetNotebooks {
  getNotebooks {
    uuid
    name
    definition
    createdTime
    updatedTime
  }
}

Related types

Notebook

Mutations

createOrUpdateNotebook (mutation)

createOrUpdateNotebook is a mutation in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Create or update a notebook

Arguments

ArgumentTypeDescription
definitionJSONString!Notebook definition
nameString!Display title for the notebook
uuidUUIDUUID of existing notebook to update. Omit to create new.

Returns

CreateOrUpdateNotebook

Example

mutation CreateOrUpdateNotebook($definition: JSONString!, $name: String!) {
  createOrUpdateNotebook(definition: $definition, name: $name) {
    notebook {
      uuid
      name
      definition
      createdTime
      updatedTime
    }
  }
}

Types used only by createOrUpdateNotebook

CreateOrUpdateNotebook

Object type. Create or update a notebook

FieldTypeDescription
notebookNotebook!The created/updated notebook

Related types

JSONString, Notebook, UUID

deleteNotebook (mutation)

deleteNotebook is a mutation in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Delete a notebook

Arguments

ArgumentTypeDescription
uuidUUID!UUID of the notebook to delete

Returns

DeleteNotebook

Example

mutation DeleteNotebook($uuid: UUID!) {
  deleteNotebook(uuid: $uuid) {
    deleted
  }
}

Types used only by deleteNotebook

DeleteNotebook

Object type. Delete a notebook

FieldTypeDescription
deletedBoolean!Whether the notebook was deleted

Related types

UUID

Source: The GraphQL API reference

This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.