---
title: "Publish Day Ones Document"
method: POST
path: "/internal/day-ones/home/publications"
tags: ["internal-day-ones"]
---

# Publish Day Ones Document

`POST /internal/day-ones/home/publications`

## Request

- Base URL: `https://api.ender.au` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ender.au/internal/day-ones/home/publications`
- Auth: none declared

## Headers

- `authorization` string, nullable

## Request body

- PublicationRequest
  - `protocol_version` integer, required
  - `operation_id` string, uuid, required
  - `attempt_id` string, uuid, required
  - `lease_token` string, uuid, required
  - `source_id` string, uuid, required
  - `publication_key` string, required
  - `filename` string, required
  - `output_feature` 'correspondence' | 'creditors' | 'date_of_insolvency' | 'day_ones_documents' | 'employees' | 'file_notes' | 'lodgements' | 'meetings' | 'precedents' | 'reports' | 'remuneration' | 'search_results' | 'sbr_eligibility' | 'sbr_scenario' | 'voidables', required
  - `subfolder` string, nullable
  - `content_type` string, required
  - `source_sha256` string, required
  - `content_base64` string, required
  - `create_pdf` boolean
  - `replace_existing` boolean

## Response `200`

Successful Response

- PublicationResponse
  - `protocol_version` integer, required
  - `drive_id` string, required
  - `drive_item_id` string, required
  - `drive_path` string, required
  - `drive_etag` string, required
  - `pdf` PublicationArtifactResponse, required
    - `drive_id` string, required
    - `drive_item_id` string, required
    - `drive_path` string, required
    - `drive_etag` string, required
    - `sha256` string, required
    - `byte_length` integer, required
    - `content_type` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ender/apis/ender-backend.md) - [All operations](https://skmtc.dev/ender/apis/ender-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/ender/apis/ender-backend/revisions/bf4373130521?raw)
