Skip to content

Update tags for template

Update tags for an existing template.
This endpoint allows you to replace all existing tags of a template with a new set of tags.

Request Body

The request body should be an array of strings containing the new tags you want to set.

Sample Request

Here’s a sample request to update tags for a template:

PUT /v1/template/{templateId}/tags
fetch(`https://api.templated.io/v1/template/${template_id}/tags`, {
method: 'PUT',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json'
},
body: JSON.stringify([
"new-tag1",
"new-tag2",
"new-tag3"
])
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));