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

# POST /v1/{+parent}/schemas:validate

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

Validates a schema.

## Path parameters

- `parent` string, required

## Request body

- ValidateSchemaRequest — Request for the `ValidateSchema` method.
  - `schema` 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)
