curl --request POST \
--url https://api.egp.scale.com/v4/application-with-variant \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"application_spec_name": "<string>",
"application_spec_description": "<string>",
"variant": {
"name": "<string>",
"description": "<string>",
"configuration": {
"metadata": {},
"nodes": [
{
"id": "<string>",
"application_node_schema_id": "text_input_schema",
"configuration": {}
}
],
"edges": [
{
"from_node": "<string>",
"to_node": "<string>",
"from_field": "<string>",
"to_field": "<string>"
}
]
},
"version": "V0",
"application_spec_id": "<string>",
"draft": true,
"published_at": "2023-11-07T05:31:56Z",
"account_id": "<string>"
}
}'
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"configuration": {
"metadata": {},
"nodes": [
{
"id": "<string>",
"application_node_schema_id": "text_input_schema",
"configuration": {}
}
],
"edges": [
{
"from_node": "<string>",
"to_node": "<string>",
"from_field": "<string>",
"to_field": "<string>"
}
]
},
"version": "V0",
"application_spec_id": "<string>",
"draft": true,
"published_at": "2023-11-07T05:31:56Z",
"account_id": "<string>",
"created_by_user_id": "<string>",
"created_by_identity_type": "user",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Create an application with a variant in a single transaction.
curl --request POST \
--url https://api.egp.scale.com/v4/application-with-variant \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"application_spec_name": "<string>",
"application_spec_description": "<string>",
"variant": {
"name": "<string>",
"description": "<string>",
"configuration": {
"metadata": {},
"nodes": [
{
"id": "<string>",
"application_node_schema_id": "text_input_schema",
"configuration": {}
}
],
"edges": [
{
"from_node": "<string>",
"to_node": "<string>",
"from_field": "<string>",
"to_field": "<string>"
}
]
},
"version": "V0",
"application_spec_id": "<string>",
"draft": true,
"published_at": "2023-11-07T05:31:56Z",
"account_id": "<string>"
}
}'
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"configuration": {
"metadata": {},
"nodes": [
{
"id": "<string>",
"application_node_schema_id": "text_input_schema",
"configuration": {}
}
],
"edges": [
{
"from_node": "<string>",
"to_node": "<string>",
"from_field": "<string>",
"to_field": "<string>"
}
]
},
"version": "V0",
"application_spec_id": "<string>",
"draft": true,
"published_at": "2023-11-07T05:31:56Z",
"account_id": "<string>",
"created_by_user_id": "<string>",
"created_by_identity_type": "user",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Successful Response
The response is of type object
.