Update a tag for a particular team
curl --request PUT \
--url https://platform.thena.ai/v1/teams/{teamUuid}/tags/{tagUuid} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Urgent",
"color": "#FF0000",
"description": "Used for urgent tickets that need immediate attention"
}
'import requests
url = "https://platform.thena.ai/v1/teams/{teamUuid}/tags/{tagUuid}"
payload = {
"name": "Urgent",
"color": "#FF0000",
"description": "Used for urgent tickets that need immediate attention"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Urgent',
color: '#FF0000',
description: 'Used for urgent tickets that need immediate attention'
})
};
fetch('https://platform.thena.ai/v1/teams/{teamUuid}/tags/{tagUuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://platform.thena.ai/v1/teams/{teamUuid}/tags/{tagUuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Urgent',
'color' => '#FF0000',
'description' => 'Used for urgent tickets that need immediate attention'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.thena.ai/v1/teams/{teamUuid}/tags/{tagUuid}"
payload := strings.NewReader("{\n \"name\": \"Urgent\",\n \"color\": \"#FF0000\",\n \"description\": \"Used for urgent tickets that need immediate attention\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://platform.thena.ai/v1/teams/{teamUuid}/tags/{tagUuid}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Urgent\",\n \"color\": \"#FF0000\",\n \"description\": \"Used for urgent tickets that need immediate attention\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.thena.ai/v1/teams/{teamUuid}/tags/{tagUuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Urgent\",\n \"color\": \"#FF0000\",\n \"description\": \"Used for urgent tickets that need immediate attention\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Success",
"timestamp": "2024-01-01T00:00:00.000Z",
"teamUuid": "<string>",
"data": {
"count": 123,
"items": [
{}
]
}
}Tags
Update a tag for a particular team
PUT
/
v1
/
teams
/
{teamUuid}
/
tags
/
{tagUuid}
Update a tag for a particular team
curl --request PUT \
--url https://platform.thena.ai/v1/teams/{teamUuid}/tags/{tagUuid} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Urgent",
"color": "#FF0000",
"description": "Used for urgent tickets that need immediate attention"
}
'import requests
url = "https://platform.thena.ai/v1/teams/{teamUuid}/tags/{tagUuid}"
payload = {
"name": "Urgent",
"color": "#FF0000",
"description": "Used for urgent tickets that need immediate attention"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Urgent',
color: '#FF0000',
description: 'Used for urgent tickets that need immediate attention'
})
};
fetch('https://platform.thena.ai/v1/teams/{teamUuid}/tags/{tagUuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://platform.thena.ai/v1/teams/{teamUuid}/tags/{tagUuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Urgent',
'color' => '#FF0000',
'description' => 'Used for urgent tickets that need immediate attention'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.thena.ai/v1/teams/{teamUuid}/tags/{tagUuid}"
payload := strings.NewReader("{\n \"name\": \"Urgent\",\n \"color\": \"#FF0000\",\n \"description\": \"Used for urgent tickets that need immediate attention\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://platform.thena.ai/v1/teams/{teamUuid}/tags/{tagUuid}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Urgent\",\n \"color\": \"#FF0000\",\n \"description\": \"Used for urgent tickets that need immediate attention\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.thena.ai/v1/teams/{teamUuid}/tags/{tagUuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Urgent\",\n \"color\": \"#FF0000\",\n \"description\": \"Used for urgent tickets that need immediate attention\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Success",
"timestamp": "2024-01-01T00:00:00.000Z",
"teamUuid": "<string>",
"data": {
"count": 123,
"items": [
{}
]
}
}Authorizations
Enter your API key
Body
application/json
The name of the tag
Required string length:
1 - 50Example:
"Urgent"
Color in hexadecimal format
Pattern:
^#([A-Fa-f0-9]{6})$Example:
"#FF0000"
Optional description of the tag
Maximum string length:
255Example:
"Used for urgent tickets that need immediate attention"
Response
Operation successful
The status of the response
The message of the response
The timestamp of the response
The team ID
Updates tags for a particular team.
Show child attributes
Show child attributes
⌘I