# Update Profiles API token (legacy) Update a Profiles API token. _This endpoint is for Audience Studio legacy. For the latest Audience Studio, contact your Customer Success Representative._ Endpoint: PUT /audiences/{audienceId}/tokens/{tokenId} Version: 1.0.0 Security: TdApikeyAuth ## Path parameters: - `audienceId` (integer, required) Master Segment ID of the token - `tokenId` (integer, required) ID of Token to return ## Request fields (application/json): - `description` (string) description Example: "description" - `token` (string) UUID of the token - `keyColumn` (string, required) A key column name to fetch the information of a customer. Example: "td_client_id" - `segments` (array) associated segments Example: [{"id":1234}] - `segments.id` (integer) - `attributeColumns` (array, required) associated attribute column names. Max the number of attribute columns is 5. You must specify empty array if you don't need attributes. Example: ["gender","country"] ## Response 200 fields (application/json): - `id` (string) - `audienceId` (string) - `token` (string) UUID of the token - `description` (string) - `keyColumn` (string) A key column name to fetch the information of a customer. Example: "td_client_id" - `segments` (array) associated segments - `segments.name` (string) - `segments.kind` (integer) 0: batch, 1: realtime, 2: funnel_stage - `segments.segmentFolderId` (integer) - `segments.population` (integer) The population of the segment - `segments.realtime` (boolean) use instead - `attributeColumns` (array) associated attribute column names. Example: ["gender","country"] - `v2` (boolean) whether the token is v2 or not Example: true - `createdAt` (string) - `updatedAt` (string) - `createdBy` (object) - `createdBy.td_user_id` (string) - `updatedBy` (object) ## Response 400 fields (application/json): - `code` (string, required) - `message` (string, required) ## Response 401 fields (application/json): - `code` (string, required) - `message` (string, required) ## Response 403 fields (application/json): - `code` (string, required) - `message` (string, required) ## Response 404 fields (application/json): - `code` (string, required) - `message` (string, required) ## Response 4XX fields (application/json): - `code` (string, required) - `message` (string, required) ## Response 5XX fields (application/json): - `status` (integer, required) Error status - `error` (string, required) Error message - `details` (string) Detailed error message