ragflow/api/apps
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
..
sdk Fix: HTTP API Updates Read-Only Dataset Fields During Modification #5923 (#5937) 2025-03-12 10:27:02 +08:00
__init__.py Fix: Starting the source code on Windows, the 'HTTP API' returns 404 (#5042) 2025-02-17 19:33:49 +08:00
api_app.py Code refactor (#5371) 2025-02-26 15:40:52 +08:00
canvas_app.py Update error message for agent name conflict (#4299) 2024-12-31 14:36:23 +08:00
chunk_app.py Code refactor (#5371) 2025-02-26 15:40:52 +08:00
conversation_app.py Made task_executor async to speedup parsing (#5530) 2025-03-03 18:59:49 +08:00
dialog_app.py Support chat solo. (#5218) 2025-02-21 12:24:02 +08:00
document_app.py Fix: HTTP API Updates Read-Only Dataset Fields During Modification #5923 (#5937) 2025-03-12 10:27:02 +08:00
file2document_app.py Added static check at PR CI (#3921) 2024-12-08 21:23:51 +08:00
file_app.py Added static check at PR CI (#3921) 2024-12-08 21:23:51 +08:00
kb_app.py Ignore exceptions when no index ahead. (#5047) 2025-02-18 09:09:22 +08:00
llm_app.py Refa: add model. (#5820) 2025-03-10 11:22:06 +08:00
system_app.py Fix:Fix the bug of incorrectly gets the APIToken. (#5597) 2025-03-04 19:35:42 +08:00
tenant_app.py Update team invite message (#4085) 2024-12-18 14:20:09 +08:00
user_app.py Fix email validation regex (#5533) 2025-03-03 10:55:10 +08:00