---
title: "Post Schema"
method: POST
path: "/schemas"
---

# Post Schema

`POST /schemas`

Posts the schema metadata to be processed.

Parameters:
survey_id (str): survey_id of the schema
schema (dict): schema to be processed in JSON format.
schema_processor_service (SchemaProcessorService): injected processor service for processing the schema.

## Query parameters

- `survey_id` string, required

## Request body

- object

## Response `200`

Successful Response

- SchemaMetadata
  - `survey_id` string, required
  - `schema_location` string, required
  - `sds_schema_version` integer, required
  - `sds_published_at` string, required
  - `schema_version` string, required
  - `title` string, required
  - `guid` string, required

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.net/office-of-national-statistics/apis/supplementary-data-service.md) · [All operations](https://skmtc.net/office-of-national-statistics/apis/supplementary-data-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/office-of-national-statistics/supplementary-data-service/revisions/9a87e51baf13/schema)
