List datasets available to link
GET/api/v2/AgentVersion/:agentCode/:agentVersion/knowledge/dataset/available
Only shared datasets from the version's subtenant or the one shared across all of them: an agent's default dataset, an unconfirmed draft and a dataset being deleted can't be linked. The datasets the version already links are listed in its knowledge configuration, not here.
A page or page size out of range answers 400, and a missing agent or version answers 404 agent_version_not_found. The version does not need to be a draft.
Request
Path Parameters
The code of the agent.
The version number of the agent.
Query Parameters
Default value: 1
The page number to retrieve. Maximum 2000000.
Default value: 20
Number of items per page. Maximum 1000.
Optional search term to filter datasets by name, display name or description.
Use this param to override the culture of the response. Options: - en (default) - es
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Returns a paginated list of the datasets available for the agent version to link.
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
Array [
]
items
object[]
nullable
links
object[]
nullable
Identifier of the dataset, which goes in the knowledge's dataset sources to link it.
Identifier the dataset was created with.
Name the dataset is shown with.
What the dataset holds, as written by whoever created it.
Possible values: [Pending, Processing, Completed, CompletedWithErrors, Error, Delete, Draft]
Processing state of a dataset. An agent queries it only once it is Completed. Serialised as a string.
How many tables the dataset holds.
links
object[]
nullable
{
"items": [
{
"links": [
{
"method": "string",
"url": "string",
"rel": "string"
}
],
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"displayName": "string",
"description": "string",
"status": "Pending",
"tableCount": 0
}
],
"total": 0,
"pageSize": 0,
"page": 0,
"links": [
{
"method": "string",
"url": "string",
"rel": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
Array [
]
items
object[]
nullable
links
object[]
nullable
Identifier of the dataset, which goes in the knowledge's dataset sources to link it.
Identifier the dataset was created with.
Name the dataset is shown with.
What the dataset holds, as written by whoever created it.
Possible values: [Pending, Processing, Completed, CompletedWithErrors, Error, Delete, Draft]
Processing state of a dataset. An agent queries it only once it is Completed. Serialised as a string.
How many tables the dataset holds.
links
object[]
nullable
{
"items": [
{
"links": [
{
"method": "string",
"url": "string",
"rel": "string"
}
],
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"displayName": "string",
"description": "string",
"status": "Pending",
"tableCount": 0
}
],
"total": 0,
"pageSize": 0,
"page": 0,
"links": [
{
"method": "string",
"url": "string",
"rel": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
Array [
]
items
object[]
nullable
links
object[]
nullable
Identifier of the dataset, which goes in the knowledge's dataset sources to link it.
Identifier the dataset was created with.
Name the dataset is shown with.
What the dataset holds, as written by whoever created it.
Possible values: [Pending, Processing, Completed, CompletedWithErrors, Error, Delete, Draft]
Processing state of a dataset. An agent queries it only once it is Completed. Serialised as a string.
How many tables the dataset holds.
links
object[]
nullable
{
"items": [
{
"links": [
{
"method": "string",
"url": "string",
"rel": "string"
}
],
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"displayName": "string",
"description": "string",
"status": "Pending",
"tableCount": 0
}
],
"total": 0,
"pageSize": 0,
"page": 0,
"links": [
{
"method": "string",
"url": "string",
"rel": "string"
}
]
}
If the request is invalid.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
Array [
]
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
errors
object
nullable
Map of keys (an invalid request field or the rule that failed) to messages. Only present when the error has specific detail to report. Values are strings, except on input_validation_error, where each value is an array of messages for that field.
property name*
object
nullable
oneOf
string
string
{
"code": "string",
"message": "string",
"documentationUrl": "string",
"errors": {}
}
The user is unauthorized or the session expired
- application/json
- Schema
- Example (from schema)
Schema
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
{
"code": "string",
"message": "string",
"documentationUrl": "string"
}
The user does not have permission
- application/json
- Schema
- Example (from schema)
Schema
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
{
"code": "string",
"message": "string",
"documentationUrl": "string"
}
If the agent or version is not found.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
Array [
]
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
errors
object
nullable
Map of keys (an invalid request field or the rule that failed) to messages. Only present when the error has specific detail to report. Values are strings, except on input_validation_error, where each value is an array of messages for that field.
property name*
object
nullable
oneOf
string
string
{
"code": "string",
"message": "string",
"documentationUrl": "string",
"errors": {}
}
There was an unexpected error
- application/json
- Schema
- Example (from schema)
Schema
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
{
"code": "string",
"message": "string",
"documentationUrl": "string"
}