Database Management
Add Documents to a Collection
Changed onAdd Documents to a Collection. You can add your documents to a Collection using this endpoint in the form of Json.
post/api/collections/data/add
Request
- Base URLhttps://api.worqhat.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"collection": "Users",
"docId": "1234567890",
"data": {
"sampleDbContent": "This is a sample content",
"sampleDbContent2": "This is a sample content 2"
}
}Response
Output from the Database Collection Addition Process
Example response
{
"status": "success",
"processing_time": 888,
"processing_id": "4b139bfe-1f71-4345-b539-fa6c1700f166",
"processing_count": 6554,
"data": {
"databaseId": "1234567890",
"collection": "Users",
"elapsed_time": 800,
"documentId": "1234567890"
}
}Changes
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- warning
- info
endpoint added
- info