---
title: "Validate a YAML manifest for a Kubernetes resource. You can use this to validate Kubernetes YAML and guarantee there were no mistakes in generation"
method: POST
path: "/validate-yaml"
---

# Validate a YAML manifest for a Kubernetes resource. You can use this to validate Kubernetes YAML and guarantee there were no mistakes in generation

`POST /validate-yaml`

## Request body

- object
  - `resourceType` string, required — The type of the Kubernetes resource.
  - `yml` string, required — The YAML manifest to validate.

## Response `200`

OK

- object
  - `isValid` boolean — Whether the YAML is valid for the specified resource type.
  - `error` string — If the YAML is not valid, an error message explaining why.

## Changes

- **2026-07-17** `d6ad0b9f02e0` — 1 info
  - endpoint added
- **2023-05-21** `183b9a992a9f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/robusta-dev/apis/kubernetes-yaml-generator-plugin/changes/validate-yaml/post.md)

---

[API](https://skmtc.dev/robusta-dev/apis/kubernetes-yaml-generator-plugin.md) · [All operations](https://skmtc.dev/robusta-dev/apis/kubernetes-yaml-generator-plugin/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/robusta-dev/kubernetes-yaml-generator-plugin/revisions/d6ad0b9f02e0/schema)
