1. Tags 标签
EventLightning CDP
  • Content tags 内容标签
    • List or get content tags / 查询内容标签
      GET
    • Create or reuse content tag / 创建或复用内容标签
      POST
    • Update content tag / 更新内容标签
      PUT
    • Delete content tag / 删除内容标签
      DELETE
    • List or get content tag groups / 查询内容标签组
      GET
    • Create or reuse content tag group / 创建或复用内容标签组
      POST
  • Authentication 认证
    • Get access token / 获取访问令牌
      POST
  • Customers 客户
    • Collect customer and link visitor / 采集客户信息并关联访客
      POST
    • Get customer / 查询客户
      GET
    • Create or update customer / 创建或更新客户
      POST
  • Tags 标签
    • List or get tag groups / 查询标签组
      GET
    • Create or reuse tag group / 创建或复用标签组
      POST
    • List or get static tags / 查询静态标签
      GET
    • Create or reuse static tag / 创建或复用静态标签
      POST
    • Update static tag / 更新静态标签
      PUT
    • Delete static tag / 删除静态标签
      DELETE
  • Customer Tags 客户标签
    • Add customer tags / 添加客户标签
      POST
    • Remove customer tags / 移除客户标签
      POST
    • Query customer tags / 查询客户标签
      POST
  • Events 客户事件
    • 查询客户事件
      GET
    • Create customer event / 创建客户事件
      POST
  • Related Entities 关联实体
    • 查询关联实体
      GET
    • Create or update related entity / 创建或更新关联实体
      POST
  • Customer Segments 客户分群
    • Add customer segments / 添加客户群组
    • Remove customer segments / 移除客户群组
    • Query customer segments / 查询客户群组
  • Segments 分群
    • List or get segment groups / 查询客户分群组
    • Create or reuse segment group / 创建或复用客户分群组
    • List or get static segments / 查询静态分群
    • Create or reuse static segment / 创建或复用静态分群
    • Update static segment / 更新静态分群
    • Delete static segment / 删除静态分群
  • 数据模型
    • SegmentWrite
    • SegmentDetail
    • SegmentDetailResponse
    • SegmentListResponse
    • ContentTagDetail
    • ContentTagDetailResponse
    • ContentTagListResponse
    • OAuthToken
    • OAuthError
    • SuccessEnvelope
    • AudienceGroupDetail
    • TagDetail
    • TagMembershipDetail
    • SegmentMembershipDetail
    • CustomerEventResponse
    • CodeResponse
    • CustomerDetailResponse
    • Identification
    • CustomerSaveResponse
    • DynamicBody
    • TagWrite
    • CustomerSelectors
    • AudienceGroupDetailResponse
    • CustomerTagQuery
    • AudienceGroupListResponse
    • CustomerTagChange
    • TagDetailResponse
    • CustomerSegmentQuery
    • CustomerSegmentChange
    • TagListResponse
    • CustomerTagMembershipResponse
    • CustomerTagChangeResponse
    • CustomerSegmentMembershipResponse
    • CustomerSegmentChangeResponse
    • RelatedEntityResponse
    • ErrorEnvelope
  1. Tags 标签

Create or reuse static tag / 创建或复用静态标签

POST
/api/v1/tags

Purpose#

Create or reuse a published static customer tag.

Execution logic#

1.
The request body must be a non-empty object and label must be a non-empty string.
2.
Optional group resolution gives truthy group_id precedence over group_label; the referenced group must exist and be a customer-tag group. A missing/falsy group reference means no group is supplied.
3.
A published static tag with the same exact label is reused; otherwise a new static tag is created.
4.
A resolved group is assigned after creation/reuse. If no group is supplied, the reused tag's existing group is preserved. The response reports the tag data together with creation/change state.

Errors and authorization#

Invalid labels, group references, or group types return a client error. Bearer authentication and this endpoint's REST permission are required.

中文说明#

用途#

创建或复用一个已发布的静态客户标签。

执行逻辑#

1.
请求体必须是非空对象,label 必须是非空字符串。
2.
可选分组解析中,有效的 group_id 优先于 group_label;引用的分组必须存在且属于客户标签分组。未提供或假值分组引用表示本次不指定分组。
3.
若已存在名称精确相同的已发布静态标签,则复用;否则创建新静态标签。
4.
解析成功的分组会在创建/复用后设置。未指定分组时,复用标签原有的分组保持不变。响应返回标签数据以及创建/变化状态。

错误与权限#

名称、分组引用或分组类型无效返回客户端错误。接口需要 Bearer 认证及对应 REST 权限。

请求参数

Body 参数application/json必填

示例
{
  "label": "VIP",
  "group_id": "{{group_id}}"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/api/v1/tags' \
--header 'Content-Type: application/json' \
--data '{
  "label": "VIP",
  "group_id": "{{group_id}}"
}'

返回响应

🟢200成功
application/json
Tag saved / 标签保存成功
Bodyapplication/json

示例
{
    "code": 200,
    "data": {
        "tag_id": "string",
        "label": "string",
        "group_label": "string",
        "group_id": "string",
        "tag_type": "string",
        "values": [
            "string"
        ],
        "created": 0,
        "changed": 0,
        "status": true,
        "external_id": "string"
    }
}
🟠400请求有误
🟠401没有权限
🟠403禁止访问
🔴500服务器错误
🟠429请求过多
修改于 2026-09-22 08:54:49
上一页
List or get static tags / 查询静态标签
下一页
Update static tag / 更新静态标签
Built with