Skip to main content

POST Add Test Case Type

This API creates a new Test Case type that can be associated with test cases

Updated over a month ago

API Endpoint


{{apiUrl}}/api/v1/category/caseType

Headers


To authenticate the API request, you need to provide the Vansah Connect Token that is generated from the Jira workspace's Vansah configuration page.

Authorization

{{vansahConnectToken}}


Generate a Token from Vansah

Request Body


  • name (String, Required):

    • Provide your Test Case Type name for your Vansah project.

    • Example: "Regression"

  • project (Object, Required):

    • key (String, Required): Provide your Jira Project Key.

    • Example: "DEMO"

Example Request Body


{

"name": "Regression",

"project": {

"key": "DEMO"

}

}

Response Body


  • success (Boolean, Required):

    • Indicates whether the request was successful.

    • Example: true

  • message (String, Required):

    • A message describing the result of the request.

    • Example: "Case Type is saved successfully"

  • data (Object, Required):

    • Contains the details of the new Test Case type.

    • name (String, Required): The name of the Test Case type.

    • Example: "Unit"

    • identifier (String, Required): The unique identifier for the Test Case type.

    • Example: "0ae0b3be-f331-11ef-baf9-5a0ced9d1480"

Example Response Body


{

"success": true,

"message": "Case Type is saved successfully",

"data": {

"identifier": "0ae0b3be-f331-11ef-baf9-5a0ced9d1480",

"name": "Unit"

}

}

Did this answer your question?