Updates a field.
curl --request PATCH \
--url https://{subdomain}.logicgate.com/api/v1/fields/{fieldId} \
--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",
"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
}
],
"workflow": {
"recordCount": 123,
"centralFramework": true,
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"recordPrefix": "<string>",
"allowGroups": true,
"requireGroups": true,
"xpos": 123,
"ypos": 123,
"priority": 123,
"sla": {
"enabled": true,
"duration": 123
},
"allowAec": true,
"allowRcsa": true,
"sequence": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
},
"application": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"createdBy": "<unknown>",
"description": "<string>",
"color": "<string>",
"icon": "fa-bookmark, fa-bolt, fa-bullhorn, fa-certificate,fa-check-square-o, fa-cloud, fa-comments, fa-dollar, fa-exclamation-triangle, fa-file-text-o,fa-folder, fa-gift, fa-globe, fa-heartbeat, fa-leaf, fa-legal, fa-life-ring, fa-medkit, fa-money,fa-percent, fa-rocket, fa-signal, fa-university, fa-user-circle",
"type": "<string>",
"sourceApplicationId": "<string>",
"sourceEnvironment": "<string>",
"permissionsEnabled": true,
"imported": true,
"copied": true,
"live": true,
"uxriEnabled": true,
"shortCode": "<string>",
"defaultHomeScreen": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
}
},
"userGroups": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"recordDefault": true,
"title": "<string>",
"automatedUserGroup": true,
"automatedUserGroupFieldLabel": "<string>"
}
],
"primaryField": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"field": "<unknown>",
"name": "<string>"
},
"currentValueUserGroupMappings": [
{
"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
},
"userGroup": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"recordDefault": true,
"title": "<string>",
"automatedUserGroup": true,
"automatedUserGroupFieldLabel": "<string>"
}
}
],
"automatedAccessEnabled": true,
"automatedAccessFields": [
"<unknown>"
],
"automatedAccessFieldId": "<string>",
"summaryFields": [
{
"priority": 123,
"workflow": "<unknown>",
"field": "<unknown>",
"neo4jId": "<string>",
"fieldId": "<string>"
}
],
"contains": "<unknown>",
"canSelect": "<unknown>",
"pluralizedRecordPrefix": "<string>"
},
"operators": [],
"convertibleTo": [
"<string>"
],
"copyRecordAccessField": true,
"currencyForNumberDisplayingFields": "<unknown>",
"valueType": "<string>",
"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,
"discrete": true,
"currentValuesFromOtherField": "<unknown>",
"formatForNumberDisplayingFields": "<unknown>",
"crossWorkflowCalculation": true,
"validTypeForCalculationInput": true
}
'import requests
url = "https://{subdomain}.logicgate.com/api/v1/fields/{fieldId}"
payload = {
"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
}
],
"workflow": {
"recordCount": 123,
"centralFramework": True,
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"recordPrefix": "<string>",
"allowGroups": True,
"requireGroups": True,
"xpos": 123,
"ypos": 123,
"priority": 123,
"sla": {
"enabled": True,
"duration": 123
},
"allowAec": True,
"allowRcsa": True,
"sequence": {
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
},
"application": {
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"createdBy": "<unknown>",
"description": "<string>",
"color": "<string>",
"icon": "fa-bookmark, fa-bolt, fa-bullhorn, fa-certificate,fa-check-square-o, fa-cloud, fa-comments, fa-dollar, fa-exclamation-triangle, fa-file-text-o,fa-folder, fa-gift, fa-globe, fa-heartbeat, fa-leaf, fa-legal, fa-life-ring, fa-medkit, fa-money,fa-percent, fa-rocket, fa-signal, fa-university, fa-user-circle",
"type": "<string>",
"sourceApplicationId": "<string>",
"sourceEnvironment": "<string>",
"permissionsEnabled": True,
"imported": True,
"copied": True,
"live": True,
"uxriEnabled": True,
"shortCode": "<string>",
"defaultHomeScreen": {
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
}
},
"userGroups": [
{
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"recordDefault": True,
"title": "<string>",
"automatedUserGroup": True,
"automatedUserGroupFieldLabel": "<string>"
}
],
"primaryField": {
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"field": "<unknown>",
"name": "<string>"
},
"currentValueUserGroupMappings": [
{
"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
},
"userGroup": {
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"recordDefault": True,
"title": "<string>",
"automatedUserGroup": True,
"automatedUserGroupFieldLabel": "<string>"
}
}
],
"automatedAccessEnabled": True,
"automatedAccessFields": ["<unknown>"],
"automatedAccessFieldId": "<string>",
"summaryFields": [
{
"priority": 123,
"workflow": "<unknown>",
"field": "<unknown>",
"neo4jId": "<string>",
"fieldId": "<string>"
}
],
"contains": "<unknown>",
"canSelect": "<unknown>",
"pluralizedRecordPrefix": "<string>"
},
"operators": [],
"convertibleTo": ["<string>"],
"copyRecordAccessField": True,
"currencyForNumberDisplayingFields": "<unknown>",
"valueType": "<string>",
"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,
"discrete": True,
"currentValuesFromOtherField": "<unknown>",
"formatForNumberDisplayingFields": "<unknown>",
"crossWorkflowCalculation": True,
"validTypeForCalculationInput": 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>',
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
}
],
workflow: {
recordCount: 123,
centralFramework: true,
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
name: '<string>',
description: '<string>',
recordPrefix: '<string>',
allowGroups: true,
requireGroups: true,
xpos: 123,
ypos: 123,
priority: 123,
sla: {enabled: true, duration: 123},
allowAec: true,
allowRcsa: true,
sequence: {
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z'
},
application: {
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
name: '<string>',
createdBy: '<unknown>',
description: '<string>',
color: '<string>',
icon: 'fa-bookmark, fa-bolt, fa-bullhorn, fa-certificate,fa-check-square-o, fa-cloud, fa-comments, fa-dollar, fa-exclamation-triangle, fa-file-text-o,fa-folder, fa-gift, fa-globe, fa-heartbeat, fa-leaf, fa-legal, fa-life-ring, fa-medkit, fa-money,fa-percent, fa-rocket, fa-signal, fa-university, fa-user-circle',
type: '<string>',
sourceApplicationId: '<string>',
sourceEnvironment: '<string>',
permissionsEnabled: true,
imported: true,
copied: true,
live: true,
uxriEnabled: true,
shortCode: '<string>',
defaultHomeScreen: {
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z'
}
},
userGroups: [
{
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
recordDefault: true,
title: '<string>',
automatedUserGroup: true,
automatedUserGroupFieldLabel: '<string>'
}
],
primaryField: {
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
field: '<unknown>',
name: '<string>'
},
currentValueUserGroupMappings: [
{
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
},
userGroup: {
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
recordDefault: true,
title: '<string>',
automatedUserGroup: true,
automatedUserGroupFieldLabel: '<string>'
}
}
],
automatedAccessEnabled: true,
automatedAccessFields: ['<unknown>'],
automatedAccessFieldId: '<string>',
summaryFields: [
{
priority: 123,
workflow: '<unknown>',
field: '<unknown>',
neo4jId: '<string>',
fieldId: '<string>'
}
],
contains: '<unknown>',
canSelect: '<unknown>',
pluralizedRecordPrefix: '<string>'
},
operators: [],
convertibleTo: ['<string>'],
copyRecordAccessField: true,
currencyForNumberDisplayingFields: '<unknown>',
valueType: '<string>',
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,
discrete: true,
currentValuesFromOtherField: '<unknown>',
formatForNumberDisplayingFields: '<unknown>',
crossWorkflowCalculation: true,
validTypeForCalculationInput: true
})
};
fetch('https://{subdomain}.logicgate.com/api/v1/fields/{fieldId}', 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/fields/{fieldId}",
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>',
'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
]
],
'workflow' => [
'recordCount' => 123,
'centralFramework' => true,
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'name' => '<string>',
'description' => '<string>',
'recordPrefix' => '<string>',
'allowGroups' => true,
'requireGroups' => true,
'xpos' => 123,
'ypos' => 123,
'priority' => 123,
'sla' => [
'enabled' => true,
'duration' => 123
],
'allowAec' => true,
'allowRcsa' => true,
'sequence' => [
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z'
],
'application' => [
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'name' => '<string>',
'createdBy' => '<unknown>',
'description' => '<string>',
'color' => '<string>',
'icon' => 'fa-bookmark, fa-bolt, fa-bullhorn, fa-certificate,fa-check-square-o, fa-cloud, fa-comments, fa-dollar, fa-exclamation-triangle, fa-file-text-o,fa-folder, fa-gift, fa-globe, fa-heartbeat, fa-leaf, fa-legal, fa-life-ring, fa-medkit, fa-money,fa-percent, fa-rocket, fa-signal, fa-university, fa-user-circle',
'type' => '<string>',
'sourceApplicationId' => '<string>',
'sourceEnvironment' => '<string>',
'permissionsEnabled' => true,
'imported' => true,
'copied' => true,
'live' => true,
'uxriEnabled' => true,
'shortCode' => '<string>',
'defaultHomeScreen' => [
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z'
]
],
'userGroups' => [
[
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'recordDefault' => true,
'title' => '<string>',
'automatedUserGroup' => true,
'automatedUserGroupFieldLabel' => '<string>'
]
],
'primaryField' => [
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'field' => '<unknown>',
'name' => '<string>'
],
'currentValueUserGroupMappings' => [
[
'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
],
'userGroup' => [
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'recordDefault' => true,
'title' => '<string>',
'automatedUserGroup' => true,
'automatedUserGroupFieldLabel' => '<string>'
]
]
],
'automatedAccessEnabled' => true,
'automatedAccessFields' => [
'<unknown>'
],
'automatedAccessFieldId' => '<string>',
'summaryFields' => [
[
'priority' => 123,
'workflow' => '<unknown>',
'field' => '<unknown>',
'neo4jId' => '<string>',
'fieldId' => '<string>'
]
],
'contains' => '<unknown>',
'canSelect' => '<unknown>',
'pluralizedRecordPrefix' => '<string>'
],
'operators' => [
],
'convertibleTo' => [
'<string>'
],
'copyRecordAccessField' => true,
'currencyForNumberDisplayingFields' => '<unknown>',
'valueType' => '<string>',
'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,
'discrete' => true,
'currentValuesFromOtherField' => '<unknown>',
'formatForNumberDisplayingFields' => '<unknown>',
'crossWorkflowCalculation' => true,
'validTypeForCalculationInput' => 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/fields/{fieldId}"
payload := strings.NewReader("{\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 \"workflow\": {\n \"recordCount\": 123,\n \"centralFramework\": true,\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"recordPrefix\": \"<string>\",\n \"allowGroups\": true,\n \"requireGroups\": true,\n \"xpos\": 123,\n \"ypos\": 123,\n \"priority\": 123,\n \"sla\": {\n \"enabled\": true,\n \"duration\": 123\n },\n \"allowAec\": true,\n \"allowRcsa\": true,\n \"sequence\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\"\n },\n \"application\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"createdBy\": \"<unknown>\",\n \"description\": \"<string>\",\n \"color\": \"<string>\",\n \"icon\": \"fa-bookmark, fa-bolt, fa-bullhorn, fa-certificate,fa-check-square-o, fa-cloud, fa-comments, fa-dollar, fa-exclamation-triangle, fa-file-text-o,fa-folder, fa-gift, fa-globe, fa-heartbeat, fa-leaf, fa-legal, fa-life-ring, fa-medkit, fa-money,fa-percent, fa-rocket, fa-signal, fa-university, fa-user-circle\",\n \"type\": \"<string>\",\n \"sourceApplicationId\": \"<string>\",\n \"sourceEnvironment\": \"<string>\",\n \"permissionsEnabled\": true,\n \"imported\": true,\n \"copied\": true,\n \"live\": true,\n \"uxriEnabled\": true,\n \"shortCode\": \"<string>\",\n \"defaultHomeScreen\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\"\n }\n },\n \"userGroups\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"recordDefault\": true,\n \"title\": \"<string>\",\n \"automatedUserGroup\": true,\n \"automatedUserGroupFieldLabel\": \"<string>\"\n }\n ],\n \"primaryField\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"field\": \"<unknown>\",\n \"name\": \"<string>\"\n },\n \"currentValueUserGroupMappings\": [\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 \"userGroup\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"recordDefault\": true,\n \"title\": \"<string>\",\n \"automatedUserGroup\": true,\n \"automatedUserGroupFieldLabel\": \"<string>\"\n }\n }\n ],\n \"automatedAccessEnabled\": true,\n \"automatedAccessFields\": [\n \"<unknown>\"\n ],\n \"automatedAccessFieldId\": \"<string>\",\n \"summaryFields\": [\n {\n \"priority\": 123,\n \"workflow\": \"<unknown>\",\n \"field\": \"<unknown>\",\n \"neo4jId\": \"<string>\",\n \"fieldId\": \"<string>\"\n }\n ],\n \"contains\": \"<unknown>\",\n \"canSelect\": \"<unknown>\",\n \"pluralizedRecordPrefix\": \"<string>\"\n },\n \"operators\": [],\n \"convertibleTo\": [\n \"<string>\"\n ],\n \"copyRecordAccessField\": true,\n \"currencyForNumberDisplayingFields\": \"<unknown>\",\n \"valueType\": \"<string>\",\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 \"discrete\": true,\n \"currentValuesFromOtherField\": \"<unknown>\",\n \"formatForNumberDisplayingFields\": \"<unknown>\",\n \"crossWorkflowCalculation\": true,\n \"validTypeForCalculationInput\": 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/fields/{fieldId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\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 \"workflow\": {\n \"recordCount\": 123,\n \"centralFramework\": true,\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"recordPrefix\": \"<string>\",\n \"allowGroups\": true,\n \"requireGroups\": true,\n \"xpos\": 123,\n \"ypos\": 123,\n \"priority\": 123,\n \"sla\": {\n \"enabled\": true,\n \"duration\": 123\n },\n \"allowAec\": true,\n \"allowRcsa\": true,\n \"sequence\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\"\n },\n \"application\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"createdBy\": \"<unknown>\",\n \"description\": \"<string>\",\n \"color\": \"<string>\",\n \"icon\": \"fa-bookmark, fa-bolt, fa-bullhorn, fa-certificate,fa-check-square-o, fa-cloud, fa-comments, fa-dollar, fa-exclamation-triangle, fa-file-text-o,fa-folder, fa-gift, fa-globe, fa-heartbeat, fa-leaf, fa-legal, fa-life-ring, fa-medkit, fa-money,fa-percent, fa-rocket, fa-signal, fa-university, fa-user-circle\",\n \"type\": \"<string>\",\n \"sourceApplicationId\": \"<string>\",\n \"sourceEnvironment\": \"<string>\",\n \"permissionsEnabled\": true,\n \"imported\": true,\n \"copied\": true,\n \"live\": true,\n \"uxriEnabled\": true,\n \"shortCode\": \"<string>\",\n \"defaultHomeScreen\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\"\n }\n },\n \"userGroups\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"recordDefault\": true,\n \"title\": \"<string>\",\n \"automatedUserGroup\": true,\n \"automatedUserGroupFieldLabel\": \"<string>\"\n }\n ],\n \"primaryField\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"field\": \"<unknown>\",\n \"name\": \"<string>\"\n },\n \"currentValueUserGroupMappings\": [\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 \"userGroup\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"recordDefault\": true,\n \"title\": \"<string>\",\n \"automatedUserGroup\": true,\n \"automatedUserGroupFieldLabel\": \"<string>\"\n }\n }\n ],\n \"automatedAccessEnabled\": true,\n \"automatedAccessFields\": [\n \"<unknown>\"\n ],\n \"automatedAccessFieldId\": \"<string>\",\n \"summaryFields\": [\n {\n \"priority\": 123,\n \"workflow\": \"<unknown>\",\n \"field\": \"<unknown>\",\n \"neo4jId\": \"<string>\",\n \"fieldId\": \"<string>\"\n }\n ],\n \"contains\": \"<unknown>\",\n \"canSelect\": \"<unknown>\",\n \"pluralizedRecordPrefix\": \"<string>\"\n },\n \"operators\": [],\n \"convertibleTo\": [\n \"<string>\"\n ],\n \"copyRecordAccessField\": true,\n \"currencyForNumberDisplayingFields\": \"<unknown>\",\n \"valueType\": \"<string>\",\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 \"discrete\": true,\n \"currentValuesFromOtherField\": \"<unknown>\",\n \"formatForNumberDisplayingFields\": \"<unknown>\",\n \"crossWorkflowCalculation\": true,\n \"validTypeForCalculationInput\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.logicgate.com/api/v1/fields/{fieldId}")
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 \"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 \"workflow\": {\n \"recordCount\": 123,\n \"centralFramework\": true,\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"recordPrefix\": \"<string>\",\n \"allowGroups\": true,\n \"requireGroups\": true,\n \"xpos\": 123,\n \"ypos\": 123,\n \"priority\": 123,\n \"sla\": {\n \"enabled\": true,\n \"duration\": 123\n },\n \"allowAec\": true,\n \"allowRcsa\": true,\n \"sequence\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\"\n },\n \"application\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"createdBy\": \"<unknown>\",\n \"description\": \"<string>\",\n \"color\": \"<string>\",\n \"icon\": \"fa-bookmark, fa-bolt, fa-bullhorn, fa-certificate,fa-check-square-o, fa-cloud, fa-comments, fa-dollar, fa-exclamation-triangle, fa-file-text-o,fa-folder, fa-gift, fa-globe, fa-heartbeat, fa-leaf, fa-legal, fa-life-ring, fa-medkit, fa-money,fa-percent, fa-rocket, fa-signal, fa-university, fa-user-circle\",\n \"type\": \"<string>\",\n \"sourceApplicationId\": \"<string>\",\n \"sourceEnvironment\": \"<string>\",\n \"permissionsEnabled\": true,\n \"imported\": true,\n \"copied\": true,\n \"live\": true,\n \"uxriEnabled\": true,\n \"shortCode\": \"<string>\",\n \"defaultHomeScreen\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\"\n }\n },\n \"userGroups\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"recordDefault\": true,\n \"title\": \"<string>\",\n \"automatedUserGroup\": true,\n \"automatedUserGroupFieldLabel\": \"<string>\"\n }\n ],\n \"primaryField\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"field\": \"<unknown>\",\n \"name\": \"<string>\"\n },\n \"currentValueUserGroupMappings\": [\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 \"userGroup\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"recordDefault\": true,\n \"title\": \"<string>\",\n \"automatedUserGroup\": true,\n \"automatedUserGroupFieldLabel\": \"<string>\"\n }\n }\n ],\n \"automatedAccessEnabled\": true,\n \"automatedAccessFields\": [\n \"<unknown>\"\n ],\n \"automatedAccessFieldId\": \"<string>\",\n \"summaryFields\": [\n {\n \"priority\": 123,\n \"workflow\": \"<unknown>\",\n \"field\": \"<unknown>\",\n \"neo4jId\": \"<string>\",\n \"fieldId\": \"<string>\"\n }\n ],\n \"contains\": \"<unknown>\",\n \"canSelect\": \"<unknown>\",\n \"pluralizedRecordPrefix\": \"<string>\"\n },\n \"operators\": [],\n \"convertibleTo\": [\n \"<string>\"\n ],\n \"copyRecordAccessField\": true,\n \"currencyForNumberDisplayingFields\": \"<unknown>\",\n \"valueType\": \"<string>\",\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 \"discrete\": true,\n \"currentValuesFromOtherField\": \"<unknown>\",\n \"formatForNumberDisplayingFields\": \"<unknown>\",\n \"crossWorkflowCalculation\": true,\n \"validTypeForCalculationInput\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"fieldType": "TEXT",
"name": "<string>",
"labels": [
"<string>"
],
"label": "<string>",
"tooltip": "<string>",
"helpText": "<string>",
"format": "CURRENCY",
"currency": "EUR",
"enabledForRecordAccess": true,
"analysisEstimate": "CONFIDENCE",
"analysisType": "CONTACT_FREQUENCY",
"operators": [
"EQUALS"
],
"convertibleTo": [
"<string>"
],
"copyRecordAccessField": true,
"valueType": "<string>",
"global": true,
"requiresUniqueValue": true,
"analysisOutputField": true,
"discrete": true,
"crossWorkflowCalculation": true,
"validTypeForCalculationInput": true
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"properties": {}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"properties": {}
}Field
Updates a field
Given a Field in the request body and its fieldId in the path, a Field is updated with that data and then returned in the response.
PATCH
/
api
/
v1
/
fields
/
{fieldId}
Updates a field.
curl --request PATCH \
--url https://{subdomain}.logicgate.com/api/v1/fields/{fieldId} \
--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",
"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
}
],
"workflow": {
"recordCount": 123,
"centralFramework": true,
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"recordPrefix": "<string>",
"allowGroups": true,
"requireGroups": true,
"xpos": 123,
"ypos": 123,
"priority": 123,
"sla": {
"enabled": true,
"duration": 123
},
"allowAec": true,
"allowRcsa": true,
"sequence": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
},
"application": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"createdBy": "<unknown>",
"description": "<string>",
"color": "<string>",
"icon": "fa-bookmark, fa-bolt, fa-bullhorn, fa-certificate,fa-check-square-o, fa-cloud, fa-comments, fa-dollar, fa-exclamation-triangle, fa-file-text-o,fa-folder, fa-gift, fa-globe, fa-heartbeat, fa-leaf, fa-legal, fa-life-ring, fa-medkit, fa-money,fa-percent, fa-rocket, fa-signal, fa-university, fa-user-circle",
"type": "<string>",
"sourceApplicationId": "<string>",
"sourceEnvironment": "<string>",
"permissionsEnabled": true,
"imported": true,
"copied": true,
"live": true,
"uxriEnabled": true,
"shortCode": "<string>",
"defaultHomeScreen": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
}
},
"userGroups": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"recordDefault": true,
"title": "<string>",
"automatedUserGroup": true,
"automatedUserGroupFieldLabel": "<string>"
}
],
"primaryField": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"field": "<unknown>",
"name": "<string>"
},
"currentValueUserGroupMappings": [
{
"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
},
"userGroup": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"recordDefault": true,
"title": "<string>",
"automatedUserGroup": true,
"automatedUserGroupFieldLabel": "<string>"
}
}
],
"automatedAccessEnabled": true,
"automatedAccessFields": [
"<unknown>"
],
"automatedAccessFieldId": "<string>",
"summaryFields": [
{
"priority": 123,
"workflow": "<unknown>",
"field": "<unknown>",
"neo4jId": "<string>",
"fieldId": "<string>"
}
],
"contains": "<unknown>",
"canSelect": "<unknown>",
"pluralizedRecordPrefix": "<string>"
},
"operators": [],
"convertibleTo": [
"<string>"
],
"copyRecordAccessField": true,
"currencyForNumberDisplayingFields": "<unknown>",
"valueType": "<string>",
"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,
"discrete": true,
"currentValuesFromOtherField": "<unknown>",
"formatForNumberDisplayingFields": "<unknown>",
"crossWorkflowCalculation": true,
"validTypeForCalculationInput": true
}
'import requests
url = "https://{subdomain}.logicgate.com/api/v1/fields/{fieldId}"
payload = {
"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
}
],
"workflow": {
"recordCount": 123,
"centralFramework": True,
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"recordPrefix": "<string>",
"allowGroups": True,
"requireGroups": True,
"xpos": 123,
"ypos": 123,
"priority": 123,
"sla": {
"enabled": True,
"duration": 123
},
"allowAec": True,
"allowRcsa": True,
"sequence": {
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
},
"application": {
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"createdBy": "<unknown>",
"description": "<string>",
"color": "<string>",
"icon": "fa-bookmark, fa-bolt, fa-bullhorn, fa-certificate,fa-check-square-o, fa-cloud, fa-comments, fa-dollar, fa-exclamation-triangle, fa-file-text-o,fa-folder, fa-gift, fa-globe, fa-heartbeat, fa-leaf, fa-legal, fa-life-ring, fa-medkit, fa-money,fa-percent, fa-rocket, fa-signal, fa-university, fa-user-circle",
"type": "<string>",
"sourceApplicationId": "<string>",
"sourceEnvironment": "<string>",
"permissionsEnabled": True,
"imported": True,
"copied": True,
"live": True,
"uxriEnabled": True,
"shortCode": "<string>",
"defaultHomeScreen": {
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
}
},
"userGroups": [
{
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"recordDefault": True,
"title": "<string>",
"automatedUserGroup": True,
"automatedUserGroupFieldLabel": "<string>"
}
],
"primaryField": {
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"field": "<unknown>",
"name": "<string>"
},
"currentValueUserGroupMappings": [
{
"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
},
"userGroup": {
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"recordDefault": True,
"title": "<string>",
"automatedUserGroup": True,
"automatedUserGroupFieldLabel": "<string>"
}
}
],
"automatedAccessEnabled": True,
"automatedAccessFields": ["<unknown>"],
"automatedAccessFieldId": "<string>",
"summaryFields": [
{
"priority": 123,
"workflow": "<unknown>",
"field": "<unknown>",
"neo4jId": "<string>",
"fieldId": "<string>"
}
],
"contains": "<unknown>",
"canSelect": "<unknown>",
"pluralizedRecordPrefix": "<string>"
},
"operators": [],
"convertibleTo": ["<string>"],
"copyRecordAccessField": True,
"currencyForNumberDisplayingFields": "<unknown>",
"valueType": "<string>",
"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,
"discrete": True,
"currentValuesFromOtherField": "<unknown>",
"formatForNumberDisplayingFields": "<unknown>",
"crossWorkflowCalculation": True,
"validTypeForCalculationInput": 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>',
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
}
],
workflow: {
recordCount: 123,
centralFramework: true,
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
name: '<string>',
description: '<string>',
recordPrefix: '<string>',
allowGroups: true,
requireGroups: true,
xpos: 123,
ypos: 123,
priority: 123,
sla: {enabled: true, duration: 123},
allowAec: true,
allowRcsa: true,
sequence: {
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z'
},
application: {
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
name: '<string>',
createdBy: '<unknown>',
description: '<string>',
color: '<string>',
icon: 'fa-bookmark, fa-bolt, fa-bullhorn, fa-certificate,fa-check-square-o, fa-cloud, fa-comments, fa-dollar, fa-exclamation-triangle, fa-file-text-o,fa-folder, fa-gift, fa-globe, fa-heartbeat, fa-leaf, fa-legal, fa-life-ring, fa-medkit, fa-money,fa-percent, fa-rocket, fa-signal, fa-university, fa-user-circle',
type: '<string>',
sourceApplicationId: '<string>',
sourceEnvironment: '<string>',
permissionsEnabled: true,
imported: true,
copied: true,
live: true,
uxriEnabled: true,
shortCode: '<string>',
defaultHomeScreen: {
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z'
}
},
userGroups: [
{
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
recordDefault: true,
title: '<string>',
automatedUserGroup: true,
automatedUserGroupFieldLabel: '<string>'
}
],
primaryField: {
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
field: '<unknown>',
name: '<string>'
},
currentValueUserGroupMappings: [
{
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
},
userGroup: {
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
recordDefault: true,
title: '<string>',
automatedUserGroup: true,
automatedUserGroupFieldLabel: '<string>'
}
}
],
automatedAccessEnabled: true,
automatedAccessFields: ['<unknown>'],
automatedAccessFieldId: '<string>',
summaryFields: [
{
priority: 123,
workflow: '<unknown>',
field: '<unknown>',
neo4jId: '<string>',
fieldId: '<string>'
}
],
contains: '<unknown>',
canSelect: '<unknown>',
pluralizedRecordPrefix: '<string>'
},
operators: [],
convertibleTo: ['<string>'],
copyRecordAccessField: true,
currencyForNumberDisplayingFields: '<unknown>',
valueType: '<string>',
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,
discrete: true,
currentValuesFromOtherField: '<unknown>',
formatForNumberDisplayingFields: '<unknown>',
crossWorkflowCalculation: true,
validTypeForCalculationInput: true
})
};
fetch('https://{subdomain}.logicgate.com/api/v1/fields/{fieldId}', 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/fields/{fieldId}",
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>',
'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
]
],
'workflow' => [
'recordCount' => 123,
'centralFramework' => true,
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'name' => '<string>',
'description' => '<string>',
'recordPrefix' => '<string>',
'allowGroups' => true,
'requireGroups' => true,
'xpos' => 123,
'ypos' => 123,
'priority' => 123,
'sla' => [
'enabled' => true,
'duration' => 123
],
'allowAec' => true,
'allowRcsa' => true,
'sequence' => [
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z'
],
'application' => [
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'name' => '<string>',
'createdBy' => '<unknown>',
'description' => '<string>',
'color' => '<string>',
'icon' => 'fa-bookmark, fa-bolt, fa-bullhorn, fa-certificate,fa-check-square-o, fa-cloud, fa-comments, fa-dollar, fa-exclamation-triangle, fa-file-text-o,fa-folder, fa-gift, fa-globe, fa-heartbeat, fa-leaf, fa-legal, fa-life-ring, fa-medkit, fa-money,fa-percent, fa-rocket, fa-signal, fa-university, fa-user-circle',
'type' => '<string>',
'sourceApplicationId' => '<string>',
'sourceEnvironment' => '<string>',
'permissionsEnabled' => true,
'imported' => true,
'copied' => true,
'live' => true,
'uxriEnabled' => true,
'shortCode' => '<string>',
'defaultHomeScreen' => [
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z'
]
],
'userGroups' => [
[
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'recordDefault' => true,
'title' => '<string>',
'automatedUserGroup' => true,
'automatedUserGroupFieldLabel' => '<string>'
]
],
'primaryField' => [
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'field' => '<unknown>',
'name' => '<string>'
],
'currentValueUserGroupMappings' => [
[
'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
],
'userGroup' => [
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'recordDefault' => true,
'title' => '<string>',
'automatedUserGroup' => true,
'automatedUserGroupFieldLabel' => '<string>'
]
]
],
'automatedAccessEnabled' => true,
'automatedAccessFields' => [
'<unknown>'
],
'automatedAccessFieldId' => '<string>',
'summaryFields' => [
[
'priority' => 123,
'workflow' => '<unknown>',
'field' => '<unknown>',
'neo4jId' => '<string>',
'fieldId' => '<string>'
]
],
'contains' => '<unknown>',
'canSelect' => '<unknown>',
'pluralizedRecordPrefix' => '<string>'
],
'operators' => [
],
'convertibleTo' => [
'<string>'
],
'copyRecordAccessField' => true,
'currencyForNumberDisplayingFields' => '<unknown>',
'valueType' => '<string>',
'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,
'discrete' => true,
'currentValuesFromOtherField' => '<unknown>',
'formatForNumberDisplayingFields' => '<unknown>',
'crossWorkflowCalculation' => true,
'validTypeForCalculationInput' => 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/fields/{fieldId}"
payload := strings.NewReader("{\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 \"workflow\": {\n \"recordCount\": 123,\n \"centralFramework\": true,\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"recordPrefix\": \"<string>\",\n \"allowGroups\": true,\n \"requireGroups\": true,\n \"xpos\": 123,\n \"ypos\": 123,\n \"priority\": 123,\n \"sla\": {\n \"enabled\": true,\n \"duration\": 123\n },\n \"allowAec\": true,\n \"allowRcsa\": true,\n \"sequence\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\"\n },\n \"application\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"createdBy\": \"<unknown>\",\n \"description\": \"<string>\",\n \"color\": \"<string>\",\n \"icon\": \"fa-bookmark, fa-bolt, fa-bullhorn, fa-certificate,fa-check-square-o, fa-cloud, fa-comments, fa-dollar, fa-exclamation-triangle, fa-file-text-o,fa-folder, fa-gift, fa-globe, fa-heartbeat, fa-leaf, fa-legal, fa-life-ring, fa-medkit, fa-money,fa-percent, fa-rocket, fa-signal, fa-university, fa-user-circle\",\n \"type\": \"<string>\",\n \"sourceApplicationId\": \"<string>\",\n \"sourceEnvironment\": \"<string>\",\n \"permissionsEnabled\": true,\n \"imported\": true,\n \"copied\": true,\n \"live\": true,\n \"uxriEnabled\": true,\n \"shortCode\": \"<string>\",\n \"defaultHomeScreen\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\"\n }\n },\n \"userGroups\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"recordDefault\": true,\n \"title\": \"<string>\",\n \"automatedUserGroup\": true,\n \"automatedUserGroupFieldLabel\": \"<string>\"\n }\n ],\n \"primaryField\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"field\": \"<unknown>\",\n \"name\": \"<string>\"\n },\n \"currentValueUserGroupMappings\": [\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 \"userGroup\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"recordDefault\": true,\n \"title\": \"<string>\",\n \"automatedUserGroup\": true,\n \"automatedUserGroupFieldLabel\": \"<string>\"\n }\n }\n ],\n \"automatedAccessEnabled\": true,\n \"automatedAccessFields\": [\n \"<unknown>\"\n ],\n \"automatedAccessFieldId\": \"<string>\",\n \"summaryFields\": [\n {\n \"priority\": 123,\n \"workflow\": \"<unknown>\",\n \"field\": \"<unknown>\",\n \"neo4jId\": \"<string>\",\n \"fieldId\": \"<string>\"\n }\n ],\n \"contains\": \"<unknown>\",\n \"canSelect\": \"<unknown>\",\n \"pluralizedRecordPrefix\": \"<string>\"\n },\n \"operators\": [],\n \"convertibleTo\": [\n \"<string>\"\n ],\n \"copyRecordAccessField\": true,\n \"currencyForNumberDisplayingFields\": \"<unknown>\",\n \"valueType\": \"<string>\",\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 \"discrete\": true,\n \"currentValuesFromOtherField\": \"<unknown>\",\n \"formatForNumberDisplayingFields\": \"<unknown>\",\n \"crossWorkflowCalculation\": true,\n \"validTypeForCalculationInput\": 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/fields/{fieldId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\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 \"workflow\": {\n \"recordCount\": 123,\n \"centralFramework\": true,\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"recordPrefix\": \"<string>\",\n \"allowGroups\": true,\n \"requireGroups\": true,\n \"xpos\": 123,\n \"ypos\": 123,\n \"priority\": 123,\n \"sla\": {\n \"enabled\": true,\n \"duration\": 123\n },\n \"allowAec\": true,\n \"allowRcsa\": true,\n \"sequence\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\"\n },\n \"application\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"createdBy\": \"<unknown>\",\n \"description\": \"<string>\",\n \"color\": \"<string>\",\n \"icon\": \"fa-bookmark, fa-bolt, fa-bullhorn, fa-certificate,fa-check-square-o, fa-cloud, fa-comments, fa-dollar, fa-exclamation-triangle, fa-file-text-o,fa-folder, fa-gift, fa-globe, fa-heartbeat, fa-leaf, fa-legal, fa-life-ring, fa-medkit, fa-money,fa-percent, fa-rocket, fa-signal, fa-university, fa-user-circle\",\n \"type\": \"<string>\",\n \"sourceApplicationId\": \"<string>\",\n \"sourceEnvironment\": \"<string>\",\n \"permissionsEnabled\": true,\n \"imported\": true,\n \"copied\": true,\n \"live\": true,\n \"uxriEnabled\": true,\n \"shortCode\": \"<string>\",\n \"defaultHomeScreen\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\"\n }\n },\n \"userGroups\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"recordDefault\": true,\n \"title\": \"<string>\",\n \"automatedUserGroup\": true,\n \"automatedUserGroupFieldLabel\": \"<string>\"\n }\n ],\n \"primaryField\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"field\": \"<unknown>\",\n \"name\": \"<string>\"\n },\n \"currentValueUserGroupMappings\": [\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 \"userGroup\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"recordDefault\": true,\n \"title\": \"<string>\",\n \"automatedUserGroup\": true,\n \"automatedUserGroupFieldLabel\": \"<string>\"\n }\n }\n ],\n \"automatedAccessEnabled\": true,\n \"automatedAccessFields\": [\n \"<unknown>\"\n ],\n \"automatedAccessFieldId\": \"<string>\",\n \"summaryFields\": [\n {\n \"priority\": 123,\n \"workflow\": \"<unknown>\",\n \"field\": \"<unknown>\",\n \"neo4jId\": \"<string>\",\n \"fieldId\": \"<string>\"\n }\n ],\n \"contains\": \"<unknown>\",\n \"canSelect\": \"<unknown>\",\n \"pluralizedRecordPrefix\": \"<string>\"\n },\n \"operators\": [],\n \"convertibleTo\": [\n \"<string>\"\n ],\n \"copyRecordAccessField\": true,\n \"currencyForNumberDisplayingFields\": \"<unknown>\",\n \"valueType\": \"<string>\",\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 \"discrete\": true,\n \"currentValuesFromOtherField\": \"<unknown>\",\n \"formatForNumberDisplayingFields\": \"<unknown>\",\n \"crossWorkflowCalculation\": true,\n \"validTypeForCalculationInput\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.logicgate.com/api/v1/fields/{fieldId}")
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 \"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 \"workflow\": {\n \"recordCount\": 123,\n \"centralFramework\": true,\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"recordPrefix\": \"<string>\",\n \"allowGroups\": true,\n \"requireGroups\": true,\n \"xpos\": 123,\n \"ypos\": 123,\n \"priority\": 123,\n \"sla\": {\n \"enabled\": true,\n \"duration\": 123\n },\n \"allowAec\": true,\n \"allowRcsa\": true,\n \"sequence\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\"\n },\n \"application\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"createdBy\": \"<unknown>\",\n \"description\": \"<string>\",\n \"color\": \"<string>\",\n \"icon\": \"fa-bookmark, fa-bolt, fa-bullhorn, fa-certificate,fa-check-square-o, fa-cloud, fa-comments, fa-dollar, fa-exclamation-triangle, fa-file-text-o,fa-folder, fa-gift, fa-globe, fa-heartbeat, fa-leaf, fa-legal, fa-life-ring, fa-medkit, fa-money,fa-percent, fa-rocket, fa-signal, fa-university, fa-user-circle\",\n \"type\": \"<string>\",\n \"sourceApplicationId\": \"<string>\",\n \"sourceEnvironment\": \"<string>\",\n \"permissionsEnabled\": true,\n \"imported\": true,\n \"copied\": true,\n \"live\": true,\n \"uxriEnabled\": true,\n \"shortCode\": \"<string>\",\n \"defaultHomeScreen\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\"\n }\n },\n \"userGroups\": [\n {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"recordDefault\": true,\n \"title\": \"<string>\",\n \"automatedUserGroup\": true,\n \"automatedUserGroupFieldLabel\": \"<string>\"\n }\n ],\n \"primaryField\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"field\": \"<unknown>\",\n \"name\": \"<string>\"\n },\n \"currentValueUserGroupMappings\": [\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 \"userGroup\": {\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"recordDefault\": true,\n \"title\": \"<string>\",\n \"automatedUserGroup\": true,\n \"automatedUserGroupFieldLabel\": \"<string>\"\n }\n }\n ],\n \"automatedAccessEnabled\": true,\n \"automatedAccessFields\": [\n \"<unknown>\"\n ],\n \"automatedAccessFieldId\": \"<string>\",\n \"summaryFields\": [\n {\n \"priority\": 123,\n \"workflow\": \"<unknown>\",\n \"field\": \"<unknown>\",\n \"neo4jId\": \"<string>\",\n \"fieldId\": \"<string>\"\n }\n ],\n \"contains\": \"<unknown>\",\n \"canSelect\": \"<unknown>\",\n \"pluralizedRecordPrefix\": \"<string>\"\n },\n \"operators\": [],\n \"convertibleTo\": [\n \"<string>\"\n ],\n \"copyRecordAccessField\": true,\n \"currencyForNumberDisplayingFields\": \"<unknown>\",\n \"valueType\": \"<string>\",\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 \"discrete\": true,\n \"currentValuesFromOtherField\": \"<unknown>\",\n \"formatForNumberDisplayingFields\": \"<unknown>\",\n \"crossWorkflowCalculation\": true,\n \"validTypeForCalculationInput\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"fieldType": "TEXT",
"name": "<string>",
"labels": [
"<string>"
],
"label": "<string>",
"tooltip": "<string>",
"helpText": "<string>",
"format": "CURRENCY",
"currency": "EUR",
"enabledForRecordAccess": true,
"analysisEstimate": "CONFIDENCE",
"analysisType": "CONTACT_FREQUENCY",
"operators": [
"EQUALS"
],
"convertibleTo": [
"<string>"
],
"copyRecordAccessField": true,
"valueType": "<string>",
"global": true,
"requiresUniqueValue": true,
"analysisOutputField": true,
"discrete": true,
"crossWorkflowCalculation": true,
"validTypeForCalculationInput": true
}{
"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
An entity used to manage input fields used to capture record data for different workflows.
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 Available options:
CONTACT_FREQUENCY, LOSS_EVENT_FREQUENCY, LOSS_MAGNITUDE, PRIMARY_PRODUCTIVITY_LOSS, PRIMARY_RESPONSE_LOSS, PRIMARY_REPLACEMENT_LOSS, PRIMARY_COMPETITIVE_ADVANTAGE_LOSS, PRIMARY_FINES_OR_JUDGEMENTS_LOSS, PRIMARY_REPUTATION_DAMAGE_LOSS, PROBABILITY_OF_ACTION, RESISTANCE_STRENGTH, SECONDARY_PRODUCTIVITY_LOSS, SECONDARY_RESPONSE_LOSS, SECONDARY_REPLACEMENT_LOSS, SECONDARY_COMPETITIVE_ADVANTAGE_LOSS, SECONDARY_FINES_OR_JUDGEMENTS_LOSS, SECONDARY_REPUTATION_DAMAGE_LOSS, SECONDARY_LOSS_EVENT_FREQUENCY, SECONDARY_LOSS_MAGNITUDE, THREAT_CAPABILITY, THREAT_EVENT_FREQUENCY, VULNERABILITY Response
OK
- Option 1
- Option 2
An entity used to manage input fields used to capture record data for different workflows.
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 Available options:
CONTACT_FREQUENCY, LOSS_EVENT_FREQUENCY, LOSS_MAGNITUDE, PRIMARY_PRODUCTIVITY_LOSS, PRIMARY_RESPONSE_LOSS, PRIMARY_REPLACEMENT_LOSS, PRIMARY_COMPETITIVE_ADVANTAGE_LOSS, PRIMARY_FINES_OR_JUDGEMENTS_LOSS, PRIMARY_REPUTATION_DAMAGE_LOSS, PROBABILITY_OF_ACTION, RESISTANCE_STRENGTH, SECONDARY_PRODUCTIVITY_LOSS, SECONDARY_RESPONSE_LOSS, SECONDARY_REPLACEMENT_LOSS, SECONDARY_COMPETITIVE_ADVANTAGE_LOSS, SECONDARY_FINES_OR_JUDGEMENTS_LOSS, SECONDARY_REPUTATION_DAMAGE_LOSS, SECONDARY_LOSS_EVENT_FREQUENCY, SECONDARY_LOSS_MAGNITUDE, THREAT_CAPABILITY, THREAT_EVENT_FREQUENCY, VULNERABILITY 
