Create a Record that is based on a Step.
curl --request POST \
--url https://{subdomain}.logicgate.com/api/v1/records/steps \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"stepId": "<string>",
"fields": [
{
"fieldId": "<string>",
"values": [
"<string>"
],
"aiReason": "<string>",
"aiConfidence": "<string>",
"aiSources": [
{
"name": "<string>"
}
]
}
],
"recordDueDate": "<string>",
"assigneeEmailAddress": "<string>"
}
'import requests
url = "https://{subdomain}.logicgate.com/api/v1/records/steps"
payload = {
"stepId": "<string>",
"fields": [
{
"fieldId": "<string>",
"values": ["<string>"],
"aiReason": "<string>",
"aiConfidence": "<string>",
"aiSources": [{ "name": "<string>" }]
}
],
"recordDueDate": "<string>",
"assigneeEmailAddress": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
stepId: '<string>',
fields: [
{
fieldId: '<string>',
values: ['<string>'],
aiReason: '<string>',
aiConfidence: '<string>',
aiSources: [{name: '<string>'}]
}
],
recordDueDate: '<string>',
assigneeEmailAddress: '<string>'
})
};
fetch('https://{subdomain}.logicgate.com/api/v1/records/steps', 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/records/steps",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'stepId' => '<string>',
'fields' => [
[
'fieldId' => '<string>',
'values' => [
'<string>'
],
'aiReason' => '<string>',
'aiConfidence' => '<string>',
'aiSources' => [
[
'name' => '<string>'
]
]
]
],
'recordDueDate' => '<string>',
'assigneeEmailAddress' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{subdomain}.logicgate.com/api/v1/records/steps"
payload := strings.NewReader("{\n \"stepId\": \"<string>\",\n \"fields\": [\n {\n \"fieldId\": \"<string>\",\n \"values\": [\n \"<string>\"\n ],\n \"aiReason\": \"<string>\",\n \"aiConfidence\": \"<string>\",\n \"aiSources\": [\n {\n \"name\": \"<string>\"\n }\n ]\n }\n ],\n \"recordDueDate\": \"<string>\",\n \"assigneeEmailAddress\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{subdomain}.logicgate.com/api/v1/records/steps")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"stepId\": \"<string>\",\n \"fields\": [\n {\n \"fieldId\": \"<string>\",\n \"values\": [\n \"<string>\"\n ],\n \"aiReason\": \"<string>\",\n \"aiConfidence\": \"<string>\",\n \"aiSources\": [\n {\n \"name\": \"<string>\"\n }\n ]\n }\n ],\n \"recordDueDate\": \"<string>\",\n \"assigneeEmailAddress\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.logicgate.com/api/v1/records/steps")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"stepId\": \"<string>\",\n \"fields\": [\n {\n \"fieldId\": \"<string>\",\n \"values\": [\n \"<string>\"\n ],\n \"aiReason\": \"<string>\",\n \"aiConfidence\": \"<string>\",\n \"aiSources\": [\n {\n \"name\": \"<string>\"\n }\n ]\n }\n ],\n \"recordDueDate\": \"<string>\",\n \"assigneeEmailAddress\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"recordName": "<string>",
"primaryFieldValue": "<string>",
"status": "INACTIVE",
"recordDueDate": "2023-11-07T05:31:56Z",
"workflowDueDate": "2023-11-07T05:31:56Z",
"fields": [
{
"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"
]
}
],
"public": true
}{
"type": "<string>",
"title": "<string>",
"status": "400",
"detail": "<string>",
"instance": "<string>",
"message": "<string>"
}{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"recordName": "<string>",
"primaryFieldValue": "<string>",
"status": "INACTIVE",
"recordDueDate": "2023-11-07T05:31:56Z",
"workflowDueDate": "2023-11-07T05:31:56Z",
"fields": [
{
"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"
]
}
],
"public": true
}Record
Create a record that is based on a step
The Record will return with a status of ASSIGNED if a valid assignee email is given. It will otherwise return as NOT_ASSIGNED. The returned object is the newly created Record.
POST
/
api
/
v1
/
records
/
steps
Create a Record that is based on a Step.
curl --request POST \
--url https://{subdomain}.logicgate.com/api/v1/records/steps \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"stepId": "<string>",
"fields": [
{
"fieldId": "<string>",
"values": [
"<string>"
],
"aiReason": "<string>",
"aiConfidence": "<string>",
"aiSources": [
{
"name": "<string>"
}
]
}
],
"recordDueDate": "<string>",
"assigneeEmailAddress": "<string>"
}
'import requests
url = "https://{subdomain}.logicgate.com/api/v1/records/steps"
payload = {
"stepId": "<string>",
"fields": [
{
"fieldId": "<string>",
"values": ["<string>"],
"aiReason": "<string>",
"aiConfidence": "<string>",
"aiSources": [{ "name": "<string>" }]
}
],
"recordDueDate": "<string>",
"assigneeEmailAddress": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
stepId: '<string>',
fields: [
{
fieldId: '<string>',
values: ['<string>'],
aiReason: '<string>',
aiConfidence: '<string>',
aiSources: [{name: '<string>'}]
}
],
recordDueDate: '<string>',
assigneeEmailAddress: '<string>'
})
};
fetch('https://{subdomain}.logicgate.com/api/v1/records/steps', 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/records/steps",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'stepId' => '<string>',
'fields' => [
[
'fieldId' => '<string>',
'values' => [
'<string>'
],
'aiReason' => '<string>',
'aiConfidence' => '<string>',
'aiSources' => [
[
'name' => '<string>'
]
]
]
],
'recordDueDate' => '<string>',
'assigneeEmailAddress' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{subdomain}.logicgate.com/api/v1/records/steps"
payload := strings.NewReader("{\n \"stepId\": \"<string>\",\n \"fields\": [\n {\n \"fieldId\": \"<string>\",\n \"values\": [\n \"<string>\"\n ],\n \"aiReason\": \"<string>\",\n \"aiConfidence\": \"<string>\",\n \"aiSources\": [\n {\n \"name\": \"<string>\"\n }\n ]\n }\n ],\n \"recordDueDate\": \"<string>\",\n \"assigneeEmailAddress\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{subdomain}.logicgate.com/api/v1/records/steps")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"stepId\": \"<string>\",\n \"fields\": [\n {\n \"fieldId\": \"<string>\",\n \"values\": [\n \"<string>\"\n ],\n \"aiReason\": \"<string>\",\n \"aiConfidence\": \"<string>\",\n \"aiSources\": [\n {\n \"name\": \"<string>\"\n }\n ]\n }\n ],\n \"recordDueDate\": \"<string>\",\n \"assigneeEmailAddress\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.logicgate.com/api/v1/records/steps")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"stepId\": \"<string>\",\n \"fields\": [\n {\n \"fieldId\": \"<string>\",\n \"values\": [\n \"<string>\"\n ],\n \"aiReason\": \"<string>\",\n \"aiConfidence\": \"<string>\",\n \"aiSources\": [\n {\n \"name\": \"<string>\"\n }\n ]\n }\n ],\n \"recordDueDate\": \"<string>\",\n \"assigneeEmailAddress\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"recordName": "<string>",
"primaryFieldValue": "<string>",
"status": "INACTIVE",
"recordDueDate": "2023-11-07T05:31:56Z",
"workflowDueDate": "2023-11-07T05:31:56Z",
"fields": [
{
"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"
]
}
],
"public": true
}{
"type": "<string>",
"title": "<string>",
"status": "400",
"detail": "<string>",
"instance": "<string>",
"message": "<string>"
}{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"recordName": "<string>",
"primaryFieldValue": "<string>",
"status": "INACTIVE",
"recordDueDate": "2023-11-07T05:31:56Z",
"workflowDueDate": "2023-11-07T05:31:56Z",
"fields": [
{
"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"
]
}
],
"public": true
}Authorizations
ApiTokenbasic
Body
application/json
Response
OK

