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
/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
| Parameter | Type | Description | Default | Example |
|---|---|---|---|---|
offset | number | Number of items to skip. | 0 | offset=10 |
limit | number | Maximum number of items to return. Accepted range: 0–1,000. | 100 | limit=20 |
sortField | string | Field to sort by: title or created_at. | title | sortField=title |
sortOrder | string | Sort direction for sortField: asc or desc. | asc | sortOrder=asc |
include | string | Include additional fields omitted by default. Accepted value: runCount. | None | include=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
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
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 Code | Description |
|---|---|
| 409 | A configuration with the same title exists |
Update Configuration
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 Code | Description |
|---|---|
| 409 | A configuration with the same title exists |
Delete Configuration
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
}