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:
One of the following:
Content-Type: application/xml
Content-Type: application/json
Content-Length: {length}
Host: {PCServer}
Cookies:
LWSSO_COOKIE_KEY={LwssoCookie};
Request body:
POST: XML or JSON describing the trend report.
Element | Description |
---|---|
Name | Must be unique. |
Description | (Optional) The report description. |
Request examples:
<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 examples:
See also: