CreateDataset
Creates a dataset and its field structure in a specified AgentSpace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentloop:CreateDataset |
create |
*Dataset
|
None | None |
Request syntax
POST /agentspace/{agentSpace}/dataset HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| agentSpace |
string |
Yes |
The name of the AgentSpace. |
testxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
{ "datasetName": "product_faq_dataset", "description": "Product FAQ dataset for semantic search", "schema": { "title": { "type": "string", "chn": false, "embedding": "false" }, "content": { "type": "string", "chn": false, "embedding": "true" }, "metadata": { "type": "json", "chn": false, "embedding": "false", "jsonKeys": { "author": { "type": "string", "chn": false }, "source": { "type": "string", "chn": false }, "publishDate": { "type": "string", "chn": false } } } } } |
| datasetName |
string |
Yes |
The name of the dataset. |
product_faq_dataset |
| description |
string |
No |
The description of the dataset. |
Product FAQ dataset for semantic search |
| schema |
object |
Yes |
The schema of the dataset. |
|
| IndexKey |
No |
The schema of the dataset. |
||
| ttlDays |
integer |
No |
The data retention period in days. |
7 |
| clientToken |
string |
No |
The idempotency token, which is a unique string generated by the client to ensure the idempotence of the create operation. |
a1b2c3d4-1234-5678-90ab-cdef12345678 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
EB27D183-8F6C-5C5A-A6A3-E0508AF54F78 |
Examples
Success response
JSON format
{
"requestId": "EB27D183-8F6C-5C5A-A6A3-E0508AF54F78"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.