Validate Catalog Template Parameters
curl --request POST \
--url https://flowker.sandbox.lerian.net/v1/catalog/templates/{id}/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"params": {
"midaz_config_id": "d4e5f6a7-b8c9-4012-d345-678901234567",
"risk_threshold": 0.8
}
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://flowker.sandbox.lerian.net/v1/catalog/templates/{id}/validate"
payload := strings.NewReader("{\n \"params\": {\n \"midaz_config_id\": \"d4e5f6a7-b8c9-4012-d345-678901234567\",\n \"risk_threshold\": 0.8\n }\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))
}const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
params: {midaz_config_id: 'd4e5f6a7-b8c9-4012-d345-678901234567', risk_threshold: 0.8}
})
};
fetch('https://flowker.sandbox.lerian.net/v1/catalog/templates/{id}/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://flowker.sandbox.lerian.net/v1/catalog/templates/{id}/validate"
payload = { "params": {
"midaz_config_id": "d4e5f6a7-b8c9-4012-d345-678901234567",
"risk_threshold": 0.8
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": "",
"valid": true
}{
"code": "FLK-0001",
"detail": "name is a required field",
"errors": [
{
"location": "body.nodes",
"message": "expected array length >= 1",
"value": "<unknown>"
}
],
"instance": "/v1/workflows",
"status": 400,
"title": "Bad Request",
"type": "https://errors.lerian.studio/v1/FLK-0001"
}{
"code": "FLK-0001",
"detail": "name is a required field",
"errors": [
{
"location": "body.nodes",
"message": "expected array length >= 1",
"value": "<unknown>"
}
],
"instance": "/v1/workflows",
"status": 400,
"title": "Bad Request",
"type": "https://errors.lerian.studio/v1/FLK-0001"
}Validate Catalog Template Parameters
Use this endpoint to validate template parameters against the template’s JSON Schema.
POST
/
v1
/
catalog
/
templates
/
{id}
/
validate
Validate Catalog Template Parameters
curl --request POST \
--url https://flowker.sandbox.lerian.net/v1/catalog/templates/{id}/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"params": {
"midaz_config_id": "d4e5f6a7-b8c9-4012-d345-678901234567",
"risk_threshold": 0.8
}
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://flowker.sandbox.lerian.net/v1/catalog/templates/{id}/validate"
payload := strings.NewReader("{\n \"params\": {\n \"midaz_config_id\": \"d4e5f6a7-b8c9-4012-d345-678901234567\",\n \"risk_threshold\": 0.8\n }\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))
}const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
params: {midaz_config_id: 'd4e5f6a7-b8c9-4012-d345-678901234567', risk_threshold: 0.8}
})
};
fetch('https://flowker.sandbox.lerian.net/v1/catalog/templates/{id}/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://flowker.sandbox.lerian.net/v1/catalog/templates/{id}/validate"
payload = { "params": {
"midaz_config_id": "d4e5f6a7-b8c9-4012-d345-678901234567",
"risk_threshold": 0.8
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": "",
"valid": true
}{
"code": "FLK-0001",
"detail": "name is a required field",
"errors": [
{
"location": "body.nodes",
"message": "expected array length >= 1",
"value": "<unknown>"
}
],
"instance": "/v1/workflows",
"status": 400,
"title": "Bad Request",
"type": "https://errors.lerian.studio/v1/FLK-0001"
}{
"code": "FLK-0001",
"detail": "name is a required field",
"errors": [
{
"location": "body.nodes",
"message": "expected array length >= 1",
"value": "<unknown>"
}
],
"instance": "/v1/workflows",
"status": 400,
"title": "Bad Request",
"type": "https://errors.lerian.studio/v1/FLK-0001"
}Authorizations
JWT bearer token issued by the identity provider. Send it in the Authorization header as Bearer <token>.
Path Parameters
Unique identifier of the catalog template.
Body
application/json
Request body containing the parameters to validate.
Template parameter values to validate.
Show child attributes
Show child attributes
Example:
{
"midaz_config_id": "d4e5f6a7-b8c9-4012-d345-678901234567",
"risk_threshold": 0.8
}
Was this page helpful?

