---
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.

---

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