Add a Trend Report

Available in versions: 2022 R1 and later

Description

Creates a new Trend Report.

URL

Copy code
/LoadTest/rest/domains/{domainName}/projects/{projectName}/TrendReports

HTTP Method

POST: Creates a Trend Report.

Request

Headers:

Content-Length: {length}

Host: {PCServer}

Cookies:

LWSSO_COOKIE_KEY={LwssoCookie};

Request Body:

POST: An XML describing the trend report.

ElementDescription
NameMust be unique.
Description

(Optional) The report description.

Response

Headers:

Location is a response header. It holds a URL for getting the created entity.

Copy code
Header Example
Location : http://<LRE_Server>/LoadTest/rest/domains/{domainName}/projects/{projectName}/TrendReports/40

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes

Upon success, returns HTTP status 200 (OK).

HTML Body:

Returns the data on the entity in the response which includes the new ID.

Copy code

Response Example

<TrendReport xmlns=http://www.hp.com/PC/REST/API>
    <ID>40</ID>
</TrendReport>

See Also

Add run to Trend Report and get data by ID
Get Trend Reports by ID
TrendReports/{ID} XML
Get all Trend Reports
Set Trend Reports Baseline
Get or download Trend Report in XML format/file