Skip to main content
POST
/
v4
/
applications
/
validate
Python
import os
from scale_gp import SGPClient

client = SGPClient(
    api_key=os.environ.get("SGP_API_KEY"),  # This is the default and can be omitted
)
response = client.applications.validate(
    edges=[{
        "from_field": "from_field",
        "from_node": "from_node",
        "to_field": "to_field",
        "to_node": "to_node",
    }],
    nodes=[{
        "id": "id",
        "application_node_schema_id": "text_input_schema",
    }],
    version="V0",
)
print(response)
{
  "errors": [
    {
      "error_code": "INVALID_APPLICATION_NO_INPUT_NODE",
      "message": "<string>"
    }
  ],
  "sgp_error_code": "APPLICATION_BUILDER_VALIDATION_ERROR"
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Body

application/json
nodes
ApplicationNode · object[]
required

List of nodes in the application graph

edges
ApplicationEdge · object[]
required

List of edges in the application graph

version
string
required

Version of the application schema

Allowed value: "V0"
overrides
AgenticApplicationOverrides · object

Execution override options for agentic applications

Response

Successful Response