---
title: "Discard a tool's draft"
method: DELETE
path: "/v1/code/{id}/draft"
tags: ["code"]
---

# Discard a tool's draft

`DELETE /v1/code/{id}/draft`

## Request

- Base URL: `https://api.pomerado.ai`
- URL: `https://api.pomerado.ai/v1/code/{id}/draft`
- Auth: HTTP bearer

Delete your team's draft of the code of a tool your team built, with every file it changes.

- Business accounts only, with tools:build.
- The tool's live code doesn't change. A tool with no draft answers the same.

## Path parameters

- `id` string, required

## Response `204`

Discarded

## Other responses

- `400`: invalid_request
- `401`: unauthorized, reauthentication_required
- `403`: business_account_required, forbidden
- `404`: not_found
- `500`: internal_error
- `503`: temporarily_unavailable

---

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