Update a Profiles API token.
This endpoint is for Audience Studio legacy. For the latest Audience Studio, contact your Customer Success Representative.
Security
TdApikeyAuth
A key column name to fetch the information of a customer.
Example:"td_client_id"
- https://api-cdp.treasuredata.comhttps://api-cdp.treasuredata.com/audiences/{audienceId}/tokens/{tokenId}
- https://api-cdp.treasuredata.co.jphttps://api-cdp.treasuredata.co.jp/audiences/{audienceId}/tokens/{tokenId}
- https://api-cdp.eu01.treasuredata.comhttps://api-cdp.eu01.treasuredata.com/audiences/{audienceId}/tokens/{tokenId}
- https://api-cdp.ap02.treasuredata.comhttps://api-cdp.ap02.treasuredata.com/audiences/{audienceId}/tokens/{tokenId}
- https://api-cdp.ap03.treasuredata.comhttps://api-cdp.ap03.treasuredata.com/audiences/{audienceId}/tokens/{tokenId}
curl -i -X PUT \
'https://api-cdp.treasuredata.com/audiences/{audienceId}/tokens/{tokenId}' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"description": "description",
"token": "b5507016-7da2-4777-a161-1e8042a6a377",
"keyColumn": "td_client_id",
"segments": [
{
"id": 1234
}
],
"attributeColumns": [
"gender",
"country"
]
}'successful operation
Response
{ "id": "string", "audienceId": "string", "token": "b5507016-7da2-4777-a161-1e8042a6a377", "description": "string", "keyColumn": "td_client_id", "segments": [ { … } ], "attributeColumns": [ "gender", "country" ], "v2": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "createdBy": { "id": "string", "td_user_id": "string", "name": "string" }, "updatedBy": { "id": "string", "td_user_id": "string", "name": "string" } }