- Design
- Runner
- Customer Auth
- Utility
- Warehouse
- Store
- Document
Execute Runner
Developing
preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
POST
/v1/rego/runners/{id}/execute/
Last modified:2024-12-07 16:35:48
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
id
stringÂ
required
Example:
a0b2a8cb-bbc2-46cc-b00a-2313b9115a87
Body Params application/json
action
enum<string>Â
required
Allowed values:
submitnavigate
data
objectÂ
required
Additional properties
integer  | number  | string  | booleanÂ
optional
Example
{
"action": "submit",
"data": {
"gst_no": "06AAK4577H1Z8a"
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://preprod.api.crego.io/v1/rego/runners/a0b2a8cb-bbc2-46cc-b00a-2313b9115a87/execute/' \
--header 'Content-Type: application/json' \
--data-raw '{
"action": "submit",
"data": {
"gst_no": "06AAK4577H1Z8a"
}
}'
Responses
🟢200Success
application/json
Body
Preset representing an operation in a flow.
id
string <uuid>
ID
Example:
123e4567-e89b-12d3-a456-426614174000
company_id
stringÂ
Company ID
Example:
comp-12345
element
object (Base Node)Â
required
name
stringÂ
Node Name
Examples:
Node1Node2
type
enum<string>Â
Node Type
Allowed values:
code_snippetweb_formnotificationapi_requestflow_connectorchecklistcsv_importtaskweb_page
Examples:
code_snippetweb_form
config
Node Configuration
permissions
array [object {2}]Â
required
edges
array [object {5}]Â
required
tags
array[string]
Tags
description
stringÂ
optional
created_by
stringÂ
Created By
Match pattern:
"^[a-zA-Z0-9._-]{3,50}$"
updated_by
string  | nullÂ
Updated By
Match pattern:
^[a-zA-Z0-9._-]{3,50}$
created_at
string <date-time>
Created At
Example:
2024-11-27T00:00:00Z
updated_at
string <date-time> | nullÂ
Updated At
Example:
2024-11-27T01:00:00Z
Example
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"company_id": "comp-12345",
"element": {
"name": "Node1",
"type": "code_snippet",
"config": {
"code": "def greet(name):\n return f\"Hello, {name}!\""
},
"permissions": [
{
"roles": [
"string"
],
"actions": [
"string"
]
}
],
"edges": [
{
"action": "string",
"type": "return",
"target_node": "string",
"config": {
"condition": "string"
},
"return": {
"data": {},
"transformer": "jmes"
}
}
]
},
"tags": [
"string"
],
"description": "string",
"created_by": "string",
"updated_by": "string",
"created_at": "2024-11-27T00:00:00Z",
"updated_at": "2024-11-27T01:00:00Z"
}