Moving document to a folder

How to move a document to a folder

To move a document to a folder, use the following mutation:

mutation {
  moveDocumentToFolder(
    document_id: "DOCUMENT_ID",
    folder_id: "FOLDER_DESTINATION_ID"
  )
}

And finally, testing this mutation in Altairarrow-up-right:

If your document is already in a folder, you need to provide the parameter corresponding to its current folder using the current_folder_id attribute.

If you need to file a document into a group or organization folder, you'll also need to use the context attribute.

Lastly, to remove a document from a folder, set folder_id to null.

circle-info

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

circle-info

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/arrow-up-right

Para importar e usar no Postman

Last updated