Update Tag
PATCH https://api.unltd.ai/v1/organizations/:organizationId/tags/:tagId
This endpoint updates a Tag entity for a specific organization based on the provided information in the request body.
Request Body
name
string
The updated name of the tag.
color
string
The updated color code of the tag in HEX format.
id
string
The ID of the tag to be updated.
Permissions
This request requires an authenticated user who is a member of the organization or an organization token.
API Example
const fetchApiData = async () => {
const response = await fetch("https://api.unltd.ai/v1/organizations/example_org_id/tags/example_tag_id", {
method: 'PATCH',
headers: {
'Authorization': 'Bearer ',
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: 'Updated Important',
color: '#00FF00'
})
});
const data = await response.json();
console.log(data);
};
fetchApiData();
{
"name": "Updated Important",
"color": "#00FF00"
}