OBJECT

addTestsToFolder

link GraphQL Schema definition

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

link Example

The mutation below will add tests to a Folder.

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