---
title: "Update Built-in Metadata Field"
method: POST
path: "/datasets/{dataset_id}/metadata/built-in/{action}"
tags: ["Metadata"]
---

# Update Built-in Metadata Field

`POST /datasets/{dataset_id}/metadata/built-in/{action}`

Enable or disable built-in metadata fields for the knowledge base.

## Path parameters

- `dataset_id` string, uuid, required
- `action` 'enable' | 'disable', required

## Response `200`

Built-in metadata field toggled successfully.

- object
  - `result` string — Operation result.

## Other responses

- `403` — - `forbidden` : Dataset api access is not enabled. - `forbidden` : Sorry, you have reached the knowledge base request rate limit of your subscription.
- `404` — `not_found` : Dataset not found.

---

[API](https://skmtc.net/langgenius/apis/dify-service-api.md) · [All operations](https://skmtc.net/langgenius/apis/dify-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langgenius/dify-service-api/revisions/e49b3db72bad/schema)
