Mutations
createFolder
Create folder in a project or a sub-folder.
Template for Mutation:
mutation CreateFolder($input: createFolderInput!){
createFolder(input: $input) {
# CreateFolderPayload Fields
}
}
Arguments
| input* createFolderInput non-null | Input object for creating a folder. |
* Required
Possible Returns
| Value Type | Description |
|---|---|
| CreateFolderPayload | Return payload for create folder operation. |
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:e0b62c50-ed1d-4322-a951-a05e2d75845a",
"name": "ProjectFolder1793373207278"
}
}
Response:
{
"data": {
"createFolder": {
"folder": {
"id": "urn:adsk.wipstg:fs.folder:co.ANUSmTc1QTaSEzp3FB8iag"
}
}
}
}
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.ANUSmTc1QTaSEzp3FB8iag",
"projectId": "urn:adsk.workspace:beta.project:e0b62c50-ed1d-4322-a951-a05e2d75845a",
"name": "SubFolder1793373220483"
}
}
Response:
{
"data": {
"createFolder": {
"folder": {
"id": "urn:adsk.wipstg:fs.folder:co.b8KyrJa_QSWaiEermKHIKw"
}
}
}
}
Show More