---
title: "Update an existing Dataset"
method: PUT
path: "/policies/dataset/{id}"
tags: ["dataset"]
---

# Update an existing Dataset

`PUT /policies/dataset/{id}`

## Request body

- DatasetUpdateReqSchema
  - `name` string — A unique name label
  - `sink_ids` string[] — An array of one or more sink unique identifier

## Response `201`

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.
- `422` — Databse can't process request.
- `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)
