OBJECT

createFolder

link GraphQL Schema definition

1Mutation createFolder {
2
3# Mutation used to create a new Folder.
4#
5#
6# Arguments
7# projectId: the project id of the Folder.
8# testPlanId: the Test Plan id of the Folder.
9# path: the path of the Folder.
10# testIssueIds: the Test ids to add to the Folder.
11createFolder(projectId: String, testPlanId: String, path: String!, testIssueIds: [String]): ActionFolderResult
12
13}

link Example

The mutation below will create a new Folder.

mutation {
    createFolder(
        projectId: "10000",
        path: "/generic"
    ) {
        folder {
            name
            path
            testsCount
        }
        warnings
    }
}

The mutation below will create a new Folder and add tests to it.

mutation {
    createFolder(
        projectId: "10000",
        path: "/generic",
        testIssueIds: ["10002","12324","12345"]
    ) {
        folder {
            name
            path
            testsCount
        }
        warnings
    }
}