Add a Trend Report
Available in versions: 2022 R1 and later
Description
Creates a new Trend Report.
URL
/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.
Element | Description |
---|---|
Name | Must be unique. |
Description | (Optional) The report description. |

<TrendReport xmlns="http://www.hp.com/PC/REST/API">
<Name>trend1</Name>
<Description>This is a description</Description>
</TrendReport>
Response
Headers:
Location is a response header. It holds a URL for getting the created entity.
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.
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