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:

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.

Request Example
Copy code

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

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

Tips to improve your search results... LoadRunner Enterprise REST API Reference LRE REST API All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic(Undefined variable: _rscC_Basic_Variables.VersionLabel)