Open topic with navigation

# TrendReports/{ID}/data

## Description

Returns a trend report in PDF format by the specified trend report ID.

## URL

    /LoadTest/rest/domains/{domainName}/projects/{projectName}/TrendReports/{ID}/data

## Remarks

The PDF report generated by the API is hard-coded and cannot be configured by the user.

## HTTP Method

GET: Returns a trend report in PDF format.

## Request

Headers:

Content-Length: {length}

Host: {PCServer}

Cookies:

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

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

Request Body:

None

## Response

Headers:

None

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes

Upon success, returns HTTP status 200 (OK).

HTML Body:

Upon success, the response will contain the following information:

- The response header Content-Disposition contains the file name in the filename field’s value.
- The body of the request will contain the zipped file data.

Response Example

The following is an example of a response that was captured in proxy: (without the response body that contains the file stream):

    HTTP/1.1 200 OK
    Cache-Control: no-cache
    Pragma: no-cache
    Content-Length: 175211
    Content-Type: application/pdf
    Expires: -1
    Content-Disposition: attachment; filename=Trend1.pdf
    Date: Wed, 25 Nov 2015 16:43:08 GMT

## See Also

TrendReports/{ID}
TrendReports/{ID} XML
TrendReports (Get all Trend Reports)
TrendReports (Set Trend Reports Baseline)
TrendReports (Get Trend Report in XML format)