Mutations
copyFolder
Copy a folder from a project or folder to another project or folder.
Template for Mutation:
mutation CopyFolder($input: copyFolderInput!){
copyFolder(input: $input) {
# CopyFolderPayload Fields
}
}
Arguments
| input* copyFolderInput non-null | Input object for copying a folder. |
* Required
Possible Returns
| Value Type | Description |
|---|---|
| CopyFolderPayload | Return payload on copy folder operation. |
Examples
Example 1
Copy Folder into project.
Query:
mutation copyFolder($input: CopyFolderInput!) {
copyFolder(input: $input) {
folder {
id
name
}
}
}
Show More
Query Variables:
{
"input": {
"sourceFolderId": "urn:adsk.wipstg:fs.folder:co.b8KyrJa_QSWaiEermKHIKw",
"destinationProjectId": "urn:adsk.workspace:beta.project:e0b62c50-ed1d-4322-a951-a05e2d75845a"
}
}
Response:
{
"data": {
"copyFolder": {
"folder": {
"id": "urn:adsk.wipstg:fs.folder:co.pwJ78JT8TeyIVgDhfWGaLQ",
"name": "SubFolder1793373220483"
}
}
}
}
Show More
Example 2
Copy Folder into another folder.
Query:
mutation copyFolder($input: CopyFolderInput!) {
copyFolder(input: $input) {
folder {
id
name
}
}
}
Show More
Query Variables:
{
"input": {
"sourceFolderId": "urn:adsk.wipstg:fs.folder:co.b8KyrJa_QSWaiEermKHIKw",
"destinationProjectId": "urn:adsk.workspace:beta.project:e0b62c50-ed1d-4322-a951-a05e2d75845a",
"destinationFolderId": "urn:adsk.wipstg:fs.folder:co.ANUSmTc1QTaSEzp3FB8iag"
}
}
Response:
{
"data": {
"copyFolder": null
},
"errors": [
{
"message": "Sorry. The operation you requested couldn't be performed.",
"locations": [
{
"line": 1,
"column": 78
}
],
"path": [
"copyFolder"
],
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"correlation_id": "32f495de-bf0f-4a59-91cc-e8cb9d10520f",
"errorType": "UNKNOWN",
"service": "mfgdm-project-management"
}
}
]
}
Show More