You need to enable JavaScript to run this app.
导航
查询虚拟属性
最近更新时间:2024.06.30 18:36:04首次发布时间:2024.06.30 18:36:04

请求说明

Path:openapi/v1/metadata/<app_id: int>/list/virtual_params
Method: POST
Content-type: application/json

请求参数

Body:

参数

类型

是否必选

示例值

描述

filter

object

见下文请求示例

根据某些字段做过滤,可选值通常可用:

  • name 属性名
  • property_type 1为虚拟事件属性,2为虚拟用户属性
  • status 状态

with

list

events

获取虚拟属性时,携带获取关联的元数据信息,可选值为:

  • events

注意:with更多的关联信息将影响接口性能。

{
    "filter": {
        "name": "$_vp_af32erfds",
        "property_type": 1
    },
    "with": ["events"]
}

返回参数

Response:

{
    "code": 200,
    "message": "success",
    "data": [
        {
            "id": 3402868,
            "app_id": 2174,
            "name": "$_vp_af32erfds",
            "show_name": "",
            "description": "",
            "property_type": 1,
            "param_type": 2,
            "value_type": "string",
            "sql_rule": "concat(user_profiles.loc_province_id,'123')",
            "relation_event_param_properties": null,
            "relation_user_profile_properties": [
                "loc_province_id"
            ],
            "property_dict_version": null,
            "property_dict_updated_ts": 1669014312,
            "has_property_dict": false,
            "property_dict": null,
            "event_relation_strategy": "any",
            "status": 1,
            "used_times": 0,
            "used_times_updated_ts": 1669014312,
            "preset": 0,
            "creator_id": "10000088",
            "created_at": 1669014312,
            "updated_at": 1669014312,
            "events": [
                {
                    "id": 235692,
                    "app_id": 2174,
                    "name": "any_event",
                    "show_name": "任意事件",
                    "backing_show_name": null,
                    "show_name_en": "",
                    "i18n_show_names": null,
                    "description": "{             \"event\": \"test_event\",             \"params\": \"{\\\"int_1\\\":1}\",             \"local_time_ms\": 1666161845237         }",
                    "preset": 1,
                    "use_slot": 0,
                    "status": 1,
                    "used_users": 117,
                    "used_times": 66211,
                    "used_times_updated_ts": null,
                    "created_at": 1621755535000,
                    "updated_at": 1676995246000,
                    "verifier": "",
                    "verify_time_ts": null,
                    "status_disable_ts": null,
                    "data_reported": 1,
                    "last_day_amounts": 37425234,
                    "platform": null,
                    "origin": 0,
                    "creator_id": "preset",
                    "updator_id": "张玮(10000150)",
                    "principal": "",
                    "data_date": null,
                    "data_source_name": null,
                    "data_source": null,
                    "priority": null,
                    "event_category": "normal",
                    "owners": null,
                    "jump_url": null,
                    "param_status": 1,
                    "params": null,
                    "virtual_params": null,
                    "items": null,
                    "source_platform": null,
                    "event_groups": null
                }
            ]
        }
    ]
}