Update a job with a given jobId.
curl --request PATCH \
--url https://{subdomain}.logicgate.com/api/v2/jobs/{jobId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"enabled": true,
"trigger": {
"id": "<string>",
"workflowId": "<string>",
"sourceId": "<string>"
},
"operationConditionGroups": [
{
"id": "<string>",
"priority": 123,
"conditionsEnabled": true,
"conditionsUseAndOperator": true,
"conditions": [
{
"id": "<string>",
"priority": 123,
"fieldId": "<string>",
"currentValue": "<string>"
}
],
"operations": [
{
"crossflow": {
"id": "<string>",
"calcSpecificToStep": true,
"calcStep": {
"name": "<string>",
"description": "<string>",
"priority": 123,
"xpos": 123,
"ypos": 123,
"isPublic": true,
"commentsEnabled": true,
"documentsEnabled": true,
"externalUserMfaRequired": true,
"uxriEnabled": true,
"autofillEnabled": true,
"sla": {
"enabled": true,
"duration": 123
},
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"end": true,
"contains": "<unknown>",
"origin": true,
"chain": true
},
"fieldWorkflowId": "<string>",
"fieldWorkflow": "<string>",
"priority": 123,
"customFieldId": "<string>",
"customField": "<string>"
},
"values": [
"<string>"
],
"clearField": true,
"id": "<string>",
"priority": 123,
"enabled": true,
"operationType": "<string>"
}
]
}
],
"incomplete": true
}
'import requests
url = "https://{subdomain}.logicgate.com/api/v2/jobs/{jobId}"
payload = {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"enabled": True,
"trigger": {
"id": "<string>",
"workflowId": "<string>",
"sourceId": "<string>"
},
"operationConditionGroups": [
{
"id": "<string>",
"priority": 123,
"conditionsEnabled": True,
"conditionsUseAndOperator": True,
"conditions": [
{
"id": "<string>",
"priority": 123,
"fieldId": "<string>",
"currentValue": "<string>"
}
],
"operations": [
{
"crossflow": {
"id": "<string>",
"calcSpecificToStep": True,
"calcStep": {
"name": "<string>",
"description": "<string>",
"priority": 123,
"xpos": 123,
"ypos": 123,
"isPublic": True,
"commentsEnabled": True,
"documentsEnabled": True,
"externalUserMfaRequired": True,
"uxriEnabled": True,
"autofillEnabled": True,
"sla": {
"enabled": True,
"duration": 123
},
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"end": True,
"contains": "<unknown>",
"origin": True,
"chain": True
},
"fieldWorkflowId": "<string>",
"fieldWorkflow": "<string>",
"priority": 123,
"customFieldId": "<string>",
"customField": "<string>"
},
"values": ["<string>"],
"clearField": True,
"id": "<string>",
"priority": 123,
"enabled": True,
"operationType": "<string>"
}
]
}
],
"incomplete": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '<string>',
name: '<string>',
description: '<string>',
enabled: true,
trigger: {id: '<string>', workflowId: '<string>', sourceId: '<string>'},
operationConditionGroups: [
{
id: '<string>',
priority: 123,
conditionsEnabled: true,
conditionsUseAndOperator: true,
conditions: [{id: '<string>', priority: 123, fieldId: '<string>', currentValue: '<string>'}],
operations: [
{
crossflow: {
id: '<string>',
calcSpecificToStep: true,
calcStep: {
name: '<string>',
description: '<string>',
priority: 123,
xpos: 123,
ypos: 123,
isPublic: true,
commentsEnabled: true,
documentsEnabled: true,
externalUserMfaRequired: true,
uxriEnabled: true,
autofillEnabled: true,
sla: {enabled: true, duration: 123},
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
end: true,
contains: '<unknown>',
origin: true,
chain: true
},
fieldWorkflowId: '<string>',
fieldWorkflow: '<string>',
priority: 123,
customFieldId: '<string>',
customField: '<string>'
},
values: ['<string>'],
clearField: true,
id: '<string>',
priority: 123,
enabled: true,
operationType: '<string>'
}
]
}
],
incomplete: true
})
};
fetch('https://{subdomain}.logicgate.com/api/v2/jobs/{jobId}', 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/v2/jobs/{jobId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'id' => '<string>',
'name' => '<string>',
'description' => '<string>',
'enabled' => true,
'trigger' => [
'id' => '<string>',
'workflowId' => '<string>',
'sourceId' => '<string>'
],
'operationConditionGroups' => [
[
'id' => '<string>',
'priority' => 123,
'conditionsEnabled' => true,
'conditionsUseAndOperator' => true,
'conditions' => [
[
'id' => '<string>',
'priority' => 123,
'fieldId' => '<string>',
'currentValue' => '<string>'
]
],
'operations' => [
[
'crossflow' => [
'id' => '<string>',
'calcSpecificToStep' => true,
'calcStep' => [
'name' => '<string>',
'description' => '<string>',
'priority' => 123,
'xpos' => 123,
'ypos' => 123,
'isPublic' => true,
'commentsEnabled' => true,
'documentsEnabled' => true,
'externalUserMfaRequired' => true,
'uxriEnabled' => true,
'autofillEnabled' => true,
'sla' => [
'enabled' => true,
'duration' => 123
],
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'end' => true,
'contains' => '<unknown>',
'origin' => true,
'chain' => true
],
'fieldWorkflowId' => '<string>',
'fieldWorkflow' => '<string>',
'priority' => 123,
'customFieldId' => '<string>',
'customField' => '<string>'
],
'values' => [
'<string>'
],
'clearField' => true,
'id' => '<string>',
'priority' => 123,
'enabled' => true,
'operationType' => '<string>'
]
]
]
],
'incomplete' => 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/v2/jobs/{jobId}"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"enabled\": true,\n \"trigger\": {\n \"id\": \"<string>\",\n \"workflowId\": \"<string>\",\n \"sourceId\": \"<string>\"\n },\n \"operationConditionGroups\": [\n {\n \"id\": \"<string>\",\n \"priority\": 123,\n \"conditionsEnabled\": true,\n \"conditionsUseAndOperator\": true,\n \"conditions\": [\n {\n \"id\": \"<string>\",\n \"priority\": 123,\n \"fieldId\": \"<string>\",\n \"currentValue\": \"<string>\"\n }\n ],\n \"operations\": [\n {\n \"crossflow\": {\n \"id\": \"<string>\",\n \"calcSpecificToStep\": true,\n \"calcStep\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"priority\": 123,\n \"xpos\": 123,\n \"ypos\": 123,\n \"isPublic\": true,\n \"commentsEnabled\": true,\n \"documentsEnabled\": true,\n \"externalUserMfaRequired\": true,\n \"uxriEnabled\": true,\n \"autofillEnabled\": true,\n \"sla\": {\n \"enabled\": true,\n \"duration\": 123\n },\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"end\": true,\n \"contains\": \"<unknown>\",\n \"origin\": true,\n \"chain\": true\n },\n \"fieldWorkflowId\": \"<string>\",\n \"fieldWorkflow\": \"<string>\",\n \"priority\": 123,\n \"customFieldId\": \"<string>\",\n \"customField\": \"<string>\"\n },\n \"values\": [\n \"<string>\"\n ],\n \"clearField\": true,\n \"id\": \"<string>\",\n \"priority\": 123,\n \"enabled\": true,\n \"operationType\": \"<string>\"\n }\n ]\n }\n ],\n \"incomplete\": 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/v2/jobs/{jobId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"enabled\": true,\n \"trigger\": {\n \"id\": \"<string>\",\n \"workflowId\": \"<string>\",\n \"sourceId\": \"<string>\"\n },\n \"operationConditionGroups\": [\n {\n \"id\": \"<string>\",\n \"priority\": 123,\n \"conditionsEnabled\": true,\n \"conditionsUseAndOperator\": true,\n \"conditions\": [\n {\n \"id\": \"<string>\",\n \"priority\": 123,\n \"fieldId\": \"<string>\",\n \"currentValue\": \"<string>\"\n }\n ],\n \"operations\": [\n {\n \"crossflow\": {\n \"id\": \"<string>\",\n \"calcSpecificToStep\": true,\n \"calcStep\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"priority\": 123,\n \"xpos\": 123,\n \"ypos\": 123,\n \"isPublic\": true,\n \"commentsEnabled\": true,\n \"documentsEnabled\": true,\n \"externalUserMfaRequired\": true,\n \"uxriEnabled\": true,\n \"autofillEnabled\": true,\n \"sla\": {\n \"enabled\": true,\n \"duration\": 123\n },\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"end\": true,\n \"contains\": \"<unknown>\",\n \"origin\": true,\n \"chain\": true\n },\n \"fieldWorkflowId\": \"<string>\",\n \"fieldWorkflow\": \"<string>\",\n \"priority\": 123,\n \"customFieldId\": \"<string>\",\n \"customField\": \"<string>\"\n },\n \"values\": [\n \"<string>\"\n ],\n \"clearField\": true,\n \"id\": \"<string>\",\n \"priority\": 123,\n \"enabled\": true,\n \"operationType\": \"<string>\"\n }\n ]\n }\n ],\n \"incomplete\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.logicgate.com/api/v2/jobs/{jobId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"enabled\": true,\n \"trigger\": {\n \"id\": \"<string>\",\n \"workflowId\": \"<string>\",\n \"sourceId\": \"<string>\"\n },\n \"operationConditionGroups\": [\n {\n \"id\": \"<string>\",\n \"priority\": 123,\n \"conditionsEnabled\": true,\n \"conditionsUseAndOperator\": true,\n \"conditions\": [\n {\n \"id\": \"<string>\",\n \"priority\": 123,\n \"fieldId\": \"<string>\",\n \"currentValue\": \"<string>\"\n }\n ],\n \"operations\": [\n {\n \"crossflow\": {\n \"id\": \"<string>\",\n \"calcSpecificToStep\": true,\n \"calcStep\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"priority\": 123,\n \"xpos\": 123,\n \"ypos\": 123,\n \"isPublic\": true,\n \"commentsEnabled\": true,\n \"documentsEnabled\": true,\n \"externalUserMfaRequired\": true,\n \"uxriEnabled\": true,\n \"autofillEnabled\": true,\n \"sla\": {\n \"enabled\": true,\n \"duration\": 123\n },\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"end\": true,\n \"contains\": \"<unknown>\",\n \"origin\": true,\n \"chain\": true\n },\n \"fieldWorkflowId\": \"<string>\",\n \"fieldWorkflow\": \"<string>\",\n \"priority\": 123,\n \"customFieldId\": \"<string>\",\n \"customField\": \"<string>\"\n },\n \"values\": [\n \"<string>\"\n ],\n \"clearField\": true,\n \"id\": \"<string>\",\n \"priority\": 123,\n \"enabled\": true,\n \"operationType\": \"<string>\"\n }\n ]\n }\n ],\n \"incomplete\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"enabled": true,
"trigger": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"workflowId": "<string>",
"workflow": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"recordPrefix": "<string>",
"allowGroups": true,
"requireGroups": true,
"xpos": 123,
"ypos": 123,
"sla": {
"enabled": true,
"duration": 123
},
"allowAec": true,
"applicationId": "<string>",
"workflowType": "WORKFLOW",
"application": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "<string>",
"color": "<string>",
"icon": "<string>",
"live": true,
"permissionsEnabled": true
}
},
"sourceId": "<string>",
"source": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"priority": 123,
"userGroupOperationType": "FULL_ACCESS",
"xpos": 123,
"ypos": 123,
"sla": {
"enabled": true,
"duration": 123
},
"assignableUserType": "APP_AND_EXTERNAL_USERS",
"autofillEnabled": true,
"stepType": "ORIGIN",
"workflow": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"recordPrefix": "<string>",
"allowGroups": true,
"requireGroups": true,
"xpos": 123,
"ypos": 123,
"sla": {
"enabled": true,
"duration": 123
},
"allowAec": true,
"applicationId": "<string>",
"workflowType": "WORKFLOW",
"application": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "<string>",
"color": "<string>",
"icon": "<string>",
"live": true,
"permissionsEnabled": true
}
},
"public": true
},
"invalidatedByStepDeletion": true,
"triggerType": "<string>"
},
"jobExecutions": "<string>",
"jobHistory": "<string>",
"recentExecution": "<string>",
"jobType": "<string>",
"operationConditionGroups": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"priority": 123,
"conditionsEnabled": true,
"conditionsUseAndOperator": true,
"conditions": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"conditionType": "<string>",
"operator": "EQUALS",
"priority": 123,
"field": {
"id": "<string>",
"name": "<string>",
"label": "<string>",
"fieldType": "<string>",
"required": true,
"readOnly": true,
"currentValues": [
{
"id": "<string>",
"active": true,
"archived": true,
"created": "2023-11-07T05:31:56Z",
"discriminator": "<string>",
"updated": "2023-11-07T05:31:56Z",
"textValue": "<string>",
"numericValue": 123,
"temporalValue": "2023-11-07T05:31:56Z",
"valueType": "<string>"
}
],
"operators": [
"EQUALS"
]
},
"currentValue": "<string>"
}
],
"operations": [
{
"crossflow": {
"id": "<string>",
"crossflowReducer": "NEWEST",
"calcSpecificToStep": true,
"calcStep": {
"stepType": "ORIGIN",
"name": "<string>",
"description": "<string>",
"priority": 123,
"userGroupOperationType": "FULL_ACCESS",
"xpos": 123,
"ypos": 123,
"isPublic": true,
"commentsEnabled": true,
"documentsEnabled": true,
"externalUserMfaRequired": true,
"uxriEnabled": true,
"autofillEnabled": true,
"sla": {
"enabled": true,
"duration": 123
},
"assignableUserType": "APP_AND_EXTERNAL_USERS",
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"end": true,
"origin": true,
"chain": true
},
"systemField": "NAME",
"fieldWorkflow": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"recordPrefix": "<string>",
"allowGroups": true,
"requireGroups": true,
"xpos": 123,
"ypos": 123,
"sla": {
"enabled": true,
"duration": 123
},
"allowAec": true,
"applicationId": "<string>",
"workflowType": "WORKFLOW",
"application": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "<string>",
"color": "<string>",
"icon": "<string>",
"live": true,
"permissionsEnabled": true
}
},
"fieldWorkflowId": "<string>",
"customField": {
"id": "<string>",
"name": "<string>",
"label": "<string>",
"fieldType": "<string>",
"required": true,
"readOnly": true,
"currentValues": [
{
"id": "<string>",
"active": true,
"archived": true,
"created": "2023-11-07T05:31:56Z",
"discriminator": "<string>",
"updated": "2023-11-07T05:31:56Z",
"textValue": "<string>",
"numericValue": 123,
"temporalValue": "2023-11-07T05:31:56Z",
"valueType": "<string>"
}
],
"operators": [
"EQUALS"
]
},
"customFieldId": "<string>",
"priority": 123
},
"field": {
"id": "<string>",
"name": "<string>",
"label": "<string>",
"fieldType": "<string>",
"required": true,
"readOnly": true,
"currentValues": [
{
"id": "<string>",
"active": true,
"archived": true,
"created": "2023-11-07T05:31:56Z",
"discriminator": "<string>",
"updated": "2023-11-07T05:31:56Z",
"textValue": "<string>",
"numericValue": 123,
"temporalValue": "2023-11-07T05:31:56Z",
"valueType": "<string>"
}
],
"operators": [
"EQUALS"
]
},
"fieldWorkflowId": "<string>",
"values": [
"<string>"
],
"clearField": true,
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"type": "AEC_FAILED_JOB_SUMMARY",
"priority": 123,
"enabled": true,
"operationType": "<string>"
}
]
}
],
"creator": "<string>"
}Job
Update a job with a given jobId
PATCH
/
api
/
v2
/
jobs
/
{jobId}
Update a job with a given jobId.
curl --request PATCH \
--url https://{subdomain}.logicgate.com/api/v2/jobs/{jobId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"enabled": true,
"trigger": {
"id": "<string>",
"workflowId": "<string>",
"sourceId": "<string>"
},
"operationConditionGroups": [
{
"id": "<string>",
"priority": 123,
"conditionsEnabled": true,
"conditionsUseAndOperator": true,
"conditions": [
{
"id": "<string>",
"priority": 123,
"fieldId": "<string>",
"currentValue": "<string>"
}
],
"operations": [
{
"crossflow": {
"id": "<string>",
"calcSpecificToStep": true,
"calcStep": {
"name": "<string>",
"description": "<string>",
"priority": 123,
"xpos": 123,
"ypos": 123,
"isPublic": true,
"commentsEnabled": true,
"documentsEnabled": true,
"externalUserMfaRequired": true,
"uxriEnabled": true,
"autofillEnabled": true,
"sla": {
"enabled": true,
"duration": 123
},
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"end": true,
"contains": "<unknown>",
"origin": true,
"chain": true
},
"fieldWorkflowId": "<string>",
"fieldWorkflow": "<string>",
"priority": 123,
"customFieldId": "<string>",
"customField": "<string>"
},
"values": [
"<string>"
],
"clearField": true,
"id": "<string>",
"priority": 123,
"enabled": true,
"operationType": "<string>"
}
]
}
],
"incomplete": true
}
'import requests
url = "https://{subdomain}.logicgate.com/api/v2/jobs/{jobId}"
payload = {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"enabled": True,
"trigger": {
"id": "<string>",
"workflowId": "<string>",
"sourceId": "<string>"
},
"operationConditionGroups": [
{
"id": "<string>",
"priority": 123,
"conditionsEnabled": True,
"conditionsUseAndOperator": True,
"conditions": [
{
"id": "<string>",
"priority": 123,
"fieldId": "<string>",
"currentValue": "<string>"
}
],
"operations": [
{
"crossflow": {
"id": "<string>",
"calcSpecificToStep": True,
"calcStep": {
"name": "<string>",
"description": "<string>",
"priority": 123,
"xpos": 123,
"ypos": 123,
"isPublic": True,
"commentsEnabled": True,
"documentsEnabled": True,
"externalUserMfaRequired": True,
"uxriEnabled": True,
"autofillEnabled": True,
"sla": {
"enabled": True,
"duration": 123
},
"id": "<string>",
"active": True,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"end": True,
"contains": "<unknown>",
"origin": True,
"chain": True
},
"fieldWorkflowId": "<string>",
"fieldWorkflow": "<string>",
"priority": 123,
"customFieldId": "<string>",
"customField": "<string>"
},
"values": ["<string>"],
"clearField": True,
"id": "<string>",
"priority": 123,
"enabled": True,
"operationType": "<string>"
}
]
}
],
"incomplete": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '<string>',
name: '<string>',
description: '<string>',
enabled: true,
trigger: {id: '<string>', workflowId: '<string>', sourceId: '<string>'},
operationConditionGroups: [
{
id: '<string>',
priority: 123,
conditionsEnabled: true,
conditionsUseAndOperator: true,
conditions: [{id: '<string>', priority: 123, fieldId: '<string>', currentValue: '<string>'}],
operations: [
{
crossflow: {
id: '<string>',
calcSpecificToStep: true,
calcStep: {
name: '<string>',
description: '<string>',
priority: 123,
xpos: 123,
ypos: 123,
isPublic: true,
commentsEnabled: true,
documentsEnabled: true,
externalUserMfaRequired: true,
uxriEnabled: true,
autofillEnabled: true,
sla: {enabled: true, duration: 123},
id: '<string>',
active: true,
created: '2023-11-07T05:31:56Z',
updated: '2023-11-07T05:31:56Z',
end: true,
contains: '<unknown>',
origin: true,
chain: true
},
fieldWorkflowId: '<string>',
fieldWorkflow: '<string>',
priority: 123,
customFieldId: '<string>',
customField: '<string>'
},
values: ['<string>'],
clearField: true,
id: '<string>',
priority: 123,
enabled: true,
operationType: '<string>'
}
]
}
],
incomplete: true
})
};
fetch('https://{subdomain}.logicgate.com/api/v2/jobs/{jobId}', 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/v2/jobs/{jobId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'id' => '<string>',
'name' => '<string>',
'description' => '<string>',
'enabled' => true,
'trigger' => [
'id' => '<string>',
'workflowId' => '<string>',
'sourceId' => '<string>'
],
'operationConditionGroups' => [
[
'id' => '<string>',
'priority' => 123,
'conditionsEnabled' => true,
'conditionsUseAndOperator' => true,
'conditions' => [
[
'id' => '<string>',
'priority' => 123,
'fieldId' => '<string>',
'currentValue' => '<string>'
]
],
'operations' => [
[
'crossflow' => [
'id' => '<string>',
'calcSpecificToStep' => true,
'calcStep' => [
'name' => '<string>',
'description' => '<string>',
'priority' => 123,
'xpos' => 123,
'ypos' => 123,
'isPublic' => true,
'commentsEnabled' => true,
'documentsEnabled' => true,
'externalUserMfaRequired' => true,
'uxriEnabled' => true,
'autofillEnabled' => true,
'sla' => [
'enabled' => true,
'duration' => 123
],
'id' => '<string>',
'active' => true,
'created' => '2023-11-07T05:31:56Z',
'updated' => '2023-11-07T05:31:56Z',
'end' => true,
'contains' => '<unknown>',
'origin' => true,
'chain' => true
],
'fieldWorkflowId' => '<string>',
'fieldWorkflow' => '<string>',
'priority' => 123,
'customFieldId' => '<string>',
'customField' => '<string>'
],
'values' => [
'<string>'
],
'clearField' => true,
'id' => '<string>',
'priority' => 123,
'enabled' => true,
'operationType' => '<string>'
]
]
]
],
'incomplete' => 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/v2/jobs/{jobId}"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"enabled\": true,\n \"trigger\": {\n \"id\": \"<string>\",\n \"workflowId\": \"<string>\",\n \"sourceId\": \"<string>\"\n },\n \"operationConditionGroups\": [\n {\n \"id\": \"<string>\",\n \"priority\": 123,\n \"conditionsEnabled\": true,\n \"conditionsUseAndOperator\": true,\n \"conditions\": [\n {\n \"id\": \"<string>\",\n \"priority\": 123,\n \"fieldId\": \"<string>\",\n \"currentValue\": \"<string>\"\n }\n ],\n \"operations\": [\n {\n \"crossflow\": {\n \"id\": \"<string>\",\n \"calcSpecificToStep\": true,\n \"calcStep\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"priority\": 123,\n \"xpos\": 123,\n \"ypos\": 123,\n \"isPublic\": true,\n \"commentsEnabled\": true,\n \"documentsEnabled\": true,\n \"externalUserMfaRequired\": true,\n \"uxriEnabled\": true,\n \"autofillEnabled\": true,\n \"sla\": {\n \"enabled\": true,\n \"duration\": 123\n },\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"end\": true,\n \"contains\": \"<unknown>\",\n \"origin\": true,\n \"chain\": true\n },\n \"fieldWorkflowId\": \"<string>\",\n \"fieldWorkflow\": \"<string>\",\n \"priority\": 123,\n \"customFieldId\": \"<string>\",\n \"customField\": \"<string>\"\n },\n \"values\": [\n \"<string>\"\n ],\n \"clearField\": true,\n \"id\": \"<string>\",\n \"priority\": 123,\n \"enabled\": true,\n \"operationType\": \"<string>\"\n }\n ]\n }\n ],\n \"incomplete\": 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/v2/jobs/{jobId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"enabled\": true,\n \"trigger\": {\n \"id\": \"<string>\",\n \"workflowId\": \"<string>\",\n \"sourceId\": \"<string>\"\n },\n \"operationConditionGroups\": [\n {\n \"id\": \"<string>\",\n \"priority\": 123,\n \"conditionsEnabled\": true,\n \"conditionsUseAndOperator\": true,\n \"conditions\": [\n {\n \"id\": \"<string>\",\n \"priority\": 123,\n \"fieldId\": \"<string>\",\n \"currentValue\": \"<string>\"\n }\n ],\n \"operations\": [\n {\n \"crossflow\": {\n \"id\": \"<string>\",\n \"calcSpecificToStep\": true,\n \"calcStep\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"priority\": 123,\n \"xpos\": 123,\n \"ypos\": 123,\n \"isPublic\": true,\n \"commentsEnabled\": true,\n \"documentsEnabled\": true,\n \"externalUserMfaRequired\": true,\n \"uxriEnabled\": true,\n \"autofillEnabled\": true,\n \"sla\": {\n \"enabled\": true,\n \"duration\": 123\n },\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"end\": true,\n \"contains\": \"<unknown>\",\n \"origin\": true,\n \"chain\": true\n },\n \"fieldWorkflowId\": \"<string>\",\n \"fieldWorkflow\": \"<string>\",\n \"priority\": 123,\n \"customFieldId\": \"<string>\",\n \"customField\": \"<string>\"\n },\n \"values\": [\n \"<string>\"\n ],\n \"clearField\": true,\n \"id\": \"<string>\",\n \"priority\": 123,\n \"enabled\": true,\n \"operationType\": \"<string>\"\n }\n ]\n }\n ],\n \"incomplete\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.logicgate.com/api/v2/jobs/{jobId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"enabled\": true,\n \"trigger\": {\n \"id\": \"<string>\",\n \"workflowId\": \"<string>\",\n \"sourceId\": \"<string>\"\n },\n \"operationConditionGroups\": [\n {\n \"id\": \"<string>\",\n \"priority\": 123,\n \"conditionsEnabled\": true,\n \"conditionsUseAndOperator\": true,\n \"conditions\": [\n {\n \"id\": \"<string>\",\n \"priority\": 123,\n \"fieldId\": \"<string>\",\n \"currentValue\": \"<string>\"\n }\n ],\n \"operations\": [\n {\n \"crossflow\": {\n \"id\": \"<string>\",\n \"calcSpecificToStep\": true,\n \"calcStep\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"priority\": 123,\n \"xpos\": 123,\n \"ypos\": 123,\n \"isPublic\": true,\n \"commentsEnabled\": true,\n \"documentsEnabled\": true,\n \"externalUserMfaRequired\": true,\n \"uxriEnabled\": true,\n \"autofillEnabled\": true,\n \"sla\": {\n \"enabled\": true,\n \"duration\": 123\n },\n \"id\": \"<string>\",\n \"active\": true,\n \"created\": \"2023-11-07T05:31:56Z\",\n \"updated\": \"2023-11-07T05:31:56Z\",\n \"end\": true,\n \"contains\": \"<unknown>\",\n \"origin\": true,\n \"chain\": true\n },\n \"fieldWorkflowId\": \"<string>\",\n \"fieldWorkflow\": \"<string>\",\n \"priority\": 123,\n \"customFieldId\": \"<string>\",\n \"customField\": \"<string>\"\n },\n \"values\": [\n \"<string>\"\n ],\n \"clearField\": true,\n \"id\": \"<string>\",\n \"priority\": 123,\n \"enabled\": true,\n \"operationType\": \"<string>\"\n }\n ]\n }\n ],\n \"incomplete\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"enabled": true,
"trigger": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"workflowId": "<string>",
"workflow": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"recordPrefix": "<string>",
"allowGroups": true,
"requireGroups": true,
"xpos": 123,
"ypos": 123,
"sla": {
"enabled": true,
"duration": 123
},
"allowAec": true,
"applicationId": "<string>",
"workflowType": "WORKFLOW",
"application": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "<string>",
"color": "<string>",
"icon": "<string>",
"live": true,
"permissionsEnabled": true
}
},
"sourceId": "<string>",
"source": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"priority": 123,
"userGroupOperationType": "FULL_ACCESS",
"xpos": 123,
"ypos": 123,
"sla": {
"enabled": true,
"duration": 123
},
"assignableUserType": "APP_AND_EXTERNAL_USERS",
"autofillEnabled": true,
"stepType": "ORIGIN",
"workflow": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"recordPrefix": "<string>",
"allowGroups": true,
"requireGroups": true,
"xpos": 123,
"ypos": 123,
"sla": {
"enabled": true,
"duration": 123
},
"allowAec": true,
"applicationId": "<string>",
"workflowType": "WORKFLOW",
"application": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "<string>",
"color": "<string>",
"icon": "<string>",
"live": true,
"permissionsEnabled": true
}
},
"public": true
},
"invalidatedByStepDeletion": true,
"triggerType": "<string>"
},
"jobExecutions": "<string>",
"jobHistory": "<string>",
"recentExecution": "<string>",
"jobType": "<string>",
"operationConditionGroups": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"priority": 123,
"conditionsEnabled": true,
"conditionsUseAndOperator": true,
"conditions": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"conditionType": "<string>",
"operator": "EQUALS",
"priority": 123,
"field": {
"id": "<string>",
"name": "<string>",
"label": "<string>",
"fieldType": "<string>",
"required": true,
"readOnly": true,
"currentValues": [
{
"id": "<string>",
"active": true,
"archived": true,
"created": "2023-11-07T05:31:56Z",
"discriminator": "<string>",
"updated": "2023-11-07T05:31:56Z",
"textValue": "<string>",
"numericValue": 123,
"temporalValue": "2023-11-07T05:31:56Z",
"valueType": "<string>"
}
],
"operators": [
"EQUALS"
]
},
"currentValue": "<string>"
}
],
"operations": [
{
"crossflow": {
"id": "<string>",
"crossflowReducer": "NEWEST",
"calcSpecificToStep": true,
"calcStep": {
"stepType": "ORIGIN",
"name": "<string>",
"description": "<string>",
"priority": 123,
"userGroupOperationType": "FULL_ACCESS",
"xpos": 123,
"ypos": 123,
"isPublic": true,
"commentsEnabled": true,
"documentsEnabled": true,
"externalUserMfaRequired": true,
"uxriEnabled": true,
"autofillEnabled": true,
"sla": {
"enabled": true,
"duration": 123
},
"assignableUserType": "APP_AND_EXTERNAL_USERS",
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"end": true,
"origin": true,
"chain": true
},
"systemField": "NAME",
"fieldWorkflow": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"recordPrefix": "<string>",
"allowGroups": true,
"requireGroups": true,
"xpos": 123,
"ypos": 123,
"sla": {
"enabled": true,
"duration": 123
},
"allowAec": true,
"applicationId": "<string>",
"workflowType": "WORKFLOW",
"application": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "<string>",
"color": "<string>",
"icon": "<string>",
"live": true,
"permissionsEnabled": true
}
},
"fieldWorkflowId": "<string>",
"customField": {
"id": "<string>",
"name": "<string>",
"label": "<string>",
"fieldType": "<string>",
"required": true,
"readOnly": true,
"currentValues": [
{
"id": "<string>",
"active": true,
"archived": true,
"created": "2023-11-07T05:31:56Z",
"discriminator": "<string>",
"updated": "2023-11-07T05:31:56Z",
"textValue": "<string>",
"numericValue": 123,
"temporalValue": "2023-11-07T05:31:56Z",
"valueType": "<string>"
}
],
"operators": [
"EQUALS"
]
},
"customFieldId": "<string>",
"priority": 123
},
"field": {
"id": "<string>",
"name": "<string>",
"label": "<string>",
"fieldType": "<string>",
"required": true,
"readOnly": true,
"currentValues": [
{
"id": "<string>",
"active": true,
"archived": true,
"created": "2023-11-07T05:31:56Z",
"discriminator": "<string>",
"updated": "2023-11-07T05:31:56Z",
"textValue": "<string>",
"numericValue": 123,
"temporalValue": "2023-11-07T05:31:56Z",
"valueType": "<string>"
}
],
"operators": [
"EQUALS"
]
},
"fieldWorkflowId": "<string>",
"values": [
"<string>"
],
"clearField": true,
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"type": "AEC_FAILED_JOB_SUMMARY",
"priority": 123,
"enabled": true,
"operationType": "<string>"
}
]
}
],
"creator": "<string>"
}Authorizations
ApiTokenbasic
Body
application/json
Response
200 - application/json
OK

