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 标签

Update static tag / 更新静态标签

PUT
/api/v1/tags

Purpose#

Update one published static customer tag.

Execution logic#

1.
The raw JSON body must decode to a non-empty object. The target tag_id must identify an existing published static tag.
2.
label is required and must be a non-empty string. The label is saved only when it differs from the current value.
3.
Optional group resolution gives truthy group_id precedence over group_label; the group must be a customer-tag group. When a group is supplied it replaces the current group. When both group fields are omitted/falsy, the current group is preserved; this API therefore does not ungroup a tag by omission.
4.
The response returns the resulting tag and whether it changed.

Errors and authorization#

Invalid JSON/ID/label, missing or non-static tags, and invalid group references return a client error. Bearer authentication and this endpoint's REST permission are required.

中文说明#

用途#

更新一个已发布的静态客户标签。

执行逻辑#

1.
原始 JSON 请求体必须能解码为非空对象;tag_id 必须指向已存在、已发布的静态标签。
2.
label 必填且必须是非空字符串;只有与当前名称不同时才保存名称变化。
3.
可选分组解析中,有效的 group_id 优先于 group_label,且必须是客户标签分组。提供分组时替换当前分组;两个分组字段均省略/为假值时保留当前分组,因此不能通过省略字段来取消标签分组。
4.
响应返回更新后的标签及是否发生变化。

错误与权限#

JSON、ID、名称无效,标签不存在/不是静态标签,或分组引用无效均返回客户端错误。接口需要 Bearer 认证及对应 REST 权限。

请求参数

Query 参数

Body 参数application/json必填

示例
{
  "label": "高价值客户",
  "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 --globoff --request PUT '/api/v1/tags?tag_id={{tag_id}}' \
--header 'Content-Type: application/json' \
--data '{
  "label": "高价值客户",
  "group_id": "{{group_id}}"
}'

返回响应

🟢200成功
application/json
Tag updated / 标签更新成功
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:58
上一页
Create or reuse static tag / 创建或复用静态标签
下一页
Delete static tag / 删除静态标签
Built with