---
title: "POST /agent-playground/graphs/{id}/versions/"
method: POST
path: "/agent-playground/graphs/{id}/versions/"
tags: ["agent-playground"]
---

# POST /agent-playground/graphs/{id}/versions/

`POST /agent-playground/graphs/{id}/versions/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/agent-playground/graphs/{id}/versions/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Create a new draft version (version_number = max + 1) with optional nodes and edges.

## Request body

- GraphList
  - `id` string, uuid
  - `name` string: Display name
  - `description` string, nullable
  - `is_template` boolean
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `created_by` UserBrief
    - `id` string, uuid
    - `name` string
    - `email` string, email
  - `collaborators` UserBrief[]
    - `id` string, uuid
    - `name` string
    - `email` string, email
  - `active_version_id` string, uuid
  - `active_version_number` integer
  - `node_count` integer

## Response `201`

Created

- GraphList
  - `id` string, uuid
  - `name` string: Display name
  - `description` string, nullable
  - `is_template` boolean
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `created_by` UserBrief
    - `id` string, uuid
    - `name` string
    - `email` string, email
  - `collaborators` UserBrief[]
    - `id` string, uuid
    - `name` string
    - `email` string, email
  - `active_version_id` string, uuid
  - `active_version_number` integer
  - `node_count` integer

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
