All Products
Search
Document Center

Artificial Intelligence Recommendation:CloneExperiment

Last Updated:Sep 16, 2025

Clones an experiment.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
airec:CloneExperimentcreate
*Instance
acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}
    none
none

Request syntax

POST /v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}/actions/clone HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The instance ID.

airec-test
sceneIdstringYes

The scene ID.

1
dryRunbooleanNo

true: verifies experiment information. false (default): creates an experiment.

false
experimentIdstringYes

The experiment ID.

123

Response parameters

ParameterTypeDescriptionExample
object
resultobject

The information about the experiment.

baseboolean

N/A

true
onlineTimestring

The time when the experiment was published.

2020-11-11T09:47:43.000Z
offlineTimestring

The time when the experiment was unpublished.

2020-11-11T09:47:43.000Z
descriptionstring

The remarks.

xxx
statusstring

The experiment state.

Init
namestring

The experiment name.

xxx
algorithmsarray<object>

The algorithm configurations.

algorithmobject

The information about the array object.

keystring

The algorithm key. Valid values: I2I: the I2I filtering algorithm. u2X2I: the U2X2I filtering algorithm. hot: the filtering algorithm for popular items. new: the filtering algorithm for new items. embedding: the vector filtering algorithm. mtorder: the priority of the filtering algorithm. rankservice: the ranking service.

I2I
configarray<object>

The child configuration items.

configobject

The information about the array object.

keystring

The algorithm key.

I2I-truncedquantity
defaultValuestring

The default value of the algorithm.

400
experimentValuestring

The custom value of the algorithm.

swing;commoni2i;pcategory;scategory
namestring

The algorithm name. (Note: If you use the default algorithm, the console obtains the algorithm name from Medusa. If you customize an algorithm for the experiment, the algorithm name is directly returned.)

defaultValuestring

The default value of the algorithm configuration item.

i2i;u2x2i;new;hot;embedding;embedding
typestring

The algorithm type. Valid values: SYSTEM and CUSTOM.

SYSTEM
experimentValuestring

The custom value of the algorithm configuration item.

300
hasConfigboolean

Indicates whether child configuration items exist. Valid values: true and false.

true
categorystring

The algorithm category. Valid values: RECALL and RANK.

RECALL
namestring

The algorithm name. (Note: If you use the default algorithm, the console obtains the algorithm name from Medusa. If you customize an algorithm for the experiment, the algorithm name is directly returned.)

name
bucketsarray

The buckets.

bucketstring

The buckets.

["1","2","3"]
experimentIdstring

The experiment ID.

12345
requestIdstring

The request ID.

E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B

Examples

Sample success responses

JSONformat

{
  "result": {
    "base": true,
    "onlineTime": "2020-11-11T09:47:43.000Z",
    "offlineTime": "2020-11-11T09:47:43.000Z",
    "description": "xxx",
    "status": "Init",
    "name": "xxx",
    "algorithms": [
      {
        "key": "I2I",
        "config": [
          {
            "key": "I2I-truncedquantity",
            "defaultValue": 400,
            "experimentValue": "swing;commoni2i;pcategory;scategory",
            "name": ""
          }
        ],
        "defaultValue": "i2i;u2x2i;new;hot;embedding;embedding",
        "type": "SYSTEM",
        "experimentValue": 300,
        "hasConfig": true,
        "category": "RECALL",
        "name": "name"
      }
    ],
    "buckets": [
      [
        1,
        2,
        3
      ]
    ],
    "experimentId": 12345
  },
  "requestId": "E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history