You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在AWS Pinpoint中删除端点的自定义属性?

AWS Pinpoint删除端点自定义属性的正确方法

要删掉你端点里的040110属性,别用null、空字符串这些没用的,正确操作是在UpdateEndpoint请求里把这个属性的值设成空数组[]。用AWS CLI的话,命令这么写:

假设你的端点ID是YOUR_ENDPOINT_ID,应用ID是XXX,执行这条命令:

aws pinpoint update-endpoint \
  --application-id "XXX" \
  --endpoint-id "YOUR_ENDPOINT_ID" \
  --endpoint-request '{"Attributes": {"040110": []}}'

注意事项:

  • AWS Pinpoint的规则是:只有将属性值设为空数组,才会删除该属性;设置null或空字符串仅会更新属性值,无法删除属性本身。
  • 如果在Windows PowerShell环境下执行,需要转义引号,调整后的命令如下:
    aws pinpoint update-endpoint ^
      --application-id "XXX" ^
      --endpoint-id "YOUR_ENDPOINT_ID" ^
      --endpoint-request "{\"Attributes\": {\"040110\": []}}"
    

执行成功后,你的端点结构就会变成目标样式:

{"Address": "+1123456789", "ApplicationId": "XXX", "Attributes": {"1248": ["sim", "spa", "simaj"]}, "ChannelType": "SMS", "CohortId": "73"}

内容的提问来源于stack exchange,提问作者MarcAndre

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.12 01:53:20