Update SEO settings
curl --request PATCH \
--url https://{your-subdomain}.neetokb.com/api/external/v2/seo_setting \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"seo_setting": {
"title": "<string>",
"title_suffix": "<string>",
"description": "<string>",
"keywords": [
"<string>"
],
"allow_search_engine_crawl": true,
"google_analytics_tracking_id": "<string>"
}
}
'const options = {
method: 'PATCH',
headers: {'X-Api-Key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
seo_setting: {
title: '<string>',
title_suffix: '<string>',
description: '<string>',
keywords: ['<string>'],
allow_search_engine_crawl: true,
google_analytics_tracking_id: '<string>'
}
})
};
fetch('https://{your-subdomain}.neetokb.com/api/external/v2/seo_setting', 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/seo_setting"
payload = { "seo_setting": {
"title": "<string>",
"title_suffix": "<string>",
"description": "<string>",
"keywords": ["<string>"],
"allow_search_engine_crawl": True,
"google_analytics_tracking_id": "<string>"
} }
headers = {
"X-Api-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"title": "<string>",
"title_suffix": "<string>",
"description": "<string>",
"keywords": [
"<string>"
],
"allow_search_engine_crawl": true,
"google_analytics_tracking_id": "<string>"
}{
"error": "Name can't be blank."
}SEO settings
Update SEO settings
This API updates the SEO settings of the knowledge base. Send at least one field. The put method works too. For CLI sessions, this needs the Manage SEO settings permission.
PATCH
/
seo_setting
Update SEO settings
curl --request PATCH \
--url https://{your-subdomain}.neetokb.com/api/external/v2/seo_setting \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"seo_setting": {
"title": "<string>",
"title_suffix": "<string>",
"description": "<string>",
"keywords": [
"<string>"
],
"allow_search_engine_crawl": true,
"google_analytics_tracking_id": "<string>"
}
}
'const options = {
method: 'PATCH',
headers: {'X-Api-Key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
seo_setting: {
title: '<string>',
title_suffix: '<string>',
description: '<string>',
keywords: ['<string>'],
allow_search_engine_crawl: true,
google_analytics_tracking_id: '<string>'
}
})
};
fetch('https://{your-subdomain}.neetokb.com/api/external/v2/seo_setting', 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/seo_setting"
payload = { "seo_setting": {
"title": "<string>",
"title_suffix": "<string>",
"description": "<string>",
"keywords": ["<string>"],
"allow_search_engine_crawl": True,
"google_analytics_tracking_id": "<string>"
} }
headers = {
"X-Api-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"title": "<string>",
"title_suffix": "<string>",
"description": "<string>",
"keywords": [
"<string>"
],
"allow_search_engine_crawl": true,
"google_analytics_tracking_id": "<string>"
}{
"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