curl --request POST \
--url https://api.example.com/v1/process \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"steps": [
{
"policyNames": [
"<string>"
],
"id": "<string>",
"label": "<string>",
"description": "<string>",
"prompt": "<string>",
"processId": "<string>",
"tokenIds": [
"<string>"
],
"roles": [
{
"p": "<string>",
"r": [
"<string>"
]
}
],
"orderedPolicies": [
"<string>"
],
"viewPolicyNames": [
"<string>"
],
"routing": {
"entityParamName": "<string>",
"entityId": "<string>",
"rules": [
{
"value": "<string>",
"stepId": "<string>"
}
]
},
"webhookUrls": "<string>",
"legalContractId": "<string>",
"frequency": "<string>",
"deadline": "<string>",
"deadlineType": "<string>",
"frequencyDate": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>",
"requireOrder": true,
"stepIdsDependencies": [
"<string>"
],
"stepIdsReprovalDependencies": [
"<string>"
],
"parameters": [
{
"label": "<string>",
"id": "<string>",
"name": "<string>",
"type": "ATTACHMENT",
"isUnique": true,
"isPermanent": true,
"isRequired": true,
"decimals": 123,
"stepId": "<string>",
"entityOperation": [
"WRITE"
],
"description": "<string>",
"parameterId": "<string>",
"entityId": "<string>",
"autoFillEntityRelation": "<string>",
"contractTemplateId": "<string>",
"contractTemplate": {
"templateEntityId": "<string>",
"templateEntityName": "<string>"
},
"showColumns": [
"<string>"
],
"viewColumns": [
"<string>"
],
"computedFormula": [
"<string>"
],
"readFromOtherMeasurementData": {
"processId": "<string>",
"stepId": "<string>",
"id": "<string>",
"parameterId": "<string>",
"readParameterId": "<string>",
"searchFieldId": "<string>",
"selectedFields": [
{
"readParameterId": "<string>",
"writeParameterId": "<string>"
}
]
},
"readFromEntity": {
"stepId": "<string>",
"id": "<string>",
"processId": "<string>",
"entityId": "<string>",
"readParameterId": "<string>",
"originParameterId": "<string>",
"targetParameterIds": [
"<string>"
],
"createdAt": "<string>",
"updatedAt": "<string>"
},
"optionItems": [
{
"value": "<string>",
"id": "<string>",
"label": "<string>",
"color": "<string>",
"meta": {},
"parameterId": "<string>",
"persisted": true,
"entityParameterId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
],
"apiCalls": [
{
"id": "<string>",
"type": "<string>",
"description": "<string>",
"sort": [
"<string>"
],
"parameters": [
"<unknown>"
],
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"sheetData": {
"sheetApiId": "<string>",
"id": "<string>",
"cell": "<string>",
"inputType": "<string>",
"parameterId": "<string>",
"entityId": "<string>",
"entityParameterId": "<string>",
"page": "<string>",
"formula": "<string>"
},
"advancedOptions": {
"id": "<string>",
"tooltip": "<string>",
"description": "<string>",
"placeholder": "<string>",
"max": 123,
"maxLength": 123,
"min": 123,
"minLength": 123,
"decimals": 123,
"sort": 123,
"currency": "USD",
"locale": "pt-BR",
"isHidden": true,
"rightFreeze": true,
"leftFreeze": true,
"hasCustomColor": true,
"hasMetadata": true,
"hiddenFrom": [
"<string>"
],
"isMultiple": true,
"insertOnEntity": "<string>",
"insertOnEntityMetadata": [
"<string>"
],
"dateFormat": "dd/MM/yyyy",
"entityOperation": [
"WRITE"
],
"parameterId": "<string>",
"entityParameterId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
},
"parameters": [
{
"id": "<string>",
"name": "<string>",
"label": "<string>",
"type": "ATTACHMENT",
"isUnique": true,
"isPermanent": true,
"stepId": "<string>",
"isRequired": true,
"decimals": 123,
"parameterId": "<string>",
"computedFormula": [
"<string>"
],
"createdAt": "<string>",
"updatedAt": "<string>",
"optionItems": [
{
"value": "<string>",
"id": "<string>",
"label": "<string>",
"color": "<string>",
"meta": {},
"parameterId": "<string>",
"persisted": true,
"entityParameterId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
],
"sheetData": {
"sheetApiId": "<string>",
"id": "<string>",
"cell": "<string>",
"inputType": "<string>",
"parameterId": "<string>",
"entityId": "<string>",
"entityParameterId": "<string>",
"page": "<string>",
"formula": "<string>"
},
"advancedOptions": {
"id": "<string>",
"tooltip": "<string>",
"description": "<string>",
"placeholder": "<string>",
"max": 123,
"maxLength": 123,
"min": 123,
"minLength": 123,
"decimals": 123,
"sort": 123,
"currency": "USD",
"locale": "pt-BR",
"isHidden": true,
"rightFreeze": true,
"leftFreeze": true,
"hasCustomColor": true,
"hasMetadata": true,
"hiddenFrom": [
"<string>"
],
"isMultiple": true,
"insertOnEntity": "<string>",
"insertOnEntityMetadata": [
"<string>"
],
"dateFormat": "dd/MM/yyyy",
"entityOperation": [
"WRITE"
],
"parameterId": "<string>",
"entityParameterId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
},
"autoFillEntityRelation": "<string>",
"readFromOtherMeasurementData": {
"processId": "<string>",
"stepId": "<string>",
"id": "<string>",
"parameterId": "<string>",
"readParameterId": "<string>",
"searchFieldId": "<string>",
"selectedFields": [
{
"readParameterId": "<string>",
"writeParameterId": "<string>"
}
]
}
}
],
"entity": {
"label": "<string>",
"params": [
{}
],
"hasGSheetKey": true
},
"hasGSheetKey": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
]
}
],
"id": "<string>",
"type": "<string>",
"iconName": "<string>"
}
'{
"orgId": "<string>",
"name": "<string>",
"label": "<string>",
"steps": [
{
"policyNames": [
"<string>"
],
"id": "<string>",
"label": "<string>",
"description": "<string>",
"prompt": "<string>",
"processId": "<string>",
"tokenIds": [
"<string>"
],
"roles": [
{
"p": "<string>",
"r": [
"<string>"
]
}
],
"orderedPolicies": [
"<string>"
],
"viewPolicyNames": [
"<string>"
],
"routing": {
"entityParamName": "<string>",
"entityId": "<string>",
"rules": [
{
"value": "<string>",
"stepId": "<string>"
}
]
},
"webhookUrls": "<string>",
"legalContractId": "<string>",
"frequency": "<string>",
"deadline": "<string>",
"deadlineType": "<string>",
"frequencyDate": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>",
"stepIdsDependencies": [
"<string>"
],
"stepIdsReprovalDependencies": [
"<string>"
]
}
],
"id": "<string>",
"iconName": "<string>"
}Create process
curl --request POST \
--url https://api.example.com/v1/process \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"steps": [
{
"policyNames": [
"<string>"
],
"id": "<string>",
"label": "<string>",
"description": "<string>",
"prompt": "<string>",
"processId": "<string>",
"tokenIds": [
"<string>"
],
"roles": [
{
"p": "<string>",
"r": [
"<string>"
]
}
],
"orderedPolicies": [
"<string>"
],
"viewPolicyNames": [
"<string>"
],
"routing": {
"entityParamName": "<string>",
"entityId": "<string>",
"rules": [
{
"value": "<string>",
"stepId": "<string>"
}
]
},
"webhookUrls": "<string>",
"legalContractId": "<string>",
"frequency": "<string>",
"deadline": "<string>",
"deadlineType": "<string>",
"frequencyDate": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>",
"requireOrder": true,
"stepIdsDependencies": [
"<string>"
],
"stepIdsReprovalDependencies": [
"<string>"
],
"parameters": [
{
"label": "<string>",
"id": "<string>",
"name": "<string>",
"type": "ATTACHMENT",
"isUnique": true,
"isPermanent": true,
"isRequired": true,
"decimals": 123,
"stepId": "<string>",
"entityOperation": [
"WRITE"
],
"description": "<string>",
"parameterId": "<string>",
"entityId": "<string>",
"autoFillEntityRelation": "<string>",
"contractTemplateId": "<string>",
"contractTemplate": {
"templateEntityId": "<string>",
"templateEntityName": "<string>"
},
"showColumns": [
"<string>"
],
"viewColumns": [
"<string>"
],
"computedFormula": [
"<string>"
],
"readFromOtherMeasurementData": {
"processId": "<string>",
"stepId": "<string>",
"id": "<string>",
"parameterId": "<string>",
"readParameterId": "<string>",
"searchFieldId": "<string>",
"selectedFields": [
{
"readParameterId": "<string>",
"writeParameterId": "<string>"
}
]
},
"readFromEntity": {
"stepId": "<string>",
"id": "<string>",
"processId": "<string>",
"entityId": "<string>",
"readParameterId": "<string>",
"originParameterId": "<string>",
"targetParameterIds": [
"<string>"
],
"createdAt": "<string>",
"updatedAt": "<string>"
},
"optionItems": [
{
"value": "<string>",
"id": "<string>",
"label": "<string>",
"color": "<string>",
"meta": {},
"parameterId": "<string>",
"persisted": true,
"entityParameterId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
],
"apiCalls": [
{
"id": "<string>",
"type": "<string>",
"description": "<string>",
"sort": [
"<string>"
],
"parameters": [
"<unknown>"
],
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"sheetData": {
"sheetApiId": "<string>",
"id": "<string>",
"cell": "<string>",
"inputType": "<string>",
"parameterId": "<string>",
"entityId": "<string>",
"entityParameterId": "<string>",
"page": "<string>",
"formula": "<string>"
},
"advancedOptions": {
"id": "<string>",
"tooltip": "<string>",
"description": "<string>",
"placeholder": "<string>",
"max": 123,
"maxLength": 123,
"min": 123,
"minLength": 123,
"decimals": 123,
"sort": 123,
"currency": "USD",
"locale": "pt-BR",
"isHidden": true,
"rightFreeze": true,
"leftFreeze": true,
"hasCustomColor": true,
"hasMetadata": true,
"hiddenFrom": [
"<string>"
],
"isMultiple": true,
"insertOnEntity": "<string>",
"insertOnEntityMetadata": [
"<string>"
],
"dateFormat": "dd/MM/yyyy",
"entityOperation": [
"WRITE"
],
"parameterId": "<string>",
"entityParameterId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
},
"parameters": [
{
"id": "<string>",
"name": "<string>",
"label": "<string>",
"type": "ATTACHMENT",
"isUnique": true,
"isPermanent": true,
"stepId": "<string>",
"isRequired": true,
"decimals": 123,
"parameterId": "<string>",
"computedFormula": [
"<string>"
],
"createdAt": "<string>",
"updatedAt": "<string>",
"optionItems": [
{
"value": "<string>",
"id": "<string>",
"label": "<string>",
"color": "<string>",
"meta": {},
"parameterId": "<string>",
"persisted": true,
"entityParameterId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
],
"sheetData": {
"sheetApiId": "<string>",
"id": "<string>",
"cell": "<string>",
"inputType": "<string>",
"parameterId": "<string>",
"entityId": "<string>",
"entityParameterId": "<string>",
"page": "<string>",
"formula": "<string>"
},
"advancedOptions": {
"id": "<string>",
"tooltip": "<string>",
"description": "<string>",
"placeholder": "<string>",
"max": 123,
"maxLength": 123,
"min": 123,
"minLength": 123,
"decimals": 123,
"sort": 123,
"currency": "USD",
"locale": "pt-BR",
"isHidden": true,
"rightFreeze": true,
"leftFreeze": true,
"hasCustomColor": true,
"hasMetadata": true,
"hiddenFrom": [
"<string>"
],
"isMultiple": true,
"insertOnEntity": "<string>",
"insertOnEntityMetadata": [
"<string>"
],
"dateFormat": "dd/MM/yyyy",
"entityOperation": [
"WRITE"
],
"parameterId": "<string>",
"entityParameterId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
},
"autoFillEntityRelation": "<string>",
"readFromOtherMeasurementData": {
"processId": "<string>",
"stepId": "<string>",
"id": "<string>",
"parameterId": "<string>",
"readParameterId": "<string>",
"searchFieldId": "<string>",
"selectedFields": [
{
"readParameterId": "<string>",
"writeParameterId": "<string>"
}
]
}
}
],
"entity": {
"label": "<string>",
"params": [
{}
],
"hasGSheetKey": true
},
"hasGSheetKey": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
]
}
],
"id": "<string>",
"type": "<string>",
"iconName": "<string>"
}
'{
"orgId": "<string>",
"name": "<string>",
"label": "<string>",
"steps": [
{
"policyNames": [
"<string>"
],
"id": "<string>",
"label": "<string>",
"description": "<string>",
"prompt": "<string>",
"processId": "<string>",
"tokenIds": [
"<string>"
],
"roles": [
{
"p": "<string>",
"r": [
"<string>"
]
}
],
"orderedPolicies": [
"<string>"
],
"viewPolicyNames": [
"<string>"
],
"routing": {
"entityParamName": "<string>",
"entityId": "<string>",
"rules": [
{
"value": "<string>",
"stepId": "<string>"
}
]
},
"webhookUrls": "<string>",
"legalContractId": "<string>",
"frequency": "<string>",
"deadline": "<string>",
"deadlineType": "<string>",
"frequencyDate": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>",
"stepIdsDependencies": [
"<string>"
],
"stepIdsReprovalDependencies": [
"<string>"
]
}
],
"id": "<string>",
"iconName": "<string>"
}{
"name": "Process A",
"steps": [
{
"label": "Step 1",
"policyNames": ["HR Deparment", "HR Manager"],
"parameters": [
{
"label": "name",
"type": "TEXT"
},
{
"label": "age",
"type": "NUMBER"
}
]
}
]
}
{
"name": "Process A",
"steps": [
{
"label": "Step 1",
"policyNames": ["HR Deparment", "HR Manager"],
"parameters": [
{
"label": "Create New User",
"type": "ENTITY_UPDATE",
"entityId": "Users",
"entityOperation": ["WRITE"]
}
]
}
]
}
{
"name": "Process A",
"steps": [
{
"label": "Step 1",
"policyNames": ["HR Deparment", "HR Manager"],
"parameters": [
{
"label": "Create New User",
"type": "ENTITY_UPDATE",
"entityId": "Users",
"entityOperation": ["WRITE"],
"showColumns": ["Name", "Surname", "Birthdate"]
}
]
}
{
"label": "Step 2",
"policyNames": ["HR Director"],
"parameters": [
{
"label": "Update User",
"type": "ENTITY_UPDATE",
"entityId": "Users",
"entityOperation": ["EDIT"],
"showColumns": ["Role", "Experience"]
}
],
"stepIdsDependencies": ["Step 1"]
},
]
}
{
"name": "Process A",
"steps": [
{
"label": "Step 1",
"policyNames": ["HR Deparment", "HR Manager"],
"parameters": [
{
"label": "Create New User",
"type": "ENTITY_UPDATE",
"entityId": "Users",
"entityOperation": ["VIEW"],
"showColumns": ["Name", "Surname", "Birthdate"]
}
{
"label": "Create New User",
"type": "ENTITY_UPDATE",
"entityId": "Users",
"entityOperation": ["EDIT"],
"showColumns": ["Role", "Experience"]
}
]
}
]
}
{
"name": "Process A",
"steps": [
{
"label": "Step 1",
"policyNames": ["HR Deparment", "HR Manager"],
"parameters": [
{
"label": "Create New User",
"type": "ENTITY_UPDATE",
"entityId": "Users",
"entityOperation": ["WRITE"],
"showColumns": ["Name", "Surname", "Birthdate"]
}
]
}
{
"label": "Step 2",
"policyNames": ["HR Director"],
"parameters": [
{
"label": "Update User",
"type": "ENTITY_UPDATE",
"entityId": "Users",
"entityOperation": ["EDIT"],
"showColumns": ["Role", "Experience"]
}
],
"stepIdsDependencies": ["Step 1"]
},
]
}
showColumns or hideColumns which is an array of strings - each string being the columns of the entity you are manipulating.
If both showColumns and hideColumns are sent, only the hideColumns variable will be considered.
{
"name": "Process A",
"steps": [
{
"label": "Step 1",
"policyNames": ["HR Deparment", "HR Manager"],
"parameters": [
{
"label": "Create New User",
"type": "ENTITY_UPDATE",
"entityId": "Users",
"entityOperation": ["WRITE"],
"showColumns": ["Name", "Surname", "Birthdate"]
}
]
}
{
"label": "Step 2",
"policyNames": ["HR Director"],
"parameters": [
{
"label": "Update User",
"type": "ENTITY_UPDATE",
"entityId": "Users",
"entityOperation": ["EDIT"],
"showColumns": ["Role", "Experience"]
}
],
"stepIdsDependencies": ["Step 1"]
},
]
}
autoFillEntityRelation variable with the step name you would like to connect to.
{
"name": "Process A",
"steps": [
{
"label": "Step 1",
"policyNames": ["HR Deparment", "HR Manager"],
"parameters": [
{
"label": "Create New User",
"type": "ENTITY_UPDATE",
"entityId": "Project",
"entityOperation": ["WRITE"],
"showColumns": ["A", "B", "C"]
},
]
}
{
"label": "Step 2",
"policyNames": ["Sources Deparment", "Sources Manager"],
"parameters": [
{
"label": "Create Quote",
"type": "ENTITY_UPDATE",
"entityId": "Project", // automatically connects to the line created on step 1. Because it has step 1 as a dependency. Would've also worked if variable was not set
"entityOperation": ["WRITE"],
"showColumns": ["D", "E"],
}
],
"stepIdsDependencies": ["Step 1"]
},
{
"label": "Step 3",
"parameters": [
{
"policyNames": ["HR Director"],
"label": "Update User",
"type": "ENTITY_UPDATE",
"entityId": "Project",
"entityOperation": ["EDIT"],
"autoFillEntityRelation": "Step2" // connects to the line created on step 2. Would've also worked if variable was not set
"showColumns": ["F", "G"]
},
],
"stepIdsDependencies": ["Step 2"]
},
]
}
| Variable | Type | Description |
|---|---|---|
legalContractId | string | ID of the legal contract |
frequency | enum | Recurrence pattern: 'weekly', 'monthly', or 'yearly' |
frequencyDate | number | Date specification based on frequency (see table below) |
deadline | number | Deadline duration in the unit specified by deadlineType |
deadlineType | enum | Time unit for deadline: 'days', 'weeks', or 'months' (defaults to 'days') |
frequencyDate parameter varies based on the selected frequency:
| Frequency | Valid Values | Description |
|---|---|---|
'weekly' | 1-7 | Day of the week (1 = Sunday, 7 = Saturday) |
'monthly' | 1-31 | Day of the month |
'yearly' | 1-12 | Month of the year (1 = January, 12 = December) |
{
"name": "Process A",
"steps": [
{
"label": "Step 1",
"policyNames": ["Trainee", "Manager"],
"parameters": [
{
"label": "Create New User",
"type": "ENTITY_UPDATE",
"entityId": "Users",
"entityOperation": ["WRITE"],
"showColumns": ["Name", "Surname", "Birthdate"],
"legalContractId": "uuid",
"frequency": "weekly",
"deadline": "2"
}
]
}
]
}
Was this page helpful?