Create, update, move, or delete test assets

Creates, updates, moves, or deletes test cases, test suites, and folders.
Send an array of repository objects, each with at most 20 testEntities.
Set testProjectId explicitly. If you omit it, the default Cloud
repository is selected or created.

ResourceActiondata fieldsPermission
TEST_CASECREATEname; parent path (blank defaults to Test Cases)TestCase:Create
TEST_CASEUPDATEid and the fields to changeTestCase:Update
TEST_CASERENAMEid, new nameTestCase:Update
TEST_CASEMOVEid, destination parent pathTestCase:Update
TEST_CASEDUPLICATEidTestCase:Create
TEST_CASEDELETEidTestCase:Delete
TEST_SUITECREATEname, parent pathTestSuite:Create
TEST_SUITEUPDATEid, complete testSuiteItems listTestSuite:Update
TEST_SUITEADD_TEST_CASESid, testSuiteItems to addTestSuite:Update
TEST_SUITERENAMEid, new nameTestSuite:Update
TEST_SUITEMOVEid, destination parent pathTestSuite:Update
TEST_SUITEDUPLICATEidTestSuite:Create
TEST_SUITEDELETEidTestSuite:Delete
TEST_FOLDERCREATEcomplete new folder path; testFolderTypeCreate permission of the folder type
TEST_FOLDERRENAMEid, new nameUpdate permission of the folder type
TEST_FOLDERMOVEid, complete destination path, including the folder nameUpdate permission of the folder type
TEST_FOLDERDUPLICATEidCreate permission of the folder type
TEST_FOLDERDELETEidDelete permission of the folder type

New cases default to status PUBLISHED and priority MEDIUM. New
manual cases default to automation status TO_BE_ASSESSED. Case
UPDATE changes only the fields you send; omitted manual content stays.

Suite UPDATE replaces the membership with testSuiteItems. Send the
complete list, or [] to remove all members. It does not rename the
suite. To add members without replacing the list, use ADD_TEST_CASES.
testCaseIds is the older, version-unaware alternative.

To set custom-field values, send data.customizableFields on a case
UPDATE after you create the case. CREATE does not save them. Use the
Admin definition ID and option UUID, not a numeric option ID. The
definitions must first be replicated from Admin. An empty outer list
changes nothing; values: [] clears that field. Custom-field values you
set here are not returned by Get a test case. Read them with
List custom-field values. See the
custom-field guide.

DELETE can affect linked assets. A deleted suite can remain available
as historical execution data. Folder rename, move, and delete affect
descendants. Suite-folder changes other than creation need an eligible
Cloud repository and the feature enabled for your organization. You
cannot change the root Test Suites folder.

With async=false, the response returns each created asset's ID in
testEntities[].data.id. With async=true, the response can contain a
task (taskResource) instead of completed changes. A 200 response does
not mean repository files have finished publishing.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
boolean
Defaults to false

Queue the change instead of processing it in the request.

string
enum

Repository publication strategy. Use NORMAL for routine changes. FORCE_PUSH and SPLIT_BRANCH can change branch history.

Allowed:
Body Params
Headers
string

Optional account UUID for selecting account context explicitly.

int64

Optional organization ID for selecting organization context explicitly.

int64
required

True Platform project ID, not a repository ID.

Responses

401

Authentication is missing or invalid.

403

The caller lacks access or the required permission.

404

The requested asset was not found. Some inaccessible or deleted assets can instead return 400 or 403.

default

The request could not be completed. Inspect the response before retrying a mutation.

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Choose an example:
application/json