---
title: "Create App Version"
method: POST
path: "/applications/{application_id}/versions"
---

# Create App Version

`POST /applications/{application_id}/versions`

## Request

- The document declares no server URL.
- Auth: none declared

Create a new application version.

Args:
    application_id (str): The ID of the application.
    version (ApplicationVersionCreate): The details of the new application version.

Returns:
    VersionCreateResponse: The response containing the ID of the created version.

## Path parameters

- `application_id` string, required

## Request body

- ApplicationVersionCreate: The request model for app version creation api.
  - `name` string, required
  - `parentId` string
  - `metadata` object
  - `configuration` GraphConfiguration, required: GraphConfiguration defines the DAG in app version. It contains a node list which defines how to construct each node. And a edige list which defines how data flows.
    - `nodes` GraphNode[], required
      - `id` string, required
      - `name` string, required
      - `alias` string
      - `slots` object
    - `edges` GraphEdge[], required
      - `src_block` string
      - `dst_block` string
      - `dst_port` string
      - `alias` string
      - `case` union
        - boolean
        - string
        - integer

## Response `200`

Successful Response

- VersionCreateResponse: The reaponse model for app version creation api.
  - `id` string, uuid, required

## Other responses

- `422`: Validation Error

## Changes

- **2024-03-13** `30dce2138b23`: 1 breaking, 1 info
  - added the new required request property `name`
  - added the new optional request property `metadata`

[Operation history](https://skmtc.dev/pingcap/apis/pingcap-linguflow-api/changes/applications/:application_id/versions/post.md)

---

[API](https://skmtc.dev/pingcap/apis/pingcap-linguflow-api.md) - [All operations](https://skmtc.dev/pingcap/apis/pingcap-linguflow-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pingcap/apis/pingcap-linguflow-api/revisions/1194d2174bed?raw)
