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

## HTTP method

POST: Sets the trend baseline ID.

## Request

Headers:

One of the following:

- Content-Type: application/xml

- Content-Type: application/json

Cookies:

Version | Cookie
--- | ---
2020 or later | LWSSO_COOKIE_KEY={LwssoCookie};
Earlier than 2020 | LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie};

Request body:

XML or JSON describing the run wanted as the baseline.

Request examples:

Copy code
XML example:

    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>

Copy code
JSON example:

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

    {
         "RunID": 13
    }

## Response

Headers:

Content-Type: application/xml

Cookies:

None

HTML return code:

One of the HTTP return codes

HTML body:

None

See also:

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