Create a supported structured step in an API draft endpoint.
View input schema
{
"type": "object",
"properties": {
"apiId": {
"type": "string",
"minLength": 1
},
"endpointId": {
"type": "string",
"minLength": 1
},
"stepId": {
"type": "string",
"minLength": 1
},
"step": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "http_request"
},
"outputName": {
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
},
"method": {
"type": "string",
"enum": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE"
]
},
"url": {
"type": "string",
"minLength": 1
},
"connectionId": {
"type": "string",
"minLength": 1
},
"relativePath": {
"type": "string",
"minLength": 1
},
"authProfileId": {
"type": "string",
"minLength": 1
},
"headers": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"query": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"body": {
"oneOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"const": "json"
},
"value": {}
},
"required": [
"mode",
"value"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"const": "javascript"
},
"code": {
"type": "string",
"minLength": 1
}
},
"required": [
"mode",
"code"
],
"additionalProperties": false
}
]
},
"timeoutMs": {
"type": "integer",
"minimum": 100,
"maximum": 60000
},
"parallelGroup": {
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$"
},
"condition": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"expression": {
"type": "string"
}
},
"required": [
"enabled"
],
"additionalProperties": false
},
"onError": {
"type": "string",
"enum": [
"stop",
"continue",
"fallback"
]
},
"fallbackValue": {}
},
"required": [
"type",
"outputName",
"method"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "static_json"
},
"outputName": {
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
},
"value": {}
},
"required": [
"type",
"outputName",
"value"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "compute"
},
"outputName": {
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
},
"code": {
"type": "string",
"minLength": 1
}
},
"required": [
"type",
"outputName",
"code"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "llm_provider"
},
"outputName": {
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
},
"systemPromptTemplate": {
"type": "string"
},
"promptTemplate": {
"type": "string",
"minLength": 1
},
"responseFormat": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"text",
"json"
]
},
"schema": {}
},
"additionalProperties": false
},
"temperature": {
"type": "number",
"minimum": 0,
"maximum": 2
},
"maxOutputTokens": {
"type": "integer",
"minimum": 1,
"maximum": 1000000
},
"timeoutMs": {
"type": "integer",
"minimum": 100,
"maximum": 60000
}
},
"required": [
"type",
"outputName",
"promptTemplate"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "transform"
},
"outputName": {
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
},
"source": {
"type": "string",
"minLength": 1
},
"operations": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"maxOutputItems": {
"type": "integer",
"minimum": 1,
"maximum": 100000
}
},
"required": [
"type",
"outputName",
"source",
"operations"
],
"additionalProperties": false
}
]
}
},
"required": [
"apiId",
"endpointId",
"stepId",
"step"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}