---
title: "Endpoint for business submissions that will use the version 2 schema for the nifi message."
method: POST
path: "/deliver/v2/survey"
---

# Endpoint for business submissions that will use the version 2 schema for the nifi message.

`POST /deliver/v2/survey`

## Request

- The document declares no server URL.
- Auth: none declared

## Request body `multipart/form-data`

- object
  - `filename` string: The name of the zip file being submitted.
  - `tx_id` string: The transaction id
  - `context` union
    - BusinessSurveyContext
      - `tx_id` string: The transaction ID.
      - `survey_type` 'dap' | 'legacy' | 'spp' | 'environmental' | 'materials' | 'feedback': The type of the survey.
      - `survey_id` string: The survey ID.
      - `period_id` string: The period ID.
      - `ru_ref` string: The reporting unit reference.
    - AdhocSurveyContext
      - `tx_id` string: The transaction ID.
      - `survey_type` 'adhoc': The type of the survey.
      - `survey_id` string: The survey ID.
      - `title` string: The title of the survey.
      - `label` string: The label of the survey.
  - `zip_file` string, binary: The zip file containing the created artifacts.

## Response `200`

Successful response

- object
  - `success` boolean

## Other responses

- `400`: Bad request
- `500`: Internal server error

---

[API](https://skmtc.dev/office-of-national-statistics/apis/sdx-deliver-api.md) - [All operations](https://skmtc.dev/office-of-national-statistics/apis/sdx-deliver-api/llms.txt) - [OpenAPI document](https://skmtc.dev/office-of-national-statistics/apis/sdx-deliver-api/revisions/f1d9ef1b82c9?raw)
