Trigger a group webhook
curl --request POST \
--url https://tester.army/api/v1/groups/webhook/{webhookId}/{secret} \
--header 'Content-Type: application/json' \
--data '
{
"projectEnvironmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"targetUrl": "<string>",
"mobile": {
"appId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bundleId": "<string>",
"artifactUrl": "<string>",
"artifactFilename": "<string>",
"buildId": "<string>"
},
"commitSha": "<string>"
}
'import requests
url = "https://tester.army/api/v1/groups/webhook/{webhookId}/{secret}"
payload = {
"projectEnvironmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"targetUrl": "<string>",
"mobile": {
"appId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bundleId": "<string>",
"artifactUrl": "<string>",
"artifactFilename": "<string>",
"buildId": "<string>"
},
"commitSha": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
projectEnvironmentId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
targetUrl: '<string>',
mobile: {
appId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
bundleId: '<string>',
artifactUrl: '<string>',
artifactFilename: '<string>',
buildId: '<string>'
},
commitSha: '<string>'
})
};
fetch('https://tester.army/api/v1/groups/webhook/{webhookId}/{secret}', 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://tester.army/api/v1/groups/webhook/{webhookId}/{secret}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'projectEnvironmentId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'targetUrl' => '<string>',
'mobile' => [
'appId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'bundleId' => '<string>',
'artifactUrl' => '<string>',
'artifactFilename' => '<string>',
'buildId' => '<string>'
],
'commitSha' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://tester.army/api/v1/groups/webhook/{webhookId}/{secret}"
payload := strings.NewReader("{\n \"projectEnvironmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"targetUrl\": \"<string>\",\n \"mobile\": {\n \"appId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bundleId\": \"<string>\",\n \"artifactUrl\": \"<string>\",\n \"artifactFilename\": \"<string>\",\n \"buildId\": \"<string>\"\n },\n \"commitSha\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://tester.army/api/v1/groups/webhook/{webhookId}/{secret}")
.header("Content-Type", "application/json")
.body("{\n \"projectEnvironmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"targetUrl\": \"<string>\",\n \"mobile\": {\n \"appId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bundleId\": \"<string>\",\n \"artifactUrl\": \"<string>\",\n \"artifactFilename\": \"<string>\",\n \"buildId\": \"<string>\"\n },\n \"commitSha\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tester.army/api/v1/groups/webhook/{webhookId}/{secret}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"projectEnvironmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"targetUrl\": \"<string>\",\n \"mobile\": {\n \"appId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bundleId\": \"<string>\",\n \"artifactUrl\": \"<string>\",\n \"artifactFilename\": \"<string>\",\n \"buildId\": \"<string>\"\n },\n \"commitSha\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"received": true,
"ignored": true,
"reason": "<string>",
"runId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"batchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"batchIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Trigger all runnable tests in a group from a signed webhook URL.
POST
/
v1
/
groups
/
webhook
/
{webhookId}
/
{secret}
Trigger a group webhook
curl --request POST \
--url https://tester.army/api/v1/groups/webhook/{webhookId}/{secret} \
--header 'Content-Type: application/json' \
--data '
{
"projectEnvironmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"targetUrl": "<string>",
"mobile": {
"appId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bundleId": "<string>",
"artifactUrl": "<string>",
"artifactFilename": "<string>",
"buildId": "<string>"
},
"commitSha": "<string>"
}
'import requests
url = "https://tester.army/api/v1/groups/webhook/{webhookId}/{secret}"
payload = {
"projectEnvironmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"targetUrl": "<string>",
"mobile": {
"appId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bundleId": "<string>",
"artifactUrl": "<string>",
"artifactFilename": "<string>",
"buildId": "<string>"
},
"commitSha": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
projectEnvironmentId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
targetUrl: '<string>',
mobile: {
appId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
bundleId: '<string>',
artifactUrl: '<string>',
artifactFilename: '<string>',
buildId: '<string>'
},
commitSha: '<string>'
})
};
fetch('https://tester.army/api/v1/groups/webhook/{webhookId}/{secret}', 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://tester.army/api/v1/groups/webhook/{webhookId}/{secret}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'projectEnvironmentId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'targetUrl' => '<string>',
'mobile' => [
'appId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'bundleId' => '<string>',
'artifactUrl' => '<string>',
'artifactFilename' => '<string>',
'buildId' => '<string>'
],
'commitSha' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://tester.army/api/v1/groups/webhook/{webhookId}/{secret}"
payload := strings.NewReader("{\n \"projectEnvironmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"targetUrl\": \"<string>\",\n \"mobile\": {\n \"appId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bundleId\": \"<string>\",\n \"artifactUrl\": \"<string>\",\n \"artifactFilename\": \"<string>\",\n \"buildId\": \"<string>\"\n },\n \"commitSha\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://tester.army/api/v1/groups/webhook/{webhookId}/{secret}")
.header("Content-Type", "application/json")
.body("{\n \"projectEnvironmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"targetUrl\": \"<string>\",\n \"mobile\": {\n \"appId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bundleId\": \"<string>\",\n \"artifactUrl\": \"<string>\",\n \"artifactFilename\": \"<string>\",\n \"buildId\": \"<string>\"\n },\n \"commitSha\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tester.army/api/v1/groups/webhook/{webhookId}/{secret}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"projectEnvironmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"targetUrl\": \"<string>\",\n \"mobile\": {\n \"appId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bundleId\": \"<string>\",\n \"artifactUrl\": \"<string>\",\n \"artifactFilename\": \"<string>\",\n \"buildId\": \"<string>\"\n },\n \"commitSha\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"received": true,
"ignored": true,
"reason": "<string>",
"runId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"batchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"batchIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Body
application/json
Run platform for the batch. Mobile tests default to ios when omitted, so Android runs must set platform: android - including when the mobile app is selected by appId or bundleId.
Available options:
web, ios, android Mobile device variant within the run platform (iOS: iphone | ipad). Omit for the platform default phone-sized device; explicitly requesting the default (e.g. iphone) is equivalent to omitting it.
Available options:
iphone, ipad Available options:
production, staging, preview, custom Show child attributes
Show child attributes