curl --request POST \
--url https://developer.synq.io/api/recon/v1/deployments/trigger \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"actor": {
"name": "<string>",
"email": {
"userEmail": "jsmith@example.com"
}
},
"deploymentId": "<string>",
"runBisection": true,
"executionTimeout": "<string>",
"invocationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://developer.synq.io/api/recon/v1/deployments/trigger"
payload = {
"actor": {
"name": "<string>",
"email": { "userEmail": "jsmith@example.com" }
},
"deploymentId": "<string>",
"runBisection": True,
"executionTimeout": "<string>",
"invocationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
actor: {name: '<string>', email: {userEmail: 'jsmith@example.com'}},
deploymentId: '<string>',
runBisection: true,
executionTimeout: '<string>',
invocationId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://developer.synq.io/api/recon/v1/deployments/trigger', 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://developer.synq.io/api/recon/v1/deployments/trigger",
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([
'actor' => [
'name' => '<string>',
'email' => [
'userEmail' => 'jsmith@example.com'
]
],
'deploymentId' => '<string>',
'runBisection' => true,
'executionTimeout' => '<string>',
'invocationId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://developer.synq.io/api/recon/v1/deployments/trigger"
payload := strings.NewReader("{\n \"actor\": {\n \"name\": \"<string>\",\n \"email\": {\n \"userEmail\": \"jsmith@example.com\"\n }\n },\n \"deploymentId\": \"<string>\",\n \"runBisection\": true,\n \"executionTimeout\": \"<string>\",\n \"invocationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://developer.synq.io/api/recon/v1/deployments/trigger")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"actor\": {\n \"name\": \"<string>\",\n \"email\": {\n \"userEmail\": \"jsmith@example.com\"\n }\n },\n \"deploymentId\": \"<string>\",\n \"runBisection\": true,\n \"executionTimeout\": \"<string>\",\n \"invocationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer.synq.io/api/recon/v1/deployments/trigger")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"actor\": {\n \"name\": \"<string>\",\n \"email\": {\n \"userEmail\": \"jsmith@example.com\"\n }\n },\n \"deploymentId\": \"<string>\",\n \"runBisection\": true,\n \"executionTimeout\": \"<string>\",\n \"invocationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"deploymentId": "<string>",
"runId": "<string>",
"scheduledAt": "2023-01-15T01:30:15.01Z"
}TriggerDeployment
Trigger an on-demand execution of a promoted deployment. Enqueues a run
using the frozen suite snapshot and connection mappings stored on the
deployment row — execution uses platform integration credentials, not the
caller’s. Returns the freshly-allocated run_id so callers can poll
RunStateService for status.
Preconditions:
- Deployment must exist and be
active. - Deployment must have
triggerable_by_api = true(FAILED_PRECONDITION otherwise). - Deployment must not be paused (FAILED_PRECONDITION when
paused_untilis set and in the future).
A retry that repeats the invocation_id of a run the deployment already
has returns that run without checking the preconditions again, so a
retried call never fails only because the first one went through.
curl --request POST \
--url https://developer.synq.io/api/recon/v1/deployments/trigger \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"actor": {
"name": "<string>",
"email": {
"userEmail": "jsmith@example.com"
}
},
"deploymentId": "<string>",
"runBisection": true,
"executionTimeout": "<string>",
"invocationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://developer.synq.io/api/recon/v1/deployments/trigger"
payload = {
"actor": {
"name": "<string>",
"email": { "userEmail": "jsmith@example.com" }
},
"deploymentId": "<string>",
"runBisection": True,
"executionTimeout": "<string>",
"invocationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
actor: {name: '<string>', email: {userEmail: 'jsmith@example.com'}},
deploymentId: '<string>',
runBisection: true,
executionTimeout: '<string>',
invocationId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://developer.synq.io/api/recon/v1/deployments/trigger', 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://developer.synq.io/api/recon/v1/deployments/trigger",
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([
'actor' => [
'name' => '<string>',
'email' => [
'userEmail' => 'jsmith@example.com'
]
],
'deploymentId' => '<string>',
'runBisection' => true,
'executionTimeout' => '<string>',
'invocationId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://developer.synq.io/api/recon/v1/deployments/trigger"
payload := strings.NewReader("{\n \"actor\": {\n \"name\": \"<string>\",\n \"email\": {\n \"userEmail\": \"jsmith@example.com\"\n }\n },\n \"deploymentId\": \"<string>\",\n \"runBisection\": true,\n \"executionTimeout\": \"<string>\",\n \"invocationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://developer.synq.io/api/recon/v1/deployments/trigger")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"actor\": {\n \"name\": \"<string>\",\n \"email\": {\n \"userEmail\": \"jsmith@example.com\"\n }\n },\n \"deploymentId\": \"<string>\",\n \"runBisection\": true,\n \"executionTimeout\": \"<string>\",\n \"invocationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer.synq.io/api/recon/v1/deployments/trigger")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"actor\": {\n \"name\": \"<string>\",\n \"email\": {\n \"userEmail\": \"jsmith@example.com\"\n }\n },\n \"deploymentId\": \"<string>\",\n \"runBisection\": true,\n \"executionTimeout\": \"<string>\",\n \"invocationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"deploymentId": "<string>",
"runId": "<string>",
"scheduledAt": "2023-01-15T01:30:15.01Z"
}Authorizations
Body
- TriggerDeploymentRequest
- TriggerDeploymentRequest
Client-generated invocation ID for idempotency, as on SubmitAdhocSuiteRequest. It becomes the run_id of the triggered run. If a run of this deployment with this ID already exists, the call starts no second run and returns the existing one. The ID is scoped to the deployment: the same ID sent to another deployment starts a separate run there. Unset, the server generates the run_id and every call starts a new run.
Response
Success