POST
/
v4
/
applications
/
validate
import SGPClient from 'sgp';

const client = new SGPClient({
  apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const response = await 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',
  });

  console.log(response);
}

main();
"<any>"

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Body

application/json
nodes
object[]
required

List of nodes in the application graph

edges
object[]
required

List of edges in the application graph

version
enum<string>
required

Version of the application schema

Available options:
V0
overrides
object

Optional overrides for the application

Response

200
application/json
Successful Response

The response is of type any.