Skip to main content

Create a New Comparison

This Eggplant Performance Analyzer REST method creates a new comparison. You use the following URL with a POST HTTP method as described here.

URL

/analyzer/api/1.0/comparisons/create_comparison

HTTP Method

POST: Creates a new comparison.

Request Parameters

ParameterTypeDescription
namestringThe name of the new comparison.

Response Parameters

ParameterTypeDescription
comparisonstringThe URL of the newly created comparison.

Example Request

http://localhost:5000/analyzer/api/1.0/comparisons/create_comparison

POST Data
{
"name": "My Comparison"
}

Example Response

{
"comparison": "http://localhost:5000/analyzer/api/1.0/comparisons/My%20Comparison"
}