Configure no-YAML browser checks
curl --request PUT \
--url https://api.firedrill.run/v1/projects/{projectId}/repositories/{repositoryBindingId}/browser-ci \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"enabled": true,
"targetOrigin": "<string>",
"revisionPath": "<string>",
"tests": [
{
"testId": "<string>",
"expectedTestVersion": 0,
"paths": [],
"alwaysRun": false
}
],
"expectedVersion": 0,
"selectionMode": "all",
"globalPaths": []
}
'import requests
url = "https://api.firedrill.run/v1/projects/{projectId}/repositories/{repositoryBindingId}/browser-ci"
payload = {
"enabled": True,
"targetOrigin": "<string>",
"revisionPath": "<string>",
"tests": [
{
"testId": "<string>",
"expectedTestVersion": 0,
"paths": [],
"alwaysRun": False
}
],
"expectedVersion": 0,
"selectionMode": "all",
"globalPaths": []
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
enabled: true,
targetOrigin: '<string>',
revisionPath: '<string>',
tests: [{testId: '<string>', expectedTestVersion: 0, paths: [], alwaysRun: false}],
expectedVersion: 0,
selectionMode: 'all',
globalPaths: []
})
};
fetch('https://api.firedrill.run/v1/projects/{projectId}/repositories/{repositoryBindingId}/browser-ci', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.firedrill.run/v1/projects/{projectId}/repositories/{repositoryBindingId}/browser-ci",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'enabled' => true,
'targetOrigin' => '<string>',
'revisionPath' => '<string>',
'tests' => [
[
'testId' => '<string>',
'expectedTestVersion' => 0,
'paths' => [
],
'alwaysRun' => false
]
],
'expectedVersion' => 0,
'selectionMode' => 'all',
'globalPaths' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.firedrill.run/v1/projects/{projectId}/repositories/{repositoryBindingId}/browser-ci"
payload := strings.NewReader("{\n \"enabled\": true,\n \"targetOrigin\": \"<string>\",\n \"revisionPath\": \"<string>\",\n \"tests\": [\n {\n \"testId\": \"<string>\",\n \"expectedTestVersion\": 0,\n \"paths\": [],\n \"alwaysRun\": false\n }\n ],\n \"expectedVersion\": 0,\n \"selectionMode\": \"all\",\n \"globalPaths\": []\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.firedrill.run/v1/projects/{projectId}/repositories/{repositoryBindingId}/browser-ci")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"targetOrigin\": \"<string>\",\n \"revisionPath\": \"<string>\",\n \"tests\": [\n {\n \"testId\": \"<string>\",\n \"expectedTestVersion\": 0,\n \"paths\": [],\n \"alwaysRun\": false\n }\n ],\n \"expectedVersion\": 0,\n \"selectionMode\": \"all\",\n \"globalPaths\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.firedrill.run/v1/projects/{projectId}/repositories/{repositoryBindingId}/browser-ci")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"targetOrigin\": \"<string>\",\n \"revisionPath\": \"<string>\",\n \"tests\": [\n {\n \"testId\": \"<string>\",\n \"expectedTestVersion\": 0,\n \"paths\": [],\n \"alwaysRun\": false\n }\n ],\n \"expectedVersion\": 0,\n \"selectionMode\": \"all\",\n \"globalPaths\": []\n}"
response = http.request(request)
puts response.read_body{
"config": {
"enabled": true,
"targetOrigin": "<string>",
"revisionPath": "<string>",
"selectionMode": "all",
"globalPaths": [],
"tests": [
{
"testId": "<string>",
"expectedTestVersion": 0,
"paths": [],
"alwaysRun": false
}
],
"schemaVersion": 1,
"organizationId": "<string>",
"projectId": "<string>",
"repositoryBindingId": "<string>",
"version": 0,
"updatedAtMs": 0
}
}{
"code": "<string>",
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"source": "platform",
"retryAfterMs": 123,
"operationId": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": {},
"evidence": {
"sessionId": "<string>",
"runId": "<string>",
"journalSeq": 4503599627370495,
"buildHash": "<string>"
}
}{
"code": "<string>",
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"source": "platform",
"retryAfterMs": 123,
"operationId": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": {},
"evidence": {
"sessionId": "<string>",
"runId": "<string>",
"journalSeq": 4503599627370495,
"buildHash": "<string>"
}
}{
"code": "<string>",
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"source": "platform",
"retryAfterMs": 123,
"operationId": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": {},
"evidence": {
"sessionId": "<string>",
"runId": "<string>",
"journalSeq": 4503599627370495,
"buildHash": "<string>"
}
}{
"code": "<string>",
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"source": "platform",
"retryAfterMs": 123,
"operationId": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": {},
"evidence": {
"sessionId": "<string>",
"runId": "<string>",
"journalSeq": 4503599627370495,
"buildHash": "<string>"
}
}{
"code": "<string>",
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"source": "platform",
"retryAfterMs": 123,
"operationId": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": {},
"evidence": {
"sessionId": "<string>",
"runId": "<string>",
"journalSeq": 4503599627370495,
"buildHash": "<string>"
}
}{
"code": "<string>",
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"source": "platform",
"retryAfterMs": 123,
"operationId": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": {},
"evidence": {
"sessionId": "<string>",
"runId": "<string>",
"journalSeq": 4503599627370495,
"buildHash": "<string>"
}
}{
"code": "<string>",
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"source": "platform",
"retryAfterMs": 123,
"operationId": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": {},
"evidence": {
"sessionId": "<string>",
"runId": "<string>",
"journalSeq": 4503599627370495,
"buildHash": "<string>"
}
}Configure no-YAML browser checks
Requires repository.connect and authoring.read for selected saved tests. expectedVersion=null creates; an exact existing version updates. Pins each saved test's exact expectedTestVersion and definition. Selected tests must not require secret parameters. targetOrigin is a public HTTPS origin; revisionPath is a same-origin unauthenticated JSON endpoint returning only {revision:<40-character SHA>}. Rules use literal paths or directory prefixes, not globs. Change-aware selection is opt-in and falls back to all tests when coverage is uncertain.
Configure no-YAML browser checks
curl --request PUT \
--url https://api.firedrill.run/v1/projects/{projectId}/repositories/{repositoryBindingId}/browser-ci \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"enabled": true,
"targetOrigin": "<string>",
"revisionPath": "<string>",
"tests": [
{
"testId": "<string>",
"expectedTestVersion": 0,
"paths": [],
"alwaysRun": false
}
],
"expectedVersion": 0,
"selectionMode": "all",
"globalPaths": []
}
'import requests
url = "https://api.firedrill.run/v1/projects/{projectId}/repositories/{repositoryBindingId}/browser-ci"
payload = {
"enabled": True,
"targetOrigin": "<string>",
"revisionPath": "<string>",
"tests": [
{
"testId": "<string>",
"expectedTestVersion": 0,
"paths": [],
"alwaysRun": False
}
],
"expectedVersion": 0,
"selectionMode": "all",
"globalPaths": []
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
enabled: true,
targetOrigin: '<string>',
revisionPath: '<string>',
tests: [{testId: '<string>', expectedTestVersion: 0, paths: [], alwaysRun: false}],
expectedVersion: 0,
selectionMode: 'all',
globalPaths: []
})
};
fetch('https://api.firedrill.run/v1/projects/{projectId}/repositories/{repositoryBindingId}/browser-ci', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.firedrill.run/v1/projects/{projectId}/repositories/{repositoryBindingId}/browser-ci",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'enabled' => true,
'targetOrigin' => '<string>',
'revisionPath' => '<string>',
'tests' => [
[
'testId' => '<string>',
'expectedTestVersion' => 0,
'paths' => [
],
'alwaysRun' => false
]
],
'expectedVersion' => 0,
'selectionMode' => 'all',
'globalPaths' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.firedrill.run/v1/projects/{projectId}/repositories/{repositoryBindingId}/browser-ci"
payload := strings.NewReader("{\n \"enabled\": true,\n \"targetOrigin\": \"<string>\",\n \"revisionPath\": \"<string>\",\n \"tests\": [\n {\n \"testId\": \"<string>\",\n \"expectedTestVersion\": 0,\n \"paths\": [],\n \"alwaysRun\": false\n }\n ],\n \"expectedVersion\": 0,\n \"selectionMode\": \"all\",\n \"globalPaths\": []\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.firedrill.run/v1/projects/{projectId}/repositories/{repositoryBindingId}/browser-ci")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"targetOrigin\": \"<string>\",\n \"revisionPath\": \"<string>\",\n \"tests\": [\n {\n \"testId\": \"<string>\",\n \"expectedTestVersion\": 0,\n \"paths\": [],\n \"alwaysRun\": false\n }\n ],\n \"expectedVersion\": 0,\n \"selectionMode\": \"all\",\n \"globalPaths\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.firedrill.run/v1/projects/{projectId}/repositories/{repositoryBindingId}/browser-ci")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"targetOrigin\": \"<string>\",\n \"revisionPath\": \"<string>\",\n \"tests\": [\n {\n \"testId\": \"<string>\",\n \"expectedTestVersion\": 0,\n \"paths\": [],\n \"alwaysRun\": false\n }\n ],\n \"expectedVersion\": 0,\n \"selectionMode\": \"all\",\n \"globalPaths\": []\n}"
response = http.request(request)
puts response.read_body{
"config": {
"enabled": true,
"targetOrigin": "<string>",
"revisionPath": "<string>",
"selectionMode": "all",
"globalPaths": [],
"tests": [
{
"testId": "<string>",
"expectedTestVersion": 0,
"paths": [],
"alwaysRun": false
}
],
"schemaVersion": 1,
"organizationId": "<string>",
"projectId": "<string>",
"repositoryBindingId": "<string>",
"version": 0,
"updatedAtMs": 0
}
}{
"code": "<string>",
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"source": "platform",
"retryAfterMs": 123,
"operationId": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": {},
"evidence": {
"sessionId": "<string>",
"runId": "<string>",
"journalSeq": 4503599627370495,
"buildHash": "<string>"
}
}{
"code": "<string>",
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"source": "platform",
"retryAfterMs": 123,
"operationId": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": {},
"evidence": {
"sessionId": "<string>",
"runId": "<string>",
"journalSeq": 4503599627370495,
"buildHash": "<string>"
}
}{
"code": "<string>",
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"source": "platform",
"retryAfterMs": 123,
"operationId": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": {},
"evidence": {
"sessionId": "<string>",
"runId": "<string>",
"journalSeq": 4503599627370495,
"buildHash": "<string>"
}
}{
"code": "<string>",
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"source": "platform",
"retryAfterMs": 123,
"operationId": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": {},
"evidence": {
"sessionId": "<string>",
"runId": "<string>",
"journalSeq": 4503599627370495,
"buildHash": "<string>"
}
}{
"code": "<string>",
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"source": "platform",
"retryAfterMs": 123,
"operationId": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": {},
"evidence": {
"sessionId": "<string>",
"runId": "<string>",
"journalSeq": 4503599627370495,
"buildHash": "<string>"
}
}{
"code": "<string>",
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"source": "platform",
"retryAfterMs": 123,
"operationId": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": {},
"evidence": {
"sessionId": "<string>",
"runId": "<string>",
"journalSeq": 4503599627370495,
"buildHash": "<string>"
}
}{
"code": "<string>",
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"source": "platform",
"retryAfterMs": 123,
"operationId": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": {},
"evidence": {
"sessionId": "<string>",
"runId": "<string>",
"journalSeq": 4503599627370495,
"buildHash": "<string>"
}
}Authorizations
Opaque control credential
Headers
Required string length:
8 - 128Pattern:
^[A-Za-z0-9._:-]+$Path Parameters
Pattern:
^prj_[0-9a-z]{12,32}$Pattern:
^repo_[0-9a-z]{12,32}$Body
application/json
Maximum string length:
2048Required string length:
1 - 1024Selected browser tests. Enabled policies require at least one test; disabled policies may be empty.
Maximum array length:
100Show child attributes
Show child attributes
Required range:
-9007199254740991 <= x <= 9007199254740991Available options:
all, change_aware Maximum array length:
100Required string length:
1 - 1024Response
Mutation result or original idempotency receipt
Show child attributes
Show child attributes