Share this page

# 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.

Element | Description
--- | ---
Name | Must 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:

- Add run to trend report and get data by ID
- Get trend report by ID
- TrendReports/{ID} XML
- Get all trend reports
- Set trend reports baseline
- Get or download trend report in XML format/file

Tips to improve your search results... OpenText™ Enterprise Performance Engineering API Reference OpenText™ Enterprise Performance Engineering All View Local Help Center View Online Help Center(Undefined variable: _rscC_Basic_Variables.VersionLabel)