API: Priorities - TestRail

API: Priorities

Use the following API methods to request details about priorities.

On this page:

    get_priorities

    Returns a list of available priorities.

    GET index.php?/api/v2/get_priorities

    Response content

    The response include an array of priorities. Each priority has a unique ID, a name and a short version of the name. The priority field determines the order of the priorities. The is_default field is true for the default priority and false otherwise.

    [
    	{
    		"id": 1,
    		"is_default": false,
    		"name": "1 - Don't Test",
    		"priority": 1,
    		"short_name": "1 - Don't"
    	},
    	..
    	{
    		"id": 4,
    		"is_default": true,
    		"name": "4 - Must Test",
    		"priority": 4,
    		"short_name": "4 - Must"
    	},
    	..
    ]
    

    Response codes

    Status Code Description
    200 Success (the available priorities are returned as part of the response)