SaveDataSourceOrderConfig

Updated at:

Saves the data source configuration for content creation and general search.

Try it now

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

Try it now

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. For more information, see the following:

  • Action: the specific permission point.

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

  • Resource type: the resource types that support authorization in the operation. For more information, see the following:

    • Required resource types are marked with a leading *.
    • 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.

ActionAccess levelResource typeCondition keyDependent action
aimiaobi:SaveDataSourceOrderConfigcreate
*All resources
*
    None
None

Request parameters

NameTypeRequiredDescriptionExample value
AgentKeystringYes

The unique identifier of the workspace. For more information, see AgentKey.

c160c841c8e54295bf2f441432785944_p_efm
ProductCodestringYes

The product type. Valid values:

  • miaobi

  • miaosou

miaobi
UserConfigDataSourceListarray<object>Yes

The data source configuration of the user.

UserConfigDataSourceListobjectYes
CodestringYes

Code description

QuarkCommonNews
NamestringNo

The display name.

Quark General Search
NumberintegerYes

Quantity

20
TypestringYes

The type.

SystemSearch
EnablebooleanNo

Specifies whether to enable.

GenerateTechnologystringNo

When productCode=miaosou, the generation technology of Miaosou.

Valid values:

  • copilotPrecise

  • copilotReference

copilotReference

Response elements

NameTypeDescriptionExample value
object

PlainResult

Codestring

The status code.

successful
Databoolean

The business data.

true
HttpStatusCodeinteger

The HTTP status code.

200
Messagestring

The error message.

successful
RequestIdstring

The unique ID of the request.

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

Indicates whether the request is successful: true indicates success, and false indicates failure.

true

Examples

Success response

JSON format

{
  "Code": "successful",
  "Data": true,
  "HttpStatusCode": 200,
  "Message": "successful",
  "RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
  "Success": true
}

Error codes

Visit the Error Center to view more error codes.