API: Case Types - TestRail

API: Case Types

Use the following API methods to request details about case type.

On this page:

    get_case_types

    Returns a list of available case types.

    GET index.php?/api/v2/get_case_types

    Response content

    The response includes an array of test case types. Each case type has a unique ID and a name. The is_default field is true for the default case type and false otherwise.

    [
    	{
    		"id": 1,
    		"is_default": false,
    		"name": "Automated"
    	},
    	{
    		"id": 2,
    		"is_default": false,
    		"name": "Functionality"
    	},
    	{
    		"id": 6,
    		"is_default": true,
    		"name": "Other"
    	},
    	..
    ]
    

    Response codes

    Status Code Description
    200 Success (the case types are returned as part of the response)