API for Project, Release, Cycle, Build, Platforms

Get Info Service

GET /rest/admin/project/getinfo

Description

This API returns all the information of the project like scope, types of -bugs, license details, etc.

Request

Content-Type: application/json

Parameters

Name

Located in

Required

Description

Default

Schema

Name

Located in

Required

Description

Default

Schema

project

header

yes

Project or scope Id/Key/Name

-

string

apiKey

header

yes

Open API key generated in Integration > Open API in QTM.

-

string

Content-Type

header

yes

Enter value “application/json”.

-

string

 

Response

Content-Type: application/json

Status Code

Reason

Response Model

Status Code

Reason

Response Model

200

Successful operation.

ResponseEntity

400

Returned if no project exists or project/release/cycle is archived

-

500

Returned if there is an error in server

-

Get List of All Projects

POST /rest/admin/project/list

Request

Content-Type: application/json

Parameters

Name

Located in

Required

Description

Default

Schema

Name

Located in

Required

Description

Default

Schema

start

body

yes

Start index of records

-

integer

limit

body

yes

Number of records per page

-

integer

page

body

yes

Page number to be displayed

-

integer

params

body

yes

Parameters

-

Param2

Response

Content-Type: application/json

Status Code

Reason

Response Model

Status Code

Reason

Response Model

200

List of projects shown successfully

ResponseEntityString

400

Invalid json object or mandatory fields missing

-

401

Unauthorised or session expired

-

500

Returned when server connection times out

-

Get List of Releases and Cycles and their metadata

POST /rest/admin/scope/tree

Request

Content-Type: application/json

Parameters

Name

Located in

Required

Description

Default

Schema

Name

Located in

Required

Description

Default

Schema

currentProjectFlag

body

no

Send true when project whose releases meta-data is to be fetched is same as the project in context

-

boolean

showArchive

body

no

Send false to get only unarchived Releases, defaulted to false

-

boolean

qmProjectID

body

yes

Unique identifier of project whose data is to be obtained

-

integer

Response

Content-Type: application/json

Status Code

Reason

Response Model

Status Code

Reason

Response Model

200

Release meta-data fetched successfully

ResponseEntity

400

Invalid json object or mandatory fields missing

-

401

Unauthorised or session expired

-

500

Returned when server connection times out

-

Create Project

POST /rest/admin/project

Request

Content-Type: application/json

Parameters

Name

Located in

Required

Description

Default

Schema

Name

Located in

Required

Description

Default

Schema

project

body

yes

Check project parameters

-

ProjectParameters

release

body

yes

Check release parameters

-

ReleaseParams

cycle

body

yes

Check cycle parameters

-

Cycle

addLdapUser

body

yes

Set true to allow addition of LDAP users in the project

-

boolean

Response

Content-Type: application/json

Status Code

Reason

Response Model

Status Code

Reason

Response Model

200

Project successfully added

ResponseEntity

400

Invalid json object or mandatory fields missing

-

401

Unauthorised or session expired

-

500

Returned when server connection times out

-

Clone Project

POST /rest/admin/project/clone

Description

API to clone project

Request

Content-Type: application/json

Parameters

Name

Located in

Required

Description

Default

Schema

Name

Located in

Required

Description

Default

Schema

Projectkey

body

yes

The unique project key of new project

-

string

clone

body

yes

Type of clone:- 0 - to clone only the folder structure, along with any releases and cycles & 1 - to clone Project meta-data, Requirements, Test Cases, Test Suites and Issues

-

string

name

body

yes

Name of the project to be cloned

-

string

newProject

body

yes

Name of the new project

-

string

projectID

body

yes

The unique identifier by which to identify the cloned project.

-

string

apiKey

header

yes

Open API key generated in Integration > Open API in QTM.

-

string

scope

header

yes

Project or scope Id/Key/Name

-

string

Response

Content-Type: application/json

Status Code

Reason

Response Model

Status Code

Reason

Response Model

200

Project clone initiated

ResponseEntity

400

Invalid json object or mandatory fields missing

-

401

Unauthorised or session expired

-

500

Returned when server connection times out

-

Archive Project

PUT /rest/admin/project/archive

Request

Content-Type: application/json

Parameters

Name

Located in

Required

Description

Default

Schema

Name

Located in

Required

Description

Default

Schema

projectID

body

yes

Unique identifier of projects to archive

-

Array[integer]

apiKey

header

yes

Open API key generated in Integration > Open API in QTM.

-

string

scope

header

yes

Project or scope Id/Key/Name

-

string

Response

Content-Type: application/json

Status Code

Reason

Response Model

Status Code

Reason

Response Model

200

Project successfully archived