ragflow/api/apps/sdk
Raghav Patidar 49d560583f
Fix: HTTP API Updates Read-Only Dataset Fields During Modification #5923 (#5937)
### What problem does this PR solve?

Fixes #5923 

Fixes the readonly variables from payload at
 /datasets/<dataset_id> 

_Briefly describe what this PR aims to solve. Include background context
that will help reviewers understand the purpose of the PR._

Now if user tries to modify readonly values then it will show " The
input parameters are invalid. "

invalid_keys = {"id", "embd_id", "chunk_num", "doc_num", "parser_id",
"create_date", "create_time", "created_by",
"status","token_num","update_date","update_time"}
    if any(key in req for key in invalid_keys):
return get_error_data_result(message="The input parameters are
invalid.")
i have include those readonly keys in invalid_keys

### Type of change

- [ ] Bug Fix (non-breaking change which fixes an issue)

---------

Co-authored-by: Raghav <2020csb1115@iitrpr.ac.in>
2025-03-12 10:27:02 +08:00
..
agent.py Added static check at PR CI (#3921) 2024-12-08 21:23:51 +08:00
chat.py Fix: dataset_ids parameter (#5864) 2025-03-11 09:44:06 +08:00
dataset.py Fix: HTTP API Updates Read-Only Dataset Fields During Modification #5923 (#5937) 2025-03-12 10:27:02 +08:00
dify_retrieval.py Code refactor (#5371) 2025-02-26 15:40:52 +08:00
doc.py Fix: meta fields updata issue, (#5764) 2025-03-07 16:21:27 +08:00
session.py Fix: When calling the Create chat completion API, the response data… (#5928) 2025-03-11 19:56:07 +08:00