---
title: "Create Draft"
method: POST
path: "/v1/structures/{structure_id}/drafts"
tags: ["structures", "versions"]
---

# Create Draft

`POST /v1/structures/{structure_id}/drafts`

## Request

- Base URL: `https://api.shapemaker.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.shapemaker.io/v1/structures/{structure_id}/drafts`
- Auth: OAuth 2
  - Password
  - Token URL: `/v1/auth`

## Path parameters

- `structure_id` string, required

## Request body

- CreateDraftInput
  - `label` string, required
  - `description` string, nullable

## Response `200`

Successful Response

- DraftView
  - `uuid` string, required
  - `name` string, required
  - `capacityStatus` string, nullable, required
  - `isStaleAnalysis` boolean, required
  - `isInvalidatedAnalysis` boolean, required
  - `createdBy` string, required
  - `createdAt` string, date-time, required
  - `draftLabel` string, nullable, required
  - `draftDescription` string, nullable, required
  - `isDrifted` boolean, required

## Other responses

- `422`: Validation Error

---

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