---
title: "Create a new Domain."
method: POST
path: "/domains"
tags: ["Domains"]
---

# Create a new Domain.

`POST /domains`

Creates a new Domain for the authenticated user.

## Request body

- MutableDomain
  - `name` string, required
  - `description` string
  - `public` boolean
  - `owners` Owner[]
    - `id` string
    - `type` string — Type of Owner entity, e.g. GROUP, TENANT, USER, etc.

## Response `200`

successful operation

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

## Other responses

- `400` — Bad request

## Changes

- **2019-08-15** `834571f85ba3` — 1 info
  - added the non-success response with the status `400`
- **2019-08-07** `f73867fae82f` — 2 breaking, 1 warning, 3 info
  - added the new required request property `name`
  - the request's body type changed from `object` to no type
  - removed the request property `data`
  - added the new optional request property `description`
  - …2 more
- **2019-07-08** `f3d6b449bc4f` — 1 info
  - the endpoint scheme security `BearerAuth` was added to the API
- **2019-07-08** `1746e9d51ff0` — 1 info
  - the endpoint scheme security `BearerAuth` was removed from the API
- **2019-07-05** `3b62c5b2416c` — 1 info
  - the endpoint scheme security `BearerAuth` was added to the API

[Full history](https://skmtc.dev/openintegrationhub/apis/oih-metadata-service-rest-api/changes/domains/post.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-service-production.skmtc.workers.dev/v1/apis/openintegrationhub/oih-metadata-service-rest-api/revisions/834571f85ba3/schema)
