Returns information on folders of the specified entity.
Use the operation to return a list of folders that the specified entity (Defects, Tests and so on) has in the specified project.
Basic authentication using a user’s login and password. See Authentication for details.
The authenticating user must have the Read privilege for the needed entity.
To get information on folders, send a GET request to the following URL:
ProjectId : integer, required
The ID of the needed project.
EntityCode : string, required
The type of the item, whose folders you want to get. Possible values:
- Bugs (defects)
- FunctionalSpecs (requirements)
filter : string
The filter expression to apply to the returned list. See Search Filters.
A sample request:
GET http://yourserver.com/rest-api/service/api/v2/projects/11873/Bugs/folders HTTP/1.1
Authorization: Basic am9obkBleGFtcGxlLmNvbTpwQHNzd29yZA==
A sample request made by using cURL:
curl -u email@example.com:p@ssword -H "Accept: application/json" http://yourserver.com/service/api/v2/projects/11873/Bugs/folders
If successful, the operation responds with HTTP status code 200 and returns a JSON object with the folders information.
A sample response:
HTTP/1.1 200 OK
"folder_name": "version 11",
"full_folder_name": "version 11",
"updated_user_name": "Smith, John",
"created_user_name": "Smith, John"
"folder_name": "build 2",
"full_folder_name": "version 11/build 2",
"updated_user_name": "Mann, Porter",
"created_user_name": "Franco, Cole"
Metadata about the folder list.
Pagination information about the folder list. (See Paging Through Results Using Offset and Limit).
The number of returned folders.
The offset of the first folder requested.
The maximum number of folders requested.
The total number of folders.
An array of folders.
The authenticating user’s rights to access folders.
- 0 - None
- 1 - Read
- 2 - Update
- 3 - Read and update
- 4 - Delete
- 5 - Read and delete
- 7 - Full access
The department ID of the project.
The department name.
The project name.
The unique identifier of the project.
The unique identifier of the folder.
The ID of the last user who updated the folder.
The ID of the user who owns the folder.
The date and time when the folder was created.
The date and time when the folder was last updated.
True if the folder is active and False if the folder is hidden.
The name of the last user, who updated the folder, in the Lastname, Firstname format.
The name of the user, who created the folder, in the Lastname, Firstname format.
The ID of the folder in which the current folder resides.
The name of the folder.
The name of the folder with its full path.
If the operation fails, it returns the appropriate status code and (optionally) the error description in the response body.
If the project with the specified ProjectId does not exist or the authenticating user does not have rights to access the project, the operation returns the
Access is denied error.
If the specified entity does not exist, the operation returns the 'Invalid entity code' error.