---
title: "Process PCK request"
method: POST
path: "/pck"
---

# Process PCK request

`POST /pck`

Convert a survey response into a PCK file

## Query parameters

- `survey_id` string, required
- `period_id` string, required
- `ru_ref` string, required
- `form_type` string, required
- `period_start_date` string, required
- `period_end_date` string, required
- `data_version` string

## Request body

- union
  - ListCollector
    - `answer_codes` AnswerCode[]
      - `answer_id` string
      - `code` string
      - `answer_value` string, nullable
    - `answers` Answer[]
      - `answer_id` string
      - `value` union
        - object
        - string
      - `list_item_id` string, nullable
    - `lists` Group[]
      - `items` string[]
      - `name` string
      - `supplementary_data_mappings` SupplementaryDataMapping[], nullable
        - `identifier` string
        - `list_item_id` string
  - Data

## Response `200`

Successful response

## Other responses

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

---

[API](https://skmtc.net/office-of-national-statistics/apis/sdx-transformer-api.md) · [All operations](https://skmtc.net/office-of-national-statistics/apis/sdx-transformer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/office-of-national-statistics/sdx-transformer-api/versions/1b7db3be203d/schema)
