Skip to content
Discussion options

You must be logged in to vote

Apparently in the new v1.9.1 documentation, the endpoint to update metadata is not mentioned.
Still, I was able to use the endpoint mentioned in previous versions API docs, even using dify v1.9.1.
Below the python code, hope it helps:

import requests

dataset_id = "yourdatasetid"
document_id = "yourdocumentid"
uuid_metadata_id = "yourmetadataid"
dns = "yourdns"

url = f"https://{dns}/v1/datasets/{dataset_id}/documents/metadata"

payload = {
    "operation_data": [
        {
            "document_id": document_id, 
            "metadata_list": [
                {
                    "id": uuid_metadata_id,
                    "value": "mynewbeatuifulvalue", 
                    "name": "uuid"

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@nicologiammaria
Comment options

@dosubot
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by nicologiammaria
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant