Update tag
curl --request PATCH \
--url https://{your-subdomain}.neetokb.com/api/external/v2/tags/{id} \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"name": "<string>",
"description": "<string>"
}
'const options = {
method: 'PATCH',
headers: {'X-Api-Key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', description: '<string>'})
};
fetch('https://{your-subdomain}.neetokb.com/api/external/v2/tags/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetokb.com/api/external/v2/tags/{id}"
payload = {
"name": "<string>",
"description": "<string>"
}
headers = {
"X-Api-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"tag": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Billing",
"description": "<string>",
"style": "secondary",
"articles_count": 2
}
}{
"error": "Not found."
}{
"error": "Name can't be blank."
}Tags
Update tag
This API updates a tag. The put method works too. For CLI sessions, this needs the Manage tags permission.
PATCH
/
tags
/
{id}
Update tag
curl --request PATCH \
--url https://{your-subdomain}.neetokb.com/api/external/v2/tags/{id} \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"name": "<string>",
"description": "<string>"
}
'const options = {
method: 'PATCH',
headers: {'X-Api-Key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', description: '<string>'})
};
fetch('https://{your-subdomain}.neetokb.com/api/external/v2/tags/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetokb.com/api/external/v2/tags/{id}"
payload = {
"name": "<string>",
"description": "<string>"
}
headers = {
"X-Api-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"tag": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Billing",
"description": "<string>",
"style": "secondary",
"articles_count": 2
}
}{
"error": "Not found."
}{
"error": "Name can't be blank."
}Replace
Learn how to find your subdomain in Workspace subdomain.
{your-subdomain} with your workspace’s subdomain. Learn how to find your subdomain in Workspace subdomain.
Headers
Use the X-Api-Key header to provide your workspace API key. Refer to Authentication for more information.
Body
application/json