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
| Header | Type | Description |
|---|---|---|
| Content-Type | String | Must 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
| Parameter | Type | Description |
|---|---|---|
| id | UUID | Unique 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
| Parameter | Type | Description |
|---|---|---|
| name | String | Updated name of the tokenization function |
| description | String | Optional description of the tokenization function |
| group_id | UUID | Identifier of the group associated with the tokenization function |
| assigned_user_ids | Array | List of user IDs authorized to access the tokenization function |
| exportable | Boolean | Indicates 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
| Field | Type | Description |
|---|---|---|
| id | UUID | Unique identifier of the tokenization function |
| name | String | Name of the tokenization function |
| method | String | Format-preserving encryption method used by the function |
| tweak_type | String | Type of tweak used by the tokenization method |
| data_type | String | Category of data to be tokenized |
| sub_type | String | Specific data sub-type within the selected data type |
| group_id | UUID | Identifier of the associated group |
| created_by | UUID | Identifier of the user who created the function |
| updated_by | UUID | Identifier of the user who last updated the function |
| created_at | Integer | Creation timestamp in Unix format |
| updated_at | Integer | Last update timestamp in Unix format |
| lock_ring_id | String | Internal identifier associated with the tokenization function |
| assigned_user_ids | Array | List of user IDs assigned to the tokenization function |
info
- A valid Bearer Token is required to access this endpoint.
- The
idpath 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.