Metadata
Create Metadata Field
Create a custom metadata field for annotating documents in the knowledge base with structured information.
post/datasets/{dataset_id}/metadata
Request
- Base URLhttps://api.dify.ai/v1
- URLhttps://api.dify.ai/v1/datasets/{dataset_id}/metadata
- AuthHTTP bearer
Path parameters
dataset_idstring uuid required
Knowledge base ID, from List Knowledge Bases. For a scoped key, copy the ID from the Dify URL.
Request body
Response
Metadata field created successfully.
Changes
No recorded changes to this operation across all 17 revisions of this API.