POST
/
v4
/
application-with-variant
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": {},
      "guardrail_config": {
        "guardrails_to_execute": [
          "<string>"
        ]
      },
      "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": {},
    "guardrail_config": {
      "guardrails_to_execute": [
        "<string>"
      ]
    },
    "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_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

Body

application/json
application_spec_name
string
required
application_spec_description
string
required
variant
object
required

Response

200
application/json
Successful Response
id
string
required
name
string
required
configuration
object
required
version
enum<string>
required
Available options:
V0
application_spec_id
string
required
draft
boolean
required

Boolean to indicate whether the variant is in draft mode

account_id
string
required

The ID of the account that owns the given entity.

created_at
string
required

The date and time when the entity was created in ISO format.

updated_at
string
required

The date and time when the entity was last updated in ISO format.

description
string

Optional description of the application variant

published_at
string

The date and time that the variant was published.

created_by_user_id
string

The user who originally created the entity.