在Identity Service API中创建自定义命名空间

使用Identity Namespace API,您可以创建仅对您的组织可用的自定义身份命名空间。

有关创建自定义命名空间的建议,请参阅Identity Service常见问题解答文档

NOTE
命名空间是标识的限定符。 因此,创建命名空间后,便无法删除该命名空间。

API格式

POST /idnamespace/identities

请求

curl -X POST \
  https://platform-va7.adobe.io/data/core/idnamespace/identities \
  -H 'Accept-Encoding: gzip, deflate' \
  -H 'Authorization: Bearer {ACCESS_TOKEN}' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: {API_KEY}' \
  -H 'x-gw-ims-org-id: {ORG_ID}' \
  -d '{
        "name": "Loyalty Member",
        "code": "Loyalty",
        "description": "Loyalty Program Member ID",
        "idType": "Cross_device"
      }'

响应

{
    "updateTime": 1576286879075,
    "code": "Loyalty",
    "status": "ACTIVE",
    "description": "Loyalty Program Member ID",
    "id": 10093197,
    "createTime": 1576286879075,
    "idType": "Cross_device",
    "name": "Loyalty Member",
    "custom": true
}

后续步骤

继续下一教程,将列出标识的本机ID

recommendation-more-help
64963e2a-9d60-4eec-9930-af5aa025f5ea