Share this page

# Returns or deletes a script by ID

## Description

Returns or deletes a script by the specified script or zip ID.

## URL

Copy code
Script ID:

    /LoadTest/rest/domains/{domainName}/projects/{projectName}/scripts/{ID}

Copy code
Zip ID:

    /LoadTest/rest/domains/{domainName}/projects/{projectName}/scripts/{ID}/zip

## Remarks

None

## HTTP method

GET: `scripts/{ID}` returns the script metadata. `scripts/{ID}/zip` returns the zip archive of the script.

DELETE: Deletes the script.

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

- GET: No request body.

- DELETE: No request body.

Request example:

Copy code

    GET http://<LRE_Server>/LoadTest/rest/domains/TEST_DOMAIN/projects/TEST_PROJECT/scripts/125
    Content-Type: application/xml
    Cookie: LWSSO_COOKIE_KEY={LwssoCookie};

## Response

Headers:

One of:

- Accept: application/xml

- Accept: application/json

Cookies:

None

HTML return code:

One of the HTTP return codes

HTML body:

- GET: Returns the data on the entity in the script entity XML or equivalent JSON string.

- DELETE: No body returned.

See also:

- Upload or retrieve scripts
- Create a test

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)