Test Cases

Create a case directory

Create a folder for test cases. parentPath nests it, and any missing parent folders are created too. The name and each parent segment are trimmed, must not be empty or contain / or control characters, and are at most 255 characters; the full path is at most 1000 characters. Names are case-sensitive.

Creating a path that already exists is not an error: the existing folder is returned with created: false and status 200, so a script can safely run again. A new folder returns created: true and status 201.

post/api/directories

Request

Request body

projectIdstring uuid required

ID of the workspace to create the folder in.

namestring required

Folder name. Must not contain / or control characters.

parentPathstring

Parent folder path, such as /Regression or Regression/Login. Omit it (or pass /) to create the folder at the workspace root.

Response

The folder already existed and is returned unchanged.

successboolean required
directoryIdstring uuid required

Use as directoryId on POST /api/cases.

pathstring required

The folder's normalized full path.

createdboolean required

false when the folder already existed.

Example response

{
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.