Resources (Add resource folder)
Description
Adds a resource folder.
URL
/LoadTest/rest/domains/{domainName}/projects/{projectName}/resourcefolders
Remarks
Body of the request should contain a resource folder description in xml format.
HTTP Method
POST: Creates a resource folder.
Request
Headers:
Content-Type: application/xml
Cookies:
Version 2020 (or later) | LWSSO_COOKIE_KEY={LwssoCookie}; |
Versions earlier than 2020 | LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie}; |
Request Body:
POST: An XML containing the resource folder ID.
An XML describing the host.

POST http://<LRE_Server>/LoadTest/rest/domains/{domainName}/projects/{projectName}/resourcefolders Content-Type: application/xml Cookie: LWSSO_COOKIE_KEY={LwssoCookie};
An example of a request body when using Content-Type header application/xml:
<ResourceFolder xmlns="http://www.hp.com/PC/REST/API"> <Name>Created_By_Rest</Name> <ParentFolderID>1002</ParentFolderID> <Description>blah</Description> </ResourceFolder>
The mandatory fields in the response are:
Element | Description |
---|---|
Name | Name of the resource folder. |
ParentFolderID | ID of the resource folder |
Response
Headers:
One of:
- Content-Type: application/xml
- Content-Type: application/json
Cookies:
None
HTML Return Code:
One of the HTTP Return Codes
HTML Body:
The data on the entity in the response.

<ResourceFolder xmlns="http://www.hp.com/PC/REST/API"> <Name>Created_By_Rest</Name> <ParentFolderID>1002</ParentFolderID> <Description>blah</Description> <ID>1008</ID> </ResourceFolder>
See Also
Resources (Get all resource folders)
Resources (Get resource folders by ID)
Resources (Delete resource folder)