Datasets
Manage datasets, including creating, retrieving, listing, updating, and deleting datasets. These datasets can be used for Retrieval-Augmented Generation (RAG).
Query parameters
tenantUnitIdstringOptionalExample:
{{tenantUnitId}}
tenantIdstringRequiredExample:
{{tenantId}}
Header parameters
X-Api-KeystringOptionalExample:
the API Key
{{apiKey}}
Body
idstringOptional
tenantUnitIdstringOptional
namestringRequired
descriptionstring | nullableOptional
typestringOptional
knowledge or qa
tagsstring[]Optional
Responses
200Success
application/json
post
POST /admin/api/v1/datasets HTTP/1.1
Host: api.workfx.ai
Content-Type: application/json
Accept: */*
Content-Length: 177
{
"name": "rdc-poc-dataset-dev",
"tenantId": "12953d87-3c05-4b8e-b8d8-cd02149f4cee",
"tenantUnitId": "78c8e44c-9ef2-461d-88ba-ee7783a90251",
"description": "rdc poc dataset in dev env"
}
200Success
{
"id": "text",
"tenantId": "text",
"tenantUnitId": "text",
"name": "text",
"description": "text",
"createdTime": "text",
"updatedTime": "text",
"createdBy": "text",
"updatedBy": "text",
"status": "text",
"type": "text",
"tags": [
"text"
]
}
Path parameters
datasetIdstringRequiredExample:
{{datasetId}}
Query parameters
tenantIdstringRequiredExample:
{{tenantId}}
Header parameters
X-Api-KeystringOptionalExample:
the API Key
{{apiKey}}
Responses
200Success
application/json
get
GET /admin/api/v1/datasets/{datasetId} HTTP/1.1
Host: api.workfx.ai
Accept: */*
200Success
{
"id": "text",
"tenantId": "text",
"tenantUnitId": "text",
"name": "text",
"description": "text",
"createdTime": "text",
"updatedTime": "text",
"createdBy": "text",
"updatedBy": "text",
"status": "text",
"type": "text",
"tags": [
"text"
]
}
Query parameters
tenantIdstringOptionalExample:
ff9bd0ba-8de5-46e1-9303-1bd2081cfc74
tenantUnitIdstringOptionalExample:
f96c6fc1-af3e-45d0-bec8-1e5525da8905
limitintegerOptionalExample:
If no parameters are provided, all datasets will be returned.
5
typestringOptional
Header parameters
X-Api-KeystringOptionalExample:
the API Key
{{apiKey}}
Responses
200Success
application/json
get
GET /admin/api/v1/datasets HTTP/1.1
Host: api.workfx.ai
Accept: */*
200Success
{
"id": "text",
"tenantId": "text",
"tenantUnitId": "text",
"name": "text",
"description": "text",
"createdTime": "text",
"updatedTime": "text",
"createdBy": "text",
"updatedBy": "text",
"status": "text",
"type": "text",
"tags": [
"text"
]
}
Path parameters
datasetIdstringRequiredExample:
0361d480-ac91-430e-94d4-8e3a9762675f
Query parameters
deleteDocumentstringOptionalExample:
true
tenantIdstringOptionalExample:
fcbb17f3-646f-41d3-a097-fdb801f73142
Header parameters
X-Api-KeystringOptionalExample:
the API Key
{{apiKey}}
Responses
204Success
application/json
Responseobject
delete
DELETE /admin/api/v1/datasets/{datasetId} HTTP/1.1
Host: api.workfx.ai
Accept: */*
204Success
{}
Path parameters
datatsetIdstringRequired
Query parameters
tenantIdstringRequiredExample:
{{tenantId}}
Header parameters
X-Api-KeystringOptionalExample:
the API Key
{{apiKey}}
Body
namestringOptional
descriptionstring | nullableOptional
typestringOptional
knowledge or qa
tagsstring[]Optional
Responses
200Success
application/json
patch
PATCH /admin/api/v1/datasets/{datatsetId} HTTP/1.1
Host: api.workfx.ai
Content-Type: application/json
Accept: */*
Content-Length: 66
{
"name": "text",
"description": "text",
"type": "text",
"tags": [
"text"
]
}
200Success
{
"id": "text",
"tenantId": "text",
"tenantUnitId": "text",
"name": "text",
"description": "text",
"createdTime": "text",
"updatedTime": "text",
"createdBy": "text",
"updatedBy": "text",
"status": "text",
"type": "text",
"tags": [
"text"
]
}
Last updated
Was this helpful?