Updated on December 19, 2023

Add or Update tags

The method for adding or updating a tag enables users to associate an existing TagName with a Token Name.

For instance, if the user has a Tag Name “Person,” a Tag Type “PersonName,” and a Token Name “Text token,” the purpose is to map these components. During tokenization, if the input is “James,” it is identified as a “PersonName,” and a token will be generated in text format according to the specified Token Name.

Endpoint and Authentication:

Endpoint: https://trial.protecto.ai/api/vault/metadata/update-tag 

For authentication, include the following token in the request headers:

Headers: {“Authorization”: “Bearer <AUTH_TOKEN>”}

Request Payload:

Here’s an example of a request payload Add or Update tag

{
"data": [
{
"tagName": "Test Tag 02",
"tagType": "Person Name",
"tokenName": "Test Token 02",
"type": "custom"
},
{
"tagName": "Test Tag 01",
"tagType": "Address",
"tokenName": "Test Token 01",
"type": "custom"
}
]
}

Response:

Here’s an example of a response:

Response

{
"data": [
{
"tagName": "Test Tag 02",
"tagType": "Person Name",
"tokenName": "Test Token 02",
"type": "custom"
},
{
"tagName": "Test Tag 01",
"tagType": "Address",
"tokenName": "Test Token 01",
"type": "custom"
}
]
}

 

What are your feelings?
Scroll to Top