---
title: "POST /v1/{+parent}/metadataSchemas"
method: POST
path: "/v1/{+parent}/metadataSchemas"
tags: ["projects"]
---

# POST /v1/{+parent}/metadataSchemas

`POST /v1/{+parent}/metadataSchemas`

Creates a MetadataSchema.

## Path parameters

- `parent` string, required

## Query parameters

- `metadataSchemaId` string

## Request body

- GoogleCloudAiplatformV1MetadataSchema — Instance of a general MetadataSchema.
  - `createTime` string, google-datetime — Output only. Timestamp when this MetadataSchema was created.
  - `name` string — Output only. The resource name of the MetadataSchema.
  - `description` string — Description of the Metadata Schema
  - `schemaVersion` string — The version of the MetadataSchema. The version's format must match the following regular expression: `^[0-9]+.+.+$`, which would allow to order/compare different versions. Example: 1.0.0, 1.0.1, etc.
  - `schemaType` 'METADATA_SCHEMA_TYPE_UNSPECIFIED' | 'ARTIFACT_TYPE' | 'EXECUTION_TYPE' | 'CONTEXT_TYPE' — The type of the MetadataSchema. This is a property that identifies which metadata types will use the MetadataSchema.
  - `schema` string — Required. The raw YAML string representation of the MetadataSchema. The combination of [MetadataSchema.version] and the schema name given by `title` in [MetadataSchema.schema] must be unique within a MetadataStore. The schema is defined as an OpenAPI 3.0.2 [MetadataSchema Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject)

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/aiplatform.md) · [All operations](https://skmtc.net/google/apis/aiplatform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/aiplatform/versions/b608d71b91f0/schema)
