---
title: "Validate a resource selector"
method: POST
path: "/v1/validate/resource-selector"
---

# Validate a resource selector

`POST /v1/validate/resource-selector`

## Request body

- object
  - `resourceSelector` string, required — CEL expression to validate.

## Response `200`

The validated resource selector

- object
  - `errors` string[], required
  - `valid` boolean, required

## Changes

> 50 revisions in range; 1 could not be searched.

- **2026-03-12** `fa1b98121816` — 3 breaking
  - the request property `resourceSelector` became required
  - removed `#/components/schemas/JsonSelector, #/components/schemas/CelSelector` from the `resourceSelector` request property `oneOf` list
  - the `resourceSelector` request property type/format changed from ``/`` to `string`/``
- **2026-02-11** `3924e3b154f6` — 1 breaking, 2 info
  - the `resourceSelector` request property type/format changed from `string`/`` to ``/``
  - the request property `resourceSelector` became optional
  - added `#/components/schemas/JsonSelector, #/components/schemas/CelSelector` to the `resourceSelector` request property `oneOf` list

[Change history](https://skmtc.dev/ctrlplanedev/apis/workspace-engine-api/changes/v1/validate/resource-selector/post.md)

---

[API](https://skmtc.dev/ctrlplanedev/apis/workspace-engine-api.md) · [All operations](https://skmtc.dev/ctrlplanedev/apis/workspace-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ctrlplanedev/workspace-engine-api/revisions/e4a4bf1152c8/schema)
