Closed nameIsNoPublic closed 2 hours ago
Hey @nameIsNoPublic! I'm here to help you with any bugs, questions, or contributions while you wait for a human maintainer. Let me know how I can assist you!
I found relevant information regarding the 'update document segment' interface. The expected structure of the response object is indeed an object, not a list. Here is the expected structure:
{
"data": [{
"id": "",
"position": 1,
"document_id": "",
"content": "1",
"answer": "1",
"word_count": 25,
"tokens": 0,
"keywords": [
"a"
],
"index_node_id": "",
"index_node_hash": "",
"hit_count": 0,
"enabled": true,
"disabled_at": null,
"disabled_by": null,
"status": "completed",
"created_by": "",
"created_at": 1695312007,
"indexing_at": 1695312007,
"completed_at": 1695312007,
"error": null,
"stopped_at": null
}]
}
This structure indicates that the response is an object containing a "data" key, which holds a list of segment objects [1]. If the documentation you are referring to describes the response as a list, it might be an error or miscommunication in the documentation.
To continue talking to Dosu, mention @dosu.
Are you sure you have thoroughly checked it?
Self Checks
Provide a description of requested docs changes
response should be a object but document write data is a "list" struct