POST /v1/automation/workflows/validate-definition
POST
/v1/automation/workflows/validate-definitionAuthorization
bearerAuthbearerAuthrequiredor
apiKeyAuthapiKeyAuthrequiredRequest body
requiredapplication/jsondefinitionanyrequiredResponses
200OK
errorstringevent_typestringruntime_schema_versionstringschema_versionstringtrigger_typestringvalidbooleanrequireddefaultError
errorErrorBodyrequiredShow propertiesHide properties
codestringrequireddetailsErrorDetail[] | nullShow propertiesHide properties
Array of
ErrorDetailcodestringfieldstringlocationstringmessagestringrequiredmessagestringrequiredrequest_idstringRequest
curl -X POST "/v1/automation/workflows/validate-definition" \
-H "Content-Type: application/json" \
-d '{
"definition": "string"
}'const response = await fetch("/v1/automation/workflows/validate-definition", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"definition": "string"
})
});import requests
response = requests.post(
"/v1/automation/workflows/validate-definition",
headers={
"Content-Type": "application/json"
},
json={
"definition": "string"
},
)Response
{
"error": "string",
"event_type": "string",
"runtime_schema_version": "string",
"schema_version": "string",
"trigger_type": "string",
"valid": true
}{
"error": {
"code": "string",
"details": [
{
"code": "string",
"field": "string",
"location": "string",
"message": "string"
}
],
"message": "string",
"request_id": "string"
}
}