Skip to Content
Endpoints

Configurations

How to manage the configurations test runs target using the public API

Configurations are the environments a test run targets, such as a browser or a device. A run takes one through configurationId (see Create New Run).

Configuration Object

{
  id: string           // Configuration ID, as runs take it
  title: string        // Title of the configuration (e.g. Chrome)
  createdAt: datetime  // Creation time
  updatedAt: datetime  // Last update time
  runCount?: number    // Number of runs using it: always in Get, Create and Update Configuration; in List Configurations only with include=runCount; never in runs and test plans
}

List Configurations

GET/api/public/v0/project/{project_id}/configuration/paginated

/paginated endpoints are transitional. In API v1, the base paths will return paginated responses and the /paginated suffix will be removed.

Lists the project's configurations.

Query Parameters

ParameterTypeDescriptionDefaultExample
offsetnumberNumber of items to skip.0offset=10
limitnumberMaximum number of items to return. Accepted range: 0–1,000.100limit=20
sortFieldstringField to sort by: title or created_at.titlesortField=title
sortOrderstringSort direction for sortField: asc or desc.ascsortOrder=asc
includestringInclude additional fields omitted by default. Accepted value: runCount.Noneinclude=runCount

Response

Status: 200 OK

{
  total: number          // Number of matching configurations across all pages
  offset: number         // Offset applied to this response
  limit: number          // Limit applied to this response
  data: Configuration[]  // See Configuration Object
}

Example Request

curl \
  -H "Authorization: ApiKey your.api.key.here" \
  "https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/configuration/paginated?include=runCount"

Example Response

{
  "total": 2,
  "offset": 0,
  "limit": 100,
  "data": [
    {
      "id": "1CJo8oDjj_vkGo2rQAdzz4F",
      "title": "Chrome",
      "runCount": 4,
      "createdAt": "2025-01-15T10:30:00Z",
      "updatedAt": "2025-01-15T10:30:00Z"
    },
    {
      "id": "1CJo8oDjj_vkGo2rQAdzz4G",
      "title": "Firefox",
      "runCount": 0,
      "createdAt": "2025-01-15T10:30:00Z",
      "updatedAt": "2025-01-15T10:30:00Z"
    }
  ]
}

Get Configuration

GET/api/public/v0/project/{project_id}/configuration/{configuration_id}

Returns one configuration, with runCount always included.

Response

Status: 200 OK

{
  id: string           // Configuration ID, as runs take it
  title: string        // Title of the configuration (e.g. Chrome)
  createdAt: datetime  // Creation time
  updatedAt: datetime  // Last update time
  runCount: number     // Number of runs using it
}

Example Response

{
  "id": "1CJo8oDjj_vkGo2rQAdzz4F",
  "title": "Chrome",
  "createdAt": "2025-01-15T10:30:00Z",
  "updatedAt": "2025-01-15T10:30:00Z",
  "runCount": 4
}

Create Configuration

POST/api/public/v0/project/{project_id}/configuration

Creates a configuration.

Request Body

{
  title: string  // Title (1–64 characters), unique in the project
}

Response

Status: 201 Created

The created configuration, as Get Configuration returns it.

Errors

Status CodeDescription
409A configuration with the same title exists

Update Configuration

PATCH/api/public/v0/project/{project_id}/configuration/{configuration_id}

Renames a configuration. Runs using it show the new name.

Request Body

{
  title: string  // New title (1–64 characters), unique in the project
}

Response

Status: 200 OK

The updated configuration, as Get Configuration returns it.

Errors

Status CodeDescription
409A configuration with the same title exists

Delete Configuration

DELETE/api/public/v0/project/{project_id}/configuration/{configuration_id}

Deletes a configuration.

Irreversible

Deleted configurations don't go to the trash and can't be restored. Runs that used one keep their results but no longer have a configuration.

Response

Status: 200 OK

{
  message: string
}