Identify all paths from a particular workflow to direct relative workflows and return a list of the relative workflows.
curl --request GET \
--url https://{subdomain}.logicgate.com/api/v1/workflows/relatives \
--header 'Authorization: Bearer <token>'import requests
url = "https://{subdomain}.logicgate.com/api/v1/workflows/relatives"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{subdomain}.logicgate.com/api/v1/workflows/relatives', 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://{subdomain}.logicgate.com/api/v1/workflows/relatives",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{subdomain}.logicgate.com/api/v1/workflows/relatives"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{subdomain}.logicgate.com/api/v1/workflows/relatives")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.logicgate.com/api/v1/workflows/relatives")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"pathsCount": 123,
"maxPaths": 123,
"depth": 123,
"allowAec": true,
"allowGroups": true,
"id": "<string>",
"name": "<string>",
"recordPrefix": "<string>",
"xpos": 123,
"ypos": 123,
"workflowType": "WORKFLOW",
"application": {
"id": "<string>",
"name": "<string>",
"shortCode": "<string>",
"color": "<string>",
"icon": "<string>",
"hasDashboard": true,
"type": "<string>",
"live": true,
"permissionsEnabled": true,
"workflows": [
"<unknown>"
]
}
}Workflow
Find all relatives
If the distinct parameter is passed as true, then this list will filter to distinct relative workflows. If the distinct parameter is omitted or passed as false, then relative workflows will be repeated if there are multiple paths to the relative.
GET
/
api
/
v1
/
workflows
/
relatives
Identify all paths from a particular workflow to direct relative workflows and return a list of the relative workflows.
curl --request GET \
--url https://{subdomain}.logicgate.com/api/v1/workflows/relatives \
--header 'Authorization: Bearer <token>'import requests
url = "https://{subdomain}.logicgate.com/api/v1/workflows/relatives"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{subdomain}.logicgate.com/api/v1/workflows/relatives', 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://{subdomain}.logicgate.com/api/v1/workflows/relatives",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{subdomain}.logicgate.com/api/v1/workflows/relatives"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{subdomain}.logicgate.com/api/v1/workflows/relatives")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.logicgate.com/api/v1/workflows/relatives")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"pathsCount": 123,
"maxPaths": 123,
"depth": 123,
"allowAec": true,
"allowGroups": true,
"id": "<string>",
"name": "<string>",
"recordPrefix": "<string>",
"xpos": 123,
"ypos": 123,
"workflowType": "WORKFLOW",
"application": {
"id": "<string>",
"name": "<string>",
"shortCode": "<string>",
"color": "<string>",
"icon": "<string>",
"hasDashboard": true,
"type": "<string>",
"live": true,
"permissionsEnabled": true,
"workflows": [
"<unknown>"
]
}
}Authorizations
ApiTokenbasic
Query Parameters
Response
200 - application/json
OK
- object
- object[]

