Share this page

# Set Trend Reports Baseline

Available in versions: 12.55 and later

## Description

Sets the baseline for a trend report.

## URL

Copy code

    /LoadTest/rest/domains/{domainName}/projects/{projectName}/TrendReports/{TrendID}/baselineid

## Remarks

None

## HTTP Method

POST: Sets the trend baseline ID.

## Request

Headers:

Accept: application/xml

Cookies:

- Version 2020 (or later): LWSSO_COOKIE_KEY={LwssoCookie};

- Versions earlier than 2020: LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie};

Request Body:

No request body.

Request Example
Copy code

    POST http://<LRE_Server>/LoadTest/rest/domains/MyDomain/projects/MyProject/TrendReports/5/baselineid
    Content-Type: application/xml
    Cookie: LWSSO_COOKIE_KEY={LwssoCookie};

    <TrendBaseLine xmlns="http://www.hp.com/PC/REST/API">
        <RunID>6</RunID>
    </TrendBaseLine>

## Response

Headers:

Content-Type: application/xml

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes

HTML Body:

An XML describing the Baseline ID or equivalent JSON format. See Request Example.

## See Also

Add a Trend Report
Add run to Trend Report and get data by ID
Get Trend Reports by ID
TrendReports/{ID} XML
Get all Trend Reports
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)