Batch Rekey Data

Batch Rekey: Detokenize with an old key and tokenize with a new key.

Request

Method

URI

POST

token/1.0/batch/rekey/

Content Type

application/json

Privileges Required

TOKENIZATION_ADMIN or TOKENIZATION_USER

Parameters

Name

Type

Example

policyName

string

CreditCard-1, CreditCard-2

Name of the policy used previously and the name of new policy to be used to rekey the data. For batch processing, enter all policies required to tokenize the data. See the example below.

tokenData

string

1216-4527-1799-3514

The data to be tokenized with the new key. For batch processing, enter all data to be rekeyed. See the example below.

Example

Copy
[

    {

        "policyName": "CreditCard-1, CreditCard-2",

        "tokenData": "1216-4527-1799-3514"

    },

    {

        "policyName": "CreditCard-2, CreditCard-3",

        "tokenData": "2807-1280-2164-6237"

    }

]

Responses

200 Success

Name

Type

Example

value

string

1956-4936-1580-3664

The rekeyed data. See the example below.

Example Response

Copy
[

    {

        "value": "1956-4936-1580-3664"

    },

    {

        "value": "3742-9783-3176-7875"

    }

]

Errors

401 Authentication Error

Reason

Example

error

Authentication failure

500 Server Error

Reason

Example

error

Server error