---
title: "Creates a Draft for the resource"
method: POST
path: "/api/v1/entrypoints/drafts/"
tags: ["Entrypoints"]
---

# Creates a Draft for the resource

`POST /api/v1/entrypoints/drafts/`

## Headers

- `X-Fields` string, mask

## Request body

- DraftsEntrypointDraftLoad
  - `group` integer, required — ID of the Group that will own the Entrypoint resource.
  - `name` string, required — Name of the Entrypoint resource.
  - `description` string — Description of the Entrypoint resource.
  - `taskGraph` string, required — Task graph of the Entrypoint resource.
  - `artifactGraph` string — Artifact graph of the Entrypoint resource.
  - `parameters` EntrypointParameter[]
    - `name` string, required — Name of the Entrypoint parameter resource.
    - `defaultValue` string — Default value of the Entrypoint parameter.
    - `parameterType` string, required — Data type of the Entrypoint parameter.
  - `artifactParameters` EntrypointArtifact[]
    - `name` string, required — Name of the Entrypoint artifact resource.
    - `outputParams` ArtifactOutputParameterLoad[]
      - `name` string, required — Name of the PluginTaskParameter.
      - `parameterType` integer, required — The ID of the assigned PluginParameterType resource
  - `queues` integer[] — The queue for the entrypoint.
  - `plugins` integer[] — List of plugin files for the entrypoint.
  - `artifactPlugins` integer[] — List of artifact plugin files for the entrypoint.

## Response `200`

Success

- DraftDump
  - `id` integer — ID of the Draft.
  - `group` GroupRef
    - `id` integer — ID for the Group resource.
    - `name` string — Name of the Group resource.
    - `url` string — URL for accessing the full Group resource.
  - `user` UserRefDump
    - `id` integer — ID for the User resource.
    - `username` string — Username of the User resource.
    - `url` string — URL for accessing the full User resource.
  - `payload` object — The contents of the draft resource.
  - `createdOn` string, date-time — Timestamp when the draft resource was created.
  - `lastModifiedOn` string, date-time — Timestamp when the draft resource was last modified.
  - `resourceType` string — The type of resource of this draft.
  - `resource` integer — ID of the resource this draft modifies.
  - `resourceSnapshot` integer — ID of the resource snapshot this draft modifies.
  - `metadata` object — Additional metadata about the draft

---

[API](https://skmtc.net/usnistgov/apis/dioptra-rest-api.md) · [All operations](https://skmtc.net/usnistgov/apis/dioptra-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usnistgov/dioptra-rest-api/versions/a73101579c5c/schema)
