---
title: "Send content to be added to the publish transaction"
method: POST
path: "/publish"
tags: ["Publish"]
---

# Send content to be added to the publish transaction

`POST /publish`

Files sent will be added to transaction but will not actually be published on to the public website until the transaction is committed. Several files can be added to a transaction by calling this endpoint multiple times with the each file to be published. Alternatively several files can be sent at once but using the query param zip=true.

## Query parameters

- `transactionId` string, required
- `zip` boolean

## Response `200`

content sucessfully added to the publish transaction

- Result
  - `message` string — message about the request result
  - `error` boolean — indicates if the request was successful
  - `transaction` object
    - `id` string — the created transaction ID
    - `status` string — the current status of the transaction
    - `startDate` string — the date the transaction of created
    - `uriInfos` string[] — URI information for this transaction
    - `uriDeletes` string[] — URI delete information for this transaction
    - `errors` string[] — error information for this transaction

## Other responses

- `400` — bad request
- `500` — internal server error

---

[API](https://skmtc.net/office-of-national-statistics/apis/florence-the-train.md) · [All operations](https://skmtc.net/office-of-national-statistics/apis/florence-the-train/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/office-of-national-statistics/florence-the-train/revisions/3610afa7d2a7/schema)
