Create or update a test-case authoring draft

Saves only the current user's draft in the authenticated project, not a published case version.
Creates a draft when expectedRevision is omitted or null. Send the current revision to update an existing draft.
The case must be Cloud and manual-like; testProjectId must match its repository.
Requires the TestCase:Update permission.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
int64
required

Test-case ID.

Body Params
integer
enum
required
≥ 1

Draft schema version.

Allowed:
int64
required

Test repository ID that contains the case.

integer | null
≥ 1
int64 | null
≥ 1

Omit to create a draft; send the current revision to update it.

draftContent
object
required
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