All Products
Search
Document Center

Energy Expert:AISearchResourceUpdate

Last Updated:Feb 13, 2026

Updates structured elements in an AISearch project. Supported element types include miniapps (miniapp) and products (product).

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /api/v1/aiSearch/resource/update HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

body

object

No

Request parameters

type

string

Yes

The type of the structured element.

Valid values:

  • product :

    product

  • miniapp :

    miniapp

miniapp

resourceId

string

Yes

The resource ID of the structured element. This ID is a unique and immutable identifier for the resource in the database.

WzMGQZwB7nQEs3Qk3ajH

data

any

No

Updates the information for the specified resource. Pass the fields to update in this parameter in JSON format. Fields that are not included are not modified.

If the type is miniapp, the following fields can be updated:

  • "miniappId": "The unique ID of the miniapp"

  • "title": "The name of the miniapp"

  • "version": "The version number"

  • "description": "A brief description",

  • "detailDesc": "A detailed description",

  • "slogan": "The slogan"

  • "icon": "The icon URL",

  • "url": "The miniapp URL"

If the type is product, the following fields can be updated:

  • "title": "The product name"

  • "description": "The product description",

  • "icon": "The product icon URL",

  • "url": "The product URL",

  • "price": "The price",

  • "extra": "An extension field. This can be any key-value object."

{ "title": "update title" }

The type field is an enumeration that supports only the specified values. If you specify a value outside the allowed range, the API call fails. Additional structured content types will be added as needed.

Response elements

Element

Type

Description

Example

object

Schema of Response

requestId

string

Id of the request

FDE51A3B-09C0-57E5-96FC-31E85EEFF318

data

object

The data returned.

type

string

The type of the structured element.

Valid values:

  • product :

    product

  • miniapp :

    miniapp

miniapp

resourceId

string

The resource ID of the structured element. This ID is a unique and immutable identifier for the resource in the database.

WzMGQZwB7nQEs3Qk3ajH

Examples

Success response

JSON format

{
  "requestId": "FDE51A3B-09C0-57E5-96FC-31E85EEFF318",
  "data": {
    "type": "miniapp",
    "resourceId": "WzMGQZwB7nQEs3Qk3ajH"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.