CreateGeneralConfig

Updated at:

General configurations — Create

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

RAM authorization

The following table lists the authorization information of this API. You can use it in the Action element of RAM policy statements to grant RAM users or RAM roles the permission to call this API. Details are as follows:

  • 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 for the operation. Details:

    • For required resource types, an asterisk (*) is prefixed.
    • 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 also have the permissions of the dependent actions for the operation to succeed.

ActionAccess levelResource typeCondition keyDependent action
aimiaobi:CreateGeneralConfigcreate
*All Resources
*
    None
None

Request parameters

ParameterTypeRequiredDescriptionExample
WorkspaceIdstringYes

Unique identifier of the Model Studio workspace: Get the workspace ID

llm-
ConfigKeystringYes

Unique identifier of the configuration item. Currently supported keys:

  • MiaoSou data source text search threshold (double): searchGenerate.searchTextMinScore
  • MiaoSou data source image search threshold (double): searchGenerate.searchImageMinScore
  • MiaoSou data source video search threshold (double): searchGenerate.searchVideoMinScore
  • MiaoSou data source audio search threshold (double): searchGenerate.searchAudioMinScore
  • MiaoSou Q&A search general answer summary plain-text prompt template (string): searchGenerate.sumQaAgentPrompt
  • MiaoSou Q&A search general answer summary prompt template with text & images (string): searchGenerate.sumQaAgentVlPrompt
  • MiaoSou Q&A search deep answer summary plain-text prompt template (string): searchGenerate.sumQaEnhanceAgentPrompt
  • MiaoSou Q&A search deep answer summary prompt template with text & images (string): searchGenerate.sumQaEnhanceAgentVlPrompt
xxxx
ConfigValuestringYes

Value of the configuration item

xxx

Response elements

ElementTypeDescriptionExample
object

Response result

Codestring

Status code

DataNotExists
HttpStatusCodeinteger

HTTP status code

200
Messagestring

Error message

Data does not exist
RequestIdstring

Unique request identifier

3f7045e099474ba28ceca1b4eb6d6e21
Successboolean

Indicates whether the request is successful: true for success, false for failure

false
Dataobject

Result

ConfigKeystring

Unique identifier of the configuration item

xx
ConfigValuestring

Configuration value

xx
ConfigValueTypestring

Configuration type

xx
ConfigDescstring

Configuration description

xx

Examples

Success response

JSON format

{
  "Code": "DataNotExists",
  "HttpStatusCode": 200,
  "Message": "数据不存在",
  "RequestId": "3f7045e099474ba28ceca1b4eb6d6e21",
  "Success": false,
  "Data": {
    "ConfigKey": "xx",
    "ConfigValue": "xx",
    "ConfigValueType": "xx",
    "ConfigDesc": "xx"
  }
}

Error codes

Visit the Error Center to view more error codes.

Release notes

Change timeSummary of changesOperation
2025-11-12OpenAPI addedView change details