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:

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.

ElementDescription
NameMust be unique.
Description

(Optional) The report description.

Request examples:

Copy code
XML example:
<TrendReport  xmlns="http://www.hp.com/PC/REST/API">
  <Name>trend1</Name>
  <Description>This is a description</Description>
</TrendReport>
Copy code
JSON example:
{    "Name": "lre_trend_report",
     "Description": "this is 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.

Response examples:

Copy code

XML example:

<TrendReport xmlns=http://www.hp.com/PC/REST/API>
    <ID>40</ID>
</TrendReport>
Copy code
JSON example:
{    
   "ID": 5
}

See also: