Validate Pipeline Template
POST
/v1/pipelines/templates:validate
const url = 'https://junction-api.qualiastudios.dev/v1/pipelines/templates:validate';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"source":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://junction-api.qualiastudios.dev/v1/pipelines/templates:validate \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "source": "example" }'Everything apply checks, writing nothing: the file’s shape, every pin, the resolved graph’s ports as a run would see them, and its outputs.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
TemplateSource
A template file, as it is kept in the workspace’s repository.
object
source
required
The TOML file: name, description, nodes, edges, outputs
string
Example generated
{ "source": "example"}Responses
Section titled “ Responses ”Successful Response
Media type application/json
TemplateValidation
object
valid
required
boolean
errors
Array<string>
name
string | null
launch_fields
Array<object>
LaunchFieldOne launch-form field of a template: an exposed port with its JSON schema, derived required-ness, and display metadata.
object
name
required
string
type_name
required
string
schema
object
key
additional properties
any
required
required
boolean
default
resolve
object
key
additional properties
any
ui
object
key
additional properties
any
Example generated
{ "valid": true, "errors": [ "example" ], "name": "example", "launch_fields": [ { "name": "example", "type_name": "example", "schema": {}, "required": true, "default": "example", "resolve": {}, "ui": {} } ]}Invalid or missing API key
Media type application/json
ErrorResponse
Standard error response.
object
detail
required
Error message describing what went wrong
string
Example generated
{ "detail": "example"}Missing capability on the workspace
Media type application/json
ErrorResponse
Standard error response.
object
detail
required
Error message describing what went wrong
string
Example generated
{ "detail": "example"}Validation Error
Media type application/json
HTTPValidationError
object
detail
Array<object>
ValidationErrorobject
loc
required
Location
Array<string | integer>
msg
required
Message
string
type
required
Error Type
string
input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}