---
title: "Update a schema with given URI."
method: PUT
path: "/domains/{domainId}/schemas/{uri}"
tags: ["Domains"]
---

# Update a schema with given URI.

`PUT /domains/{domainId}/schemas/{uri}`

Updates a schema with given URI.

## Path parameters

- `domainId` string, required
- `uri` string, required

## Request body

- object
  - `data` MutableSchema
    - `name` string, required
    - `description` string
    - `value` object
    - `owners` Owner[]
      - `id` string
      - `type` string — Type of Owner entity, e.g. GROUP, TENANT, USER, etc.

## Response `200`

successful operation

- object
  - `data` Schema
    - `name` string, required
    - `description` string
    - `value` object
    - `owners` Owner[]
      - `id` string
      - `type` string — Type of Owner entity, e.g. GROUP, TENANT, USER, etc.
    - `id` string, required
    - `uri` string, required
    - `createdAt` string, date-time, required — Client creation time
    - `updatedAt` string, date-time — Client update time

## Changes

- **2019-07-08** `f3d6b449bc4f` — 1 breaking, 3 info
  - the response's body type changed from no type to `object` for status `200`
  - the endpoint scheme security `BearerAuth` was added to the API
  - removed `#/components/schemas/MutableSchema, subschema #2` from the response body `allOf` list for the response status `200`
  - added the optional property `data` to the response with the `200` status
- **2019-07-08** `1746e9d51ff0` — 1 breaking, 2 warning, 2 info
  - the response's body type changed from `object` to no type for status `200`
  - removed the request property `data/allOf[#/components/schemas/SchemaBase]/uri`
  - removed the optional property `data` from the response with the `200` status
  - the endpoint scheme security `BearerAuth` was removed from the API
  - …1 more
- **2019-07-05** `3b62c5b2416c` — 1 info
  - the endpoint scheme security `BearerAuth` was added to the API
- **2019-07-05** `3c502a7e52fc` — 1 breaking, 2 info
  - the response's body type changed from no type to `object` for status `200`
  - removed `#/components/schemas/MutableSchema, subschema #2` from the response body `allOf` list for the response status `200`
  - added the optional property `data` to the response with the `200` status
- …earlier changes not shown

[Full history](https://skmtc.dev/openintegrationhub/apis/oih-metadata-service-rest-api/changes/domains/:domainId/schemas/:uri/put.md)

---

[API](https://skmtc.dev/openintegrationhub/apis/oih-metadata-service-rest-api.md) · [All operations](https://skmtc.dev/openintegrationhub/apis/oih-metadata-service-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openintegrationhub/apis/oih-metadata-service-rest-api/revisions/f3d6b449bc4f?raw)
