---
search:
  tags:
    - drafts
    - POST
seo:
  description: >-
    Create draft publish. Reference for the POST
    /workspaces/{organizationId}/drafts/{id}/publish endpoint in the Pile API.
sidebar:
  label: Create draft publish
  badge: POST
title: Create draft publish
type: openapi-operation
---
`POST /workspaces/{organizationId}/drafts/{id}/publish`

**Request body** (`application/json`)

- `note` (string)

Request body example:

```json
{
  "note": "string"
}
```

**Responses**

- `200` — Draft published — the held write applied and the audit log records both the producing agent and the reviewing human

Response example, 200:

```json
{
  "id": "string",
  "organizationId": "string",
  "entityType": "string",
  "entityId": "string",
  "issueId": "string",
  "kind": "comment",
  "payload": {
    "property1": null,
    "property2": null
  },
  "status": "pending",
  "createdById": "string",
  "sessionId": "string",
  "reviewedById": "string",
  "reviewedAt": "string",
  "reviewNote": "string",
  "publishedCommentId": "string",
  "createdAt": "string",
  "updatedAt": "string"
}
```
