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

# POST /v1/{+parent}/schemas

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

Creates a schema.

## Path parameters

- `parent` string, required

## Query parameters

- `schemaId` string

## Request body

- Schema — A schema resource.
  - `type` 'TYPE_UNSPECIFIED' | 'PROTOCOL_BUFFER' | 'AVRO' — The type of the schema definition.
  - `revisionCreateTime` string, google-datetime — Output only. The timestamp that the revision was created.
  - `name` string — Required. Name of the schema. Format is `projects/{project}/schemas/{schema}`.
  - `definition` string — The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in `type`.
  - `revisionId` string — Output only. Immutable. The revision ID of the schema.

## Response `200`

Successful response

---

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