---
title: "Get Schema Metadata"
method: GET
path: "/v1/schema_metadata"
deprecated: true
---

# Get Schema Metadata

`GET /v1/schema_metadata`

## Request

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

> **Deprecated.**

Get all schema metadata associated with a specific survey id.

Parameters:
survey_id (str): survey id of the collection
schema_processor_service (SchemaProcessorService): injected dependency for processing the metadata collection.

## Query parameters

- `survey_id` string, nullable

## 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
- `404`: Not Found
- `500`: Internal Server Error

## Changes

> 32 revisions in range; 2 not diffed.

- **2026-07-01** `9a87e51baf13`: 2 info
  - api operation id `get_schema_metadata_collection_v1_schema_metadata_get` removed and replaced with `Get_Schema_Metadata_v1_schema_metadata_get`
  - endpoint deprecated
- **2024-09-17** `d3f01a32165f`: 2 info
  - `query` request parameter `survey_id` list-of-types was widened by adding types `null`
  - for the `query` request parameter `survey_id`, the type was generalized from `string` to no type
- **2023-09-07** `09c30581ada9`: 1 info
  - added the required property `items/title` to the response with the `200` status
- **2023-08-25** `ac59298eeeb5`: 6 info
  - api operation id `get_schema_metadata_collection_v1_schema_metadata_get` was added
  - the `query` request parameter `survey_id` became optional
  - added the media type `application/json` for the response with the status `200`
  - added the media type `application/json` for the response with the status `400`
  - …2 more

[Operation history](https://skmtc.dev/office-of-national-statistics/apis/supplementary-data-service/changes/v1/schema_metadata/get.md)

---

[API](https://skmtc.dev/office-of-national-statistics/apis/supplementary-data-service.md) - [All operations](https://skmtc.dev/office-of-national-statistics/apis/supplementary-data-service/llms.txt) - [OpenAPI document](https://skmtc.dev/office-of-national-statistics/apis/supplementary-data-service/revisions/9a87e51baf13?raw)
