PublishAppConfig

Updated at:

Saves and publishes the app configuration.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-greenweb:PublishAppConfig

update

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

AppId

string

No

The app ID. This parameter must be the AppId returned after an app is created by calling the AddAppConfig operation.

txt_check_agent_01

Config

string

No

The configuration details. The value is a JSON string. The outer object contains the agentItemConfigs field, whose value is a serialized JSON array string (a double-nested structure). Each element in the agentItemConfigs array is an agent configuration object. Supported fields include: agentId (string, the agent ID. Use the actual value returned by AddAppAgent or a clear placeholder such as ), name (string, the agent name), and enable (boolean, specifies whether to enable the agent). Differences and connections with the Config parameter of ModifyAppAgent: The Config parameter of ModifyAppAgent describes the runtime configuration (model/scene/labelConfig) of a single agent, and you must first configure the agent by calling ModifyAppAgent. The Config parameter of this operation aggregates all agent entries (agentItemConfigs) under the app for overall publishing.

{"agentItemConfigs": "[{\"agentId\":\"ag.abcxxx\",\"enable\":true,\"name\":\"Agent 1\"}]"}

AgentId

string

No

The agent ID. This parameter must be the AgentId returned after an agent is added by calling the AddAppAgent operation.

ag.abcxxx

AgentName

string

No

The agent name.

Agent 1

Enable

boolean

No

Specifies whether to enable the agent. Valid values:

  • true: Enabled.

  • false: Disabled.

true

RegionId

string

No

The region ID.

cn-shanghai

ResourceType

string

No

The resource type.

agent_text

Response elements

Element

Type

Description

Example

object

PortalResponse

Data

boolean

The returned data.

true

RequestId

string

The ID assigned by the backend to uniquely identify a request. You can use this ID to troubleshoot issues.

AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****

Examples

Success response

JSON format

{
  "Data": true,
  "RequestId": "AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\n"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter.%s %s. The request parameters are invalid. Please check the parameter values or value ranges and try again.
400 ResourceNotFound.%s %s. The requested resource does not exist. Please check the resource information and try again.
400 OperationFailed %s. Request processing failed, please try again later. If the problem is not resolved, contact technical support and provide RequestId.
400 MissingParameter.%s %s. The request is missing required parameters. Please provide them and try again.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.