Create or update form conditions
curl --request POST \
--url https://{subdomain}.logicgate.com/api/v1/internal/conditions/form/target/{targetId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"priority": 123,
"field": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"labels": [
"<string>"
],
"label": "<string>",
"tooltip": "<string>",
"helpText": "<string>",
"enabledForRecordAccess": true,
"currentValues": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": true,
"archived": true,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true
}
],
"defaultValues": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": true,
"archived": true,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true
}
],
"copyRecordAccessField": true,
"currencyForNumberDisplayingFields": "<unknown>",
"global": true,
"requiresUniqueValue": true,
"parameterizedCurrentValues": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": true,
"archived": true,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true
}
],
"analysisOutputField": true,
"currentValuesFromOtherField": "<unknown>",
"formatForNumberDisplayingFields": "<unknown>",
"crossWorkflowCalculation": true,
"validTypeForCalculationInput": true
},
"currentValue": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": true,
"archived": true,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true
},
"fieldId": "<string>",
"currentValueId": "<string>",
"targetId": "<unknown>",
"conditionType": "<string>"
}
]
'import requests
url = "https://{subdomain}.logicgate.com/api/v1/internal/conditions/form/target/{targetId}"
payload = [
{
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"priority": 123,
"field": {
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"labels": ["<string>"],
"label": "<string>",
"tooltip": "<string>",
"helpText": "<string>",
"enabledForRecordAccess": True,
"currentValues": [
{
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": True,
"archived": True,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": True
}
],
"defaultValues": [
{
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": True,
"archived": True,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": True
}
],
"copyRecordAccessField": True,
"currencyForNumberDisplayingFields": "<unknown>",
"global": True,
"requiresUniqueValue": True,
"parameterizedCurrentValues": [
{
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": True,
"archived": True,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": True
}
],
"analysisOutputField": True,
"currentValuesFromOtherField": "<unknown>",
"formatForNumberDisplayingFields": "<unknown>",
"crossWorkflowCalculation": True,
"validTypeForCalculationInput": True
},
"currentValue": {
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": True,
"archived": True,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": True
},
"fieldId": "<string>",
"currentValueId": "<string>",
"targetId": "<unknown>",
"conditionType": "<string>"
}
]
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([
{
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
priority: 123,
field: {
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
name: '<string>',
labels: ['<string>'],
label: '<string>',
tooltip: '<string>',
helpText: '<string>',
enabledForRecordAccess: true,
currentValues: [
{
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
valueType: '<string>',
discriminator: '<string>',
textValue: '<string>',
numericValue: 123,
isDefault: true,
archived: true,
priority: 123,
userGroup: '<string>',
fieldId: '<string>',
idOrTransientId: '<string>',
transientIdOrId: '<string>',
textOrNumericValue: '<string>',
empty: true
}
],
defaultValues: [
{
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
valueType: '<string>',
discriminator: '<string>',
textValue: '<string>',
numericValue: 123,
isDefault: true,
archived: true,
priority: 123,
userGroup: '<string>',
fieldId: '<string>',
idOrTransientId: '<string>',
transientIdOrId: '<string>',
textOrNumericValue: '<string>',
empty: true
}
],
copyRecordAccessField: true,
currencyForNumberDisplayingFields: '<unknown>',
global: true,
requiresUniqueValue: true,
parameterizedCurrentValues: [
{
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
valueType: '<string>',
discriminator: '<string>',
textValue: '<string>',
numericValue: 123,
isDefault: true,
archived: true,
priority: 123,
userGroup: '<string>',
fieldId: '<string>',
idOrTransientId: '<string>',
transientIdOrId: '<string>',
textOrNumericValue: '<string>',
empty: true
}
],
analysisOutputField: true,
currentValuesFromOtherField: '<unknown>',
formatForNumberDisplayingFields: '<unknown>',
crossWorkflowCalculation: true,
validTypeForCalculationInput: true
},
currentValue: {
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
valueType: '<string>',
discriminator: '<string>',
textValue: '<string>',
numericValue: 123,
isDefault: true,
archived: true,
priority: 123,
userGroup: '<string>',
fieldId: '<string>',
idOrTransientId: '<string>',
transientIdOrId: '<string>',
textOrNumericValue: '<string>',
empty: true
},
fieldId: '<string>',
currentValueId: '<string>',
targetId: '<unknown>',
conditionType: '<string>'
}
])
};
fetch('https://{subdomain}.logicgate.com/api/v1/internal/conditions/form/target/{targetId}', 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/conditions/form/target/{targetId}",
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([
[
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'priority' => 123,
'field' => [
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'name' => '<string>',
'labels' => [
'<string>'
],
'label' => '<string>',
'tooltip' => '<string>',
'helpText' => '<string>',
'enabledForRecordAccess' => true,
'currentValues' => [
[
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'valueType' => '<string>',
'discriminator' => '<string>',
'textValue' => '<string>',
'numericValue' => 123,
'isDefault' => true,
'archived' => true,
'priority' => 123,
'userGroup' => '<string>',
'fieldId' => '<string>',
'idOrTransientId' => '<string>',
'transientIdOrId' => '<string>',
'textOrNumericValue' => '<string>',
'empty' => true
]
],
'defaultValues' => [
[
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'valueType' => '<string>',
'discriminator' => '<string>',
'textValue' => '<string>',
'numericValue' => 123,
'isDefault' => true,
'archived' => true,
'priority' => 123,
'userGroup' => '<string>',
'fieldId' => '<string>',
'idOrTransientId' => '<string>',
'transientIdOrId' => '<string>',
'textOrNumericValue' => '<string>',
'empty' => true
]
],
'copyRecordAccessField' => true,
'currencyForNumberDisplayingFields' => '<unknown>',
'global' => true,
'requiresUniqueValue' => true,
'parameterizedCurrentValues' => [
[
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'valueType' => '<string>',
'discriminator' => '<string>',
'textValue' => '<string>',
'numericValue' => 123,
'isDefault' => true,
'archived' => true,
'priority' => 123,
'userGroup' => '<string>',
'fieldId' => '<string>',
'idOrTransientId' => '<string>',
'transientIdOrId' => '<string>',
'textOrNumericValue' => '<string>',
'empty' => true
]
],
'analysisOutputField' => true,
'currentValuesFromOtherField' => '<unknown>',
'formatForNumberDisplayingFields' => '<unknown>',
'crossWorkflowCalculation' => true,
'validTypeForCalculationInput' => true
],
'currentValue' => [
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'valueType' => '<string>',
'discriminator' => '<string>',
'textValue' => '<string>',
'numericValue' => 123,
'isDefault' => true,
'archived' => true,
'priority' => 123,
'userGroup' => '<string>',
'fieldId' => '<string>',
'idOrTransientId' => '<string>',
'transientIdOrId' => '<string>',
'textOrNumericValue' => '<string>',
'empty' => true
],
'fieldId' => '<string>',
'currentValueId' => '<string>',
'targetId' => '<unknown>',
'conditionType' => '<string>'
]
]),
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/conditions/form/target/{targetId}"
payload := strings.NewReader("[\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"priority\": 123,\n \"field\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"labels\": [\n \"<string>\"\n ],\n \"label\": \"<string>\",\n \"tooltip\": \"<string>\",\n \"helpText\": \"<string>\",\n \"enabledForRecordAccess\": true,\n \"currentValues\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n }\n ],\n \"defaultValues\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n }\n ],\n \"copyRecordAccessField\": true,\n \"currencyForNumberDisplayingFields\": \"<unknown>\",\n \"global\": true,\n \"requiresUniqueValue\": true,\n \"parameterizedCurrentValues\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n }\n ],\n \"analysisOutputField\": true,\n \"currentValuesFromOtherField\": \"<unknown>\",\n \"formatForNumberDisplayingFields\": \"<unknown>\",\n \"crossWorkflowCalculation\": true,\n \"validTypeForCalculationInput\": true\n },\n \"currentValue\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n },\n \"fieldId\": \"<string>\",\n \"currentValueId\": \"<string>\",\n \"targetId\": \"<unknown>\",\n \"conditionType\": \"<string>\"\n }\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://{subdomain}.logicgate.com/api/v1/internal/conditions/form/target/{targetId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"priority\": 123,\n \"field\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"labels\": [\n \"<string>\"\n ],\n \"label\": \"<string>\",\n \"tooltip\": \"<string>\",\n \"helpText\": \"<string>\",\n \"enabledForRecordAccess\": true,\n \"currentValues\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n }\n ],\n \"defaultValues\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n }\n ],\n \"copyRecordAccessField\": true,\n \"currencyForNumberDisplayingFields\": \"<unknown>\",\n \"global\": true,\n \"requiresUniqueValue\": true,\n \"parameterizedCurrentValues\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n }\n ],\n \"analysisOutputField\": true,\n \"currentValuesFromOtherField\": \"<unknown>\",\n \"formatForNumberDisplayingFields\": \"<unknown>\",\n \"crossWorkflowCalculation\": true,\n \"validTypeForCalculationInput\": true\n },\n \"currentValue\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n },\n \"fieldId\": \"<string>\",\n \"currentValueId\": \"<string>\",\n \"targetId\": \"<unknown>\",\n \"conditionType\": \"<string>\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.logicgate.com/api/v1/internal/conditions/form/target/{targetId}")
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 {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"priority\": 123,\n \"field\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"labels\": [\n \"<string>\"\n ],\n \"label\": \"<string>\",\n \"tooltip\": \"<string>\",\n \"helpText\": \"<string>\",\n \"enabledForRecordAccess\": true,\n \"currentValues\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n }\n ],\n \"defaultValues\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n }\n ],\n \"copyRecordAccessField\": true,\n \"currencyForNumberDisplayingFields\": \"<unknown>\",\n \"global\": true,\n \"requiresUniqueValue\": true,\n \"parameterizedCurrentValues\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n }\n ],\n \"analysisOutputField\": true,\n \"currentValuesFromOtherField\": \"<unknown>\",\n \"formatForNumberDisplayingFields\": \"<unknown>\",\n \"crossWorkflowCalculation\": true,\n \"validTypeForCalculationInput\": true\n },\n \"currentValue\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n },\n \"fieldId\": \"<string>\",\n \"currentValueId\": \"<string>\",\n \"targetId\": \"<unknown>\",\n \"conditionType\": \"<string>\"\n }\n]"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"operator": "EQUALS",
"priority": 123,
"field": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"fieldType": "TEXT",
"name": "<string>",
"labels": [
"<string>"
],
"label": "<string>",
"tooltip": "<string>",
"helpText": "<string>",
"format": "CURRENCY",
"currency": "EUR",
"enabledForRecordAccess": true,
"currentValues": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": true,
"archived": true,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true
}
],
"defaultValues": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": true,
"archived": true,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true
}
],
"analysisEstimate": "CONFIDENCE",
"analysisType": "CONTACT_FREQUENCY",
"copyRecordAccessField": true,
"global": true,
"requiresUniqueValue": true,
"analysisOutputField": true,
"crossWorkflowCalculation": true,
"validTypeForCalculationInput": true
},
"currentValue": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": true,
"archived": true,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true
},
"fieldId": "<string>",
"currentValueId": "<string>",
"conditionType": "<string>",
"fieldType": "TEXT",
"target": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"@id": 123
}
}
]{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"properties": {}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"properties": {}
}Condition
Create or update form conditions
Permissions: Build Access to parent application
Create or update the conditions that control visibility of the identified target section.
POST
/
api
/
v1
/
internal
/
conditions
/
form
/
target
/
{targetId}
Create or update form conditions
curl --request POST \
--url https://{subdomain}.logicgate.com/api/v1/internal/conditions/form/target/{targetId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"priority": 123,
"field": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"labels": [
"<string>"
],
"label": "<string>",
"tooltip": "<string>",
"helpText": "<string>",
"enabledForRecordAccess": true,
"currentValues": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": true,
"archived": true,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true
}
],
"defaultValues": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": true,
"archived": true,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true
}
],
"copyRecordAccessField": true,
"currencyForNumberDisplayingFields": "<unknown>",
"global": true,
"requiresUniqueValue": true,
"parameterizedCurrentValues": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": true,
"archived": true,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true
}
],
"analysisOutputField": true,
"currentValuesFromOtherField": "<unknown>",
"formatForNumberDisplayingFields": "<unknown>",
"crossWorkflowCalculation": true,
"validTypeForCalculationInput": true
},
"currentValue": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": true,
"archived": true,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true
},
"fieldId": "<string>",
"currentValueId": "<string>",
"targetId": "<unknown>",
"conditionType": "<string>"
}
]
'import requests
url = "https://{subdomain}.logicgate.com/api/v1/internal/conditions/form/target/{targetId}"
payload = [
{
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"priority": 123,
"field": {
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"labels": ["<string>"],
"label": "<string>",
"tooltip": "<string>",
"helpText": "<string>",
"enabledForRecordAccess": True,
"currentValues": [
{
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": True,
"archived": True,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": True
}
],
"defaultValues": [
{
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": True,
"archived": True,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": True
}
],
"copyRecordAccessField": True,
"currencyForNumberDisplayingFields": "<unknown>",
"global": True,
"requiresUniqueValue": True,
"parameterizedCurrentValues": [
{
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": True,
"archived": True,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": True
}
],
"analysisOutputField": True,
"currentValuesFromOtherField": "<unknown>",
"formatForNumberDisplayingFields": "<unknown>",
"crossWorkflowCalculation": True,
"validTypeForCalculationInput": True
},
"currentValue": {
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": True,
"archived": True,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": True
},
"fieldId": "<string>",
"currentValueId": "<string>",
"targetId": "<unknown>",
"conditionType": "<string>"
}
]
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([
{
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
priority: 123,
field: {
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
name: '<string>',
labels: ['<string>'],
label: '<string>',
tooltip: '<string>',
helpText: '<string>',
enabledForRecordAccess: true,
currentValues: [
{
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
valueType: '<string>',
discriminator: '<string>',
textValue: '<string>',
numericValue: 123,
isDefault: true,
archived: true,
priority: 123,
userGroup: '<string>',
fieldId: '<string>',
idOrTransientId: '<string>',
transientIdOrId: '<string>',
textOrNumericValue: '<string>',
empty: true
}
],
defaultValues: [
{
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
valueType: '<string>',
discriminator: '<string>',
textValue: '<string>',
numericValue: 123,
isDefault: true,
archived: true,
priority: 123,
userGroup: '<string>',
fieldId: '<string>',
idOrTransientId: '<string>',
transientIdOrId: '<string>',
textOrNumericValue: '<string>',
empty: true
}
],
copyRecordAccessField: true,
currencyForNumberDisplayingFields: '<unknown>',
global: true,
requiresUniqueValue: true,
parameterizedCurrentValues: [
{
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
valueType: '<string>',
discriminator: '<string>',
textValue: '<string>',
numericValue: 123,
isDefault: true,
archived: true,
priority: 123,
userGroup: '<string>',
fieldId: '<string>',
idOrTransientId: '<string>',
transientIdOrId: '<string>',
textOrNumericValue: '<string>',
empty: true
}
],
analysisOutputField: true,
currentValuesFromOtherField: '<unknown>',
formatForNumberDisplayingFields: '<unknown>',
crossWorkflowCalculation: true,
validTypeForCalculationInput: true
},
currentValue: {
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
valueType: '<string>',
discriminator: '<string>',
textValue: '<string>',
numericValue: 123,
isDefault: true,
archived: true,
priority: 123,
userGroup: '<string>',
fieldId: '<string>',
idOrTransientId: '<string>',
transientIdOrId: '<string>',
textOrNumericValue: '<string>',
empty: true
},
fieldId: '<string>',
currentValueId: '<string>',
targetId: '<unknown>',
conditionType: '<string>'
}
])
};
fetch('https://{subdomain}.logicgate.com/api/v1/internal/conditions/form/target/{targetId}', 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/conditions/form/target/{targetId}",
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([
[
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'priority' => 123,
'field' => [
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'name' => '<string>',
'labels' => [
'<string>'
],
'label' => '<string>',
'tooltip' => '<string>',
'helpText' => '<string>',
'enabledForRecordAccess' => true,
'currentValues' => [
[
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'valueType' => '<string>',
'discriminator' => '<string>',
'textValue' => '<string>',
'numericValue' => 123,
'isDefault' => true,
'archived' => true,
'priority' => 123,
'userGroup' => '<string>',
'fieldId' => '<string>',
'idOrTransientId' => '<string>',
'transientIdOrId' => '<string>',
'textOrNumericValue' => '<string>',
'empty' => true
]
],
'defaultValues' => [
[
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'valueType' => '<string>',
'discriminator' => '<string>',
'textValue' => '<string>',
'numericValue' => 123,
'isDefault' => true,
'archived' => true,
'priority' => 123,
'userGroup' => '<string>',
'fieldId' => '<string>',
'idOrTransientId' => '<string>',
'transientIdOrId' => '<string>',
'textOrNumericValue' => '<string>',
'empty' => true
]
],
'copyRecordAccessField' => true,
'currencyForNumberDisplayingFields' => '<unknown>',
'global' => true,
'requiresUniqueValue' => true,
'parameterizedCurrentValues' => [
[
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'valueType' => '<string>',
'discriminator' => '<string>',
'textValue' => '<string>',
'numericValue' => 123,
'isDefault' => true,
'archived' => true,
'priority' => 123,
'userGroup' => '<string>',
'fieldId' => '<string>',
'idOrTransientId' => '<string>',
'transientIdOrId' => '<string>',
'textOrNumericValue' => '<string>',
'empty' => true
]
],
'analysisOutputField' => true,
'currentValuesFromOtherField' => '<unknown>',
'formatForNumberDisplayingFields' => '<unknown>',
'crossWorkflowCalculation' => true,
'validTypeForCalculationInput' => true
],
'currentValue' => [
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'valueType' => '<string>',
'discriminator' => '<string>',
'textValue' => '<string>',
'numericValue' => 123,
'isDefault' => true,
'archived' => true,
'priority' => 123,
'userGroup' => '<string>',
'fieldId' => '<string>',
'idOrTransientId' => '<string>',
'transientIdOrId' => '<string>',
'textOrNumericValue' => '<string>',
'empty' => true
],
'fieldId' => '<string>',
'currentValueId' => '<string>',
'targetId' => '<unknown>',
'conditionType' => '<string>'
]
]),
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/conditions/form/target/{targetId}"
payload := strings.NewReader("[\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"priority\": 123,\n \"field\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"labels\": [\n \"<string>\"\n ],\n \"label\": \"<string>\",\n \"tooltip\": \"<string>\",\n \"helpText\": \"<string>\",\n \"enabledForRecordAccess\": true,\n \"currentValues\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n }\n ],\n \"defaultValues\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n }\n ],\n \"copyRecordAccessField\": true,\n \"currencyForNumberDisplayingFields\": \"<unknown>\",\n \"global\": true,\n \"requiresUniqueValue\": true,\n \"parameterizedCurrentValues\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n }\n ],\n \"analysisOutputField\": true,\n \"currentValuesFromOtherField\": \"<unknown>\",\n \"formatForNumberDisplayingFields\": \"<unknown>\",\n \"crossWorkflowCalculation\": true,\n \"validTypeForCalculationInput\": true\n },\n \"currentValue\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n },\n \"fieldId\": \"<string>\",\n \"currentValueId\": \"<string>\",\n \"targetId\": \"<unknown>\",\n \"conditionType\": \"<string>\"\n }\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://{subdomain}.logicgate.com/api/v1/internal/conditions/form/target/{targetId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"priority\": 123,\n \"field\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"labels\": [\n \"<string>\"\n ],\n \"label\": \"<string>\",\n \"tooltip\": \"<string>\",\n \"helpText\": \"<string>\",\n \"enabledForRecordAccess\": true,\n \"currentValues\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n }\n ],\n \"defaultValues\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n }\n ],\n \"copyRecordAccessField\": true,\n \"currencyForNumberDisplayingFields\": \"<unknown>\",\n \"global\": true,\n \"requiresUniqueValue\": true,\n \"parameterizedCurrentValues\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n }\n ],\n \"analysisOutputField\": true,\n \"currentValuesFromOtherField\": \"<unknown>\",\n \"formatForNumberDisplayingFields\": \"<unknown>\",\n \"crossWorkflowCalculation\": true,\n \"validTypeForCalculationInput\": true\n },\n \"currentValue\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n },\n \"fieldId\": \"<string>\",\n \"currentValueId\": \"<string>\",\n \"targetId\": \"<unknown>\",\n \"conditionType\": \"<string>\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.logicgate.com/api/v1/internal/conditions/form/target/{targetId}")
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 {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"priority\": 123,\n \"field\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"labels\": [\n \"<string>\"\n ],\n \"label\": \"<string>\",\n \"tooltip\": \"<string>\",\n \"helpText\": \"<string>\",\n \"enabledForRecordAccess\": true,\n \"currentValues\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n }\n ],\n \"defaultValues\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n }\n ],\n \"copyRecordAccessField\": true,\n \"currencyForNumberDisplayingFields\": \"<unknown>\",\n \"global\": true,\n \"requiresUniqueValue\": true,\n \"parameterizedCurrentValues\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n }\n ],\n \"analysisOutputField\": true,\n \"currentValuesFromOtherField\": \"<unknown>\",\n \"formatForNumberDisplayingFields\": \"<unknown>\",\n \"crossWorkflowCalculation\": true,\n \"validTypeForCalculationInput\": true\n },\n \"currentValue\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"valueType\": \"<string>\",\n \"discriminator\": \"<string>\",\n \"textValue\": \"<string>\",\n \"numericValue\": 123,\n \"isDefault\": true,\n \"archived\": true,\n \"priority\": 123,\n \"userGroup\": \"<string>\",\n \"fieldId\": \"<string>\",\n \"idOrTransientId\": \"<string>\",\n \"transientIdOrId\": \"<string>\",\n \"textOrNumericValue\": \"<string>\",\n \"empty\": true\n },\n \"fieldId\": \"<string>\",\n \"currentValueId\": \"<string>\",\n \"targetId\": \"<unknown>\",\n \"conditionType\": \"<string>\"\n }\n]"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"operator": "EQUALS",
"priority": 123,
"field": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"fieldType": "TEXT",
"name": "<string>",
"labels": [
"<string>"
],
"label": "<string>",
"tooltip": "<string>",
"helpText": "<string>",
"format": "CURRENCY",
"currency": "EUR",
"enabledForRecordAccess": true,
"currentValues": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": true,
"archived": true,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true
}
],
"defaultValues": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": true,
"archived": true,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true
}
],
"analysisEstimate": "CONFIDENCE",
"analysisType": "CONTACT_FREQUENCY",
"copyRecordAccessField": true,
"global": true,
"requiresUniqueValue": true,
"analysisOutputField": true,
"crossWorkflowCalculation": true,
"validTypeForCalculationInput": true
},
"currentValue": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"valueType": "<string>",
"discriminator": "<string>",
"textValue": "<string>",
"numericValue": 123,
"isDefault": true,
"archived": true,
"priority": 123,
"userGroup": "<string>",
"fieldId": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true
},
"fieldId": "<string>",
"currentValueId": "<string>",
"conditionType": "<string>",
"fieldType": "TEXT",
"target": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"@id": 123
}
}
]{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"properties": {}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"properties": {}
}Authorizations
ApiTokenbasic
Path Parameters
Body
application/json
- Option 1
- Option 2
Circular reference to FormCondition_ExtendedConditionSummary
Available options:
TEXT, EXTERNAL_USER, EXTERNAL_ID, TEXT_AREA, DATE_PICKER, NUMBER, E_SIGNATURE, CHECKBOX, MULTI_SELECT, RADIO, SELECT, USER, ATTACHMENT, CALCULATION, TEXT_CONCATENATION, FIXED_DATE_CALCULATION, LINKED_RECORDS_COUNT, DUE_DATE, DAYS_UNTIL_DUE, EVIDENCE, AEC_INFO, ANNUAL_LOSS_EXPOSURE Response
OK
- Option 1
- Option 2
Circular reference to FormCondition_ExtendedConditionSummary
Available options:
TEXT, EXTERNAL_USER, EXTERNAL_ID, TEXT_AREA, DATE_PICKER, NUMBER, E_SIGNATURE, CHECKBOX, MULTI_SELECT, RADIO, SELECT, USER, ATTACHMENT, CALCULATION, TEXT_CONCATENATION, FIXED_DATE_CALCULATION, LINKED_RECORDS_COUNT, DUE_DATE, DAYS_UNTIL_DUE, EVIDENCE, AEC_INFO, ANNUAL_LOSS_EXPOSURE 
