Path:openapi/v1/metadata/<app_id: int>/virtual_params
Method: POST
Content-type: application/json
Body:
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
name | str | 是 | $_vp_test_add | 属性名 |
show_name | str | 否 | null | 展示名 |
description | str | 否 | null | 描述信息 |
property_type | int | 否 | 1 | 虚拟属性类型
|
event_relation_strategy | str | 是 | any | 事件关联类型
|
value_type | str | 是 | string | 属性类型 |
sql_rule | str | 是 | concat(user_profiles.device_model, ' ', user_profiles.os_version) | sql表达式 |
{
"property_type": 1,
"value_type": "string",
"event_relation_strategy": "any",
"sql_rule": "concat(user_profiles.device_model, ' ', user_profiles.os_version)",
"name": "$_vp_test_add"
}
Response:
{
"code": 200,
"message": "success",
"data": 1
}