UpdateDataset

Updated at:

This operation updates a data source.

Debug

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After the API runs successfully, OpenAPI Explorer can automatically generate SDK code examples.

Authorization information

The following table describes the authorization information of the API. You can use it in the Action element of a RAM permission policy statement to grant RAM users or RAM roles the permission to call this API. Details:

  • Action: The specific permission point.

  • Access level: The access level of each operation. Valid values: Write, Read, or List.

  • Resource type: The resource types supported for authorization in the operation. Details:

    • Required resource types are marked with a leading asterisk (*).
    • For operations that do not support resource-level authorization, All Resources is used.
  • Condition key: The condition keys defined by the cloud service itself.

  • Dependent action: The other permissions required to successfully perform the operation. The caller must have the permissions of the dependent actions at the same time for the operation to succeed.

Action

Access level

Resource type

Condition key

Dependent action

aimiaobi:UpdateDataset

update

*All Resource

*

NoneNone

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

WorkspaceId

string

Yes

The unique identifier of the Alibaba Cloud Model Studio business space: Get a workspaceId

xxxx

DatasetId

integer

No

The dataset ID.

1

DatasetDescription

string

No

The description of the dataset.

Enterprise custom dataset

SearchDatasetEnable

integer

No

Specifies whether to enable search for the dataset.

3

DatasetConfig

object

No

The configurations for a third-party search dataset.

SearchSourceConfigs

array<object>

No

Third-party search: API definition.

array<object>

No

DemoQuery

string

No

A searchable keyword used to verify availability.

A searchable keyword used to verify availability

Size

integer

No

The default number of data entries for requests and responses.

10

SearchSourceRequestConfig

object

No

The API request configuration.

Url

string

No

The API URL.

API address

Method

string

No

The request method.

Request method

ConnectTimeout

integer

No

The connection timeout period, in milliseconds.

3000

SocketTimeout

integer

No

The read timeout period, in milliseconds.

3000

Headers

array<object>

No

The HTTP request headers.

object

No

The HTTP request headers.

Name

string

No

The parameter name.

Parameter name

ValueType

string

No

The data type of the parameter value. Default: string.

Parameter value data type: default string

ValueFormat

string

No

This parameter is valid only when ValueType is set to time.

Valid when valueType = time

Value

string

No

The parameter value.

Parameter value

Params

array<object>

No

The request path parameters.

object

No

The request path parameters.

Name

string

No

The parameter name.

Parameter name

ValueType

string

No

The data type of the parameter value. Default: string.

Parameter value data type: default string

ValueFormat

string

No

This parameter is valid only when ValueType is set to time.

Valid when valueType = time

Value

string

No

The parameter value.

Parameter value

PathParamsEnable

boolean

No

Specifies whether to enable path parameters.

true

Body

string

No

The request body.

{}

SearchSourceResponseConfig

object

No

The API response configuration.

JqNodes

array<object>

No

The node configuration.

array<object>

No

Key

string

No

The node key.

Node key

Type

string

No

The data type of the node. Valid values: string, number, list, object, and base.

Node data type: string number list object base

Path

string

No

The node path.

Node path

JqNodes

array<object>

No

The child node configuration.

array<object>

No

The child node configuration.

Key

string

No

The node key.

title

Type

string

No

The type.

string

Path

string

No

The node path.

.title

JqNodes

array<object>

No

The child node configuration.

object

No

The child node configuration.

Key

string

No

The node key.

title

Type

string

No

The type.

string

Path

string

No

The node path.

.title

SearchSourceConfig

object

No

The dataset configuration items.

TagSearchEnable

boolean

No

Specifies whether tags are included in searches. Default: true.

true

TagGenerateEnable

boolean

No

Specifies whether tags are used for generation. Default: true.

true

MetadataKeyValueSearchEnable

boolean

No

Specifies whether the key-value pairs in metadata are included in searches. Default: true.

true

MetadataKeyValueGenerateEnable

boolean

No

Specifies whether the key-value pairs in metadata are used for generation. Default: true.

true

AccessLevel

string

No

private

Response parameters

Element

Type

Description

Example

object

The response.

Data

object

The business data.

DatasetId

integer

The dataset ID.

1

CreateUser

string

The creator.

xxx

CreateTime

string

The creation time.

2024-11-12 21:46:24

DatasetType

string

The dataset type.

CustomSemanticSearch

DatasetName

string

The dataset name.

xxx

DatasetDescription

string

The display name of the dataset.

xxx

SearchDatasetEnable

integer

Indicates whether search is enabled for the dataset.

1

NewsArticleResults

array<object>

The list of articles.

array<object>

The list of articles.

Data

array<object>

The list of articles.

object

The article.

PubTime

string

The publishing time.

2024-11-12 15:12:14

Source

string

The source.

CCTV

Title

string

The title.

Article title

Content

string

The content.

Article content

Url

string

The article URL.

https://www.example.com/aaa.docx

Summary

string

The article summary.

Article summary

Current

integer

The current page number.

1

Size

integer

The number of records per page.

10

Total

integer

The total number of records.

100

Code

string

The status code.

NoData

Message

string

The error message.

success

RequestId

string

The unique request ID.

1813ceee-7fe5-41b4-87e5-982a4d18cca5

Success

boolean

Indicates whether the request was successful. A value of true indicates success. A value of false indicates failure.

true

Code

string

The status code.

NoData

Message

string

The error message.

success

HttpStatusCode

integer

The HTTP status code.

200

Examples

Success response

JSON format

{
  "Data": {
    "DatasetId": 1,
    "CreateUser": "xxx",
    "CreateTime": "2024-11-12 21:46:24",
    "DatasetType": "CustomSemanticSearch",
    "DatasetName": "xxx",
    "DatasetDescription": "xxx",
    "SearchDatasetEnable": 1,
    "NewsArticleResults": [
      {
        "Data": [
          {
            "PubTime": "2024-11-12 15:12:14",
            "Source": "央视网",
            "Title": "文章标题",
            "Content": "文章内容",
            "Url": "https://www.example.com/aaa.docx",
            "Summary": "文章摘要"
          }
        ],
        "Current": 1,
        "Size": 10,
        "Total": 100,
        "Code": "NoData",
        "Message": "success"
      }
    ]
  },
  "RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
  "Success": true,
  "Code": "NoData",
  "Message": "success",
  "HttpStatusCode": 200
}

Error codes

Visit Error Center to view more error codes.

Release notes

For more information, see Change details.