Update a section's condition settings
curl --request PATCH \
--url https://{subdomain}.logicgate.com/api/v1/internal/form/sections/{sectionId}/conditions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"name": "<string>",
"color": "<string>",
"icon": "<string>",
"guidance": "<string>",
"priority": 123,
"colspan": 123,
"collapsed": true,
"conditionsEnabled": true,
"conditionsUseAndOperator": true
}
'import requests
url = "https://{subdomain}.logicgate.com/api/v1/internal/form/sections/{sectionId}/conditions"
payload = {
"id": "<string>",
"name": "<string>",
"color": "<string>",
"icon": "<string>",
"guidance": "<string>",
"priority": 123,
"colspan": 123,
"collapsed": True,
"conditionsEnabled": True,
"conditionsUseAndOperator": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '<string>',
name: '<string>',
color: '<string>',
icon: '<string>',
guidance: '<string>',
priority: 123,
colspan: 123,
collapsed: true,
conditionsEnabled: true,
conditionsUseAndOperator: true
})
};
fetch('https://{subdomain}.logicgate.com/api/v1/internal/form/sections/{sectionId}/conditions', 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/internal/form/sections/{sectionId}/conditions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'id' => '<string>',
'name' => '<string>',
'color' => '<string>',
'icon' => '<string>',
'guidance' => '<string>',
'priority' => 123,
'colspan' => 123,
'collapsed' => true,
'conditionsEnabled' => true,
'conditionsUseAndOperator' => true
]),
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://{subdomain}.logicgate.com/api/v1/internal/form/sections/{sectionId}/conditions"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"color\": \"<string>\",\n \"icon\": \"<string>\",\n \"guidance\": \"<string>\",\n \"priority\": 123,\n \"colspan\": 123,\n \"collapsed\": true,\n \"conditionsEnabled\": true,\n \"conditionsUseAndOperator\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://{subdomain}.logicgate.com/api/v1/internal/form/sections/{sectionId}/conditions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"color\": \"<string>\",\n \"icon\": \"<string>\",\n \"guidance\": \"<string>\",\n \"priority\": 123,\n \"colspan\": 123,\n \"collapsed\": true,\n \"conditionsEnabled\": true,\n \"conditionsUseAndOperator\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.logicgate.com/api/v1/internal/form/sections/{sectionId}/conditions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"color\": \"<string>\",\n \"icon\": \"<string>\",\n \"guidance\": \"<string>\",\n \"priority\": 123,\n \"colspan\": 123,\n \"collapsed\": true,\n \"conditionsEnabled\": true,\n \"conditionsUseAndOperator\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"color": "<string>",
"icon": "<string>",
"guidance": "<string>",
"priority": 123,
"colspan": 123,
"collapsed": true,
"defaultState": "HIDDEN",
"conditionsEnabled": true,
"conditionsUseAndOperator": true,
"sectionType": "CONTENT_SECTION"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"properties": {}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"properties": {}
}Section
Update a section's condition settings
Permissions: Build Access to parent application
Update the conditional visibility settings for the form section identified by its unique ID.
PATCH
/
api
/
v1
/
internal
/
form
/
sections
/
{sectionId}
/
conditions
Update a section's condition settings
curl --request PATCH \
--url https://{subdomain}.logicgate.com/api/v1/internal/form/sections/{sectionId}/conditions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"name": "<string>",
"color": "<string>",
"icon": "<string>",
"guidance": "<string>",
"priority": 123,
"colspan": 123,
"collapsed": true,
"conditionsEnabled": true,
"conditionsUseAndOperator": true
}
'import requests
url = "https://{subdomain}.logicgate.com/api/v1/internal/form/sections/{sectionId}/conditions"
payload = {
"id": "<string>",
"name": "<string>",
"color": "<string>",
"icon": "<string>",
"guidance": "<string>",
"priority": 123,
"colspan": 123,
"collapsed": True,
"conditionsEnabled": True,
"conditionsUseAndOperator": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '<string>',
name: '<string>',
color: '<string>',
icon: '<string>',
guidance: '<string>',
priority: 123,
colspan: 123,
collapsed: true,
conditionsEnabled: true,
conditionsUseAndOperator: true
})
};
fetch('https://{subdomain}.logicgate.com/api/v1/internal/form/sections/{sectionId}/conditions', 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/internal/form/sections/{sectionId}/conditions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'id' => '<string>',
'name' => '<string>',
'color' => '<string>',
'icon' => '<string>',
'guidance' => '<string>',
'priority' => 123,
'colspan' => 123,
'collapsed' => true,
'conditionsEnabled' => true,
'conditionsUseAndOperator' => true
]),
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://{subdomain}.logicgate.com/api/v1/internal/form/sections/{sectionId}/conditions"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"color\": \"<string>\",\n \"icon\": \"<string>\",\n \"guidance\": \"<string>\",\n \"priority\": 123,\n \"colspan\": 123,\n \"collapsed\": true,\n \"conditionsEnabled\": true,\n \"conditionsUseAndOperator\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://{subdomain}.logicgate.com/api/v1/internal/form/sections/{sectionId}/conditions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"color\": \"<string>\",\n \"icon\": \"<string>\",\n \"guidance\": \"<string>\",\n \"priority\": 123,\n \"colspan\": 123,\n \"collapsed\": true,\n \"conditionsEnabled\": true,\n \"conditionsUseAndOperator\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.logicgate.com/api/v1/internal/form/sections/{sectionId}/conditions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"color\": \"<string>\",\n \"icon\": \"<string>\",\n \"guidance\": \"<string>\",\n \"priority\": 123,\n \"colspan\": 123,\n \"collapsed\": true,\n \"conditionsEnabled\": true,\n \"conditionsUseAndOperator\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"color": "<string>",
"icon": "<string>",
"guidance": "<string>",
"priority": 123,
"colspan": 123,
"collapsed": true,
"defaultState": "HIDDEN",
"conditionsEnabled": true,
"conditionsUseAndOperator": true,
"sectionType": "CONTENT_SECTION"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"properties": {}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"properties": {}
}Authorizations
ApiTokenbasic
Body
application/json
- Option 1
- Option 2
Circular reference to FormSection_SectionSummary
Available options:
CONTENT_SECTION, DASHBOARD, DASHBOARD_SECTION, FIELD_LINK, FORM_SECTION, GRAPH_REPORT, HTML_SECTION, STEP_PAGE, SUB_SECTION, VISUAL_REPORT, WORKFLOW_LINK, JIRA_WORKFLOW_LINK, ANALYSIS_REPORT, EMBEDDED_REPORT, EVIDENCE_SECTION, DATA_WAREHOUSE_LINK, SCOPING_SECTION Response
OK
- Option 1
- Option 2
Circular reference to FormSection_SectionSummary
Available options:
CONTENT_SECTION, DASHBOARD, DASHBOARD_SECTION, FIELD_LINK, FORM_SECTION, GRAPH_REPORT, HTML_SECTION, STEP_PAGE, SUB_SECTION, VISUAL_REPORT, WORKFLOW_LINK, JIRA_WORKFLOW_LINK, ANALYSIS_REPORT, EMBEDDED_REPORT, EVIDENCE_SECTION, DATA_WAREHOUSE_LINK, SCOPING_SECTION 
