All Products
Search
Document Center

Artificial Intelligence Recommendation:CreateCustomSample

Last Updated:Oct 16, 2025

Creates a custom sample.

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 /v2/openapi/instances/{instanceId}/samples HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

instanceId

string

Yes

The instance ID.

airec-cn-xxx

Response elements

Element

Type

Description

Example

object

The details of the result.

requestId

string

The request ID.

8B90B646-1678-41A3-B23F-EAC6587B0E48

result Sample

The details of the result.

Examples

Success response

JSON format

{
  "requestId": "8B90B646-1678-41A3-B23F-EAC6587B0E48",
  "result": {
    "Status": "Formatted",
    "Meta": {
      "AutoUpdate": true,
      "AutoUpdateFrequency": 1673341140,
      "ClonedId": "1638877561147",
      "Config": {
        "BhvTableSourceIds": [
          ""
        ],
        "FeatureConfig": {
          "ItemFeatures": "deress,red",
          "UserFeatures": "man"
        },
        "LabelLogic": {
          "BhvTimeWindow": 86400,
          "NegativeBhvTypes": "click,expose",
          "PositiveBhvTypes": "like"
        },
        "WeightLogicList": [
          {
            "Bhv": "click",
            "Weight": "1"
          }
        ]
      },
      "ExtendParams": {
        "LatestTaskStatus": 1,
        "SampleCount": 0
      },
      "MetaType": "Sample",
      "Name": "12345",
      "StoreConfig": "projectName.tableName",
      "Type": "System"
    },
    "GmtCreate": "2021-12-07T12:28:52.000Z",
    "GmtModified": "2021-12-07T12:28:52.000Z",
    "SampleId": "1638880131873"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.