Skip to main content

Update Tokenization

This API updates the configuration of an existing tokenization item, including its name, description, group assignment, assigned users, and export policy.


Endpoint Details

URL /v1/tokenize/functions/id
Method PUT
Authorization Bearer Token

Request Headers

HeaderTypeDescription
Content-TypeStringMust be application/json

Request Path

To update an existing tokenization function, use the following request format:

/v1/tokenize/functions/f30f8335-8bf3-4cfd-8ca9-80ef48b84650

Path Parameter

ParameterTypeDescription
idUUIDUnique identifier of the tokenization function to update

Request Body

Use the following format to make a request:

JSON Request
{
"name": "dummy 3",
"description": "",
"group_id": "81ad4d05-d11a-4809-b1f2-cc000c086730",
"assigned_user_ids": [
"0a937c60-0ed4-4d06-870a-2e284b54287d"
],
"exportable": false
}

Body Parameters

ParameterTypeDescription
nameStringUpdated name of the tokenization function
descriptionStringOptional description of the tokenization function
group_idUUIDIdentifier of the group associated with the tokenization function
assigned_user_idsArrayList of user IDs authorized to access the tokenization function
exportableBooleanIndicates whether the tokenization key can be exported

Response

Here is an example response when the data is successfully updated:

Response
{
"function": {
"id": "f30f8335-8bf3-4cfd-8ca9-80ef48b84650",
"name": "Dummy 3",
"method": "FF3_1",
"tweak_type": "internal",
"data_type": "General",
"sub_type": "Email",
"group_id": "81ad4d05-d11a-4809-b1f2-cc000c086730",
"created_by": "0a937c60-0ed4-4d06-870a-2e284b54287d",
"updated_by": "0a937c60-0ed4-4d06-870a-2e284b54287d",
"created_at": 1783580158,
"updated_at": 1783583322,
"lock_ring_id": "tokenize/f30f8335-8bf3-4cfd-8ca9-80ef48b84650",
"assigned_user_ids": [
"0a937c60-0ed4-4d06-870a-2e284b54287d"
]
}
}

Field Descriptions

FieldTypeDescription
idUUIDUnique identifier of the tokenization function
nameStringName of the tokenization function
methodStringFormat-preserving encryption method used by the function
tweak_typeStringType of tweak used by the tokenization method
data_typeStringCategory of data to be tokenized
sub_typeStringSpecific data sub-type within the selected data type
group_idUUIDIdentifier of the associated group
created_byUUIDIdentifier of the user who created the function
updated_byUUIDIdentifier of the user who last updated the function
created_atIntegerCreation timestamp in Unix format
updated_atIntegerLast update timestamp in Unix format
lock_ring_idStringInternal identifier associated with the tokenization function
assigned_user_idsArrayList of user IDs assigned to the tokenization function

info
  • A valid Bearer Token is required to access this endpoint.
  • The id path parameter must reference an existing tokenization function.
  • Only the configuration settings can be updated. The tokenization method, tweak type, and data type are not modified by this endpoint.
  • Unix timestamp fields can be converted to a human-readable date and time format as needed.