For the complete documentation index, see llms.txt. This page is also available as Markdown.

Creating folders

How to create a folder or shared folder with the organization

Creating a folder

The mutation to create a folder in the authenticated user’s account (owner of the API token) is:

mutation CreateFolderMutation($parentId: UUID, $folder: FolderInput!) {
  createFolder(parent_id: $parentId, folder: $folder) {
    id
    name
    type
    created_at
    parentFolder {
      id
      name
    }
  }
}

Define the variable values:

{
  "parentId": "abc123",
  "folder": {
    "name": "Signed document"
  }
}

The field parentId is optional. If omitted, the folder will be created at the root level. To create a subfolder, provide the UUID of its parent folder.

If you want to create a document inside a folder, use the folder_id attribute when creating the document. If your goal is to add an existing document to another folder that has already been created, see how to move a document to a folder.

Renaming a folder

Use updateFolder to rename an existing folder.

Variables.

You can check what each of these parameters means directly in the full GraphQL API documentation, in the Docs menu of Altair. If you're not sure how to do that, check out our tutorial on Using Altair.

If Altair doesn't help you integrate with the API, check out some examples of how to make these requests in other ways: https://graphql.org/graphql-js/graphql-clients/

Para importar e usar no Postman

Last updated