Request

Response

    Mutations

    createFolder

    mutation

    Create folder in a project or a sub-folder.

    Template for Query:

    mutation CreateFolder($input: createFolderInput!){
      createFolder(input: $input) {
        #CreateFolder Fields
      }
    }
    

    Template for Query Variables:

    {
      "input" : "<SOME-CREATEFOLDER-INPUT-TYPE-SCALAR-VALUE>"
    }
    
    Was this section useful?


    Arguments

    input*Input object for creating a folder.
    * Required

    Possible Returns

    Value TypeDescription
    CreateFolderPayload Return payload for create folder operation.
    Was this section useful?


    Examples

    Example 1

    Creates a folder within the project.

    Query:

     mutation CreateProjectFolder($input: CreateFolderInput!) {
       createFolder(input: $input) {
           folder {
               id
           }
       }
    }
    

    Query Variables:

    {
       "input": {
           "projectId": "urn:adsk.workspace:beta.project:08570370-984f-4d59-b722-ecc3de7d8c08",
           "name": "ProjectFolder1725880655716"
       }
    }
    

    Response:

    {
       "data": {
           "createFolder": {
               "folder": {
                   "id": "urn:adsk.wipstg:fs.folder:co.ZALshZr7RfOhPJI_XND-5A"
               }
           }
       }
    }
    
    Show More

    Example 2

    Creates a subfolder within a folder.

    Query:

     mutation CreateSubfolder($input: CreateFolderInput!) {
       createFolder(input: $input) {
           folder {
               id
           }
       }
    }
    

    Query Variables:

    {
       "input": {
           "parentFolderId":"urn:adsk.wipstg:fs.folder:co.GE0Na8YhRECnLeeuUnWjbg",
           "projectId": "urn:adsk.workspace:beta.project:a69a9462-c5a1-4525-927a-e6d088573529",
           "name": "SubFolder1725880670710"
       }
    }
    

    Response:

    {
       "data": {
           "createFolder": {
               "folder": {
                   "id": "urn:adsk.wipstg:fs.folder:co.GYF9-KvgRj-jN3XrrSWiIw"
               }
           }
       }
    }
    
    Show More
    Was this section useful?