---
title: "Validate a Policy Dataset configuration without saving it"
method: POST
path: "/policies/dataset/validate"
tags: ["dataset"]
---

# Validate a Policy Dataset configuration without saving it

`POST /policies/dataset/validate`

## Request body

- DatasetCreateReqSchema
  - `name` string, required — A unique name label
  - `agent_group_id` string, uuid, required — A unique identifier of an agent_group
  - `agent_policy_id` string, uuid, required — A unique identifier of an agent_policy
  - `sink_ids` string[], required — An array of one or more sink unique identifier

## Response `200`

Policy object

- DatasetObjSchema
  - `id` string, uuid, required — Unique identifier (UUID)
  - `name` string — A unique name label
  - `agent_group_id` string, uuid — Unique identifier (UUID) of an agent_group
  - `agent_policy_id` string, uuid — Unique identifier (UUID) of an agent_policy
  - `sink_ids` string[] — An array of one or more sink unique identifier
  - `valid` boolean — Boolean field indicating whether the dataset is valid
  - `tags` object — User defined key/values for organization and searching
  - `ts_created` string, date-time — Timestamp of creation

## Other responses

- `400` — Failed due to malformed JSON
- `401` — Missing or invalid access token provided..
- `415` — Mising or invalid content type.
- `500` — Unexpected server-side error occurred.

## Changes

- **2026-07-17** `d95ee7691efb` — 1 breaking
  - added the new required `header` request parameter `Authorization` to all path's operations
- **2022-10-04** `ce59b3bdec00` — 1 breaking
  - added the new required `header` request parameter `Bearer authorization` to all path's operations
- **2022-05-06** `9309037e46b9` — 1 breaking, 2 warning, 1 info
  - added the new required request property `sink_ids`
  - removed the request property `sink_id`
  - removed the optional property `sink_id` from the response with the `200` status
  - added the optional property `sink_ids` to the response with the `200` status
- **2022-01-12** `b3e28725ccae` — 1 warning
  - removed the request property `tags`
- **2021-09-22** `dc9b53b51fdd` — 3 breaking, 1 warning
  - the `sink_id` request property's minItems was increased to `1`
  - the `sink_id` request property type changed from `string` to `array`, and format from `uuid` to no format
  - the `sink_id` response's property type changed from `string` to `array`, and format from `uuid` to no format for status `200`
  - removed the request property `valid`

[Full history](https://skmtc.dev/orb-community/apis/orb-policies/changes/policies/dataset/validate/post.md)

---

[API](https://skmtc.dev/orb-community/apis/orb-policies.md) · [All operations](https://skmtc.dev/orb-community/apis/orb-policies/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/orb-community/orb-policies/revisions/d95ee7691efb/schema)
