Update homepage SEO
curl --request PATCH \
--url https://api.1-news.app/v1/projects/{projectId}/seo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"imageUrl": "<string>",
"faq": true,
"llms": true,
"rss": true,
"onpage": true,
"preferred": true
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
imageUrl: '<string>',
faq: true,
llms: true,
rss: true,
onpage: true,
preferred: true
})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/seo', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.1-news.app/v1/projects/{projectId}/seo"
payload = {
"title": "<string>",
"description": "<string>",
"imageUrl": "<string>",
"faq": True,
"llms": True,
"rss": True,
"onpage": True,
"preferred": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)Search
Update homepage SEO
PATCH /v1/projects//seo updates the homepage title, description, image, and the AI SEO switches.
PATCH
/
v1
/
projects
/
{projectId}
/
seo
Update homepage SEO
curl --request PATCH \
--url https://api.1-news.app/v1/projects/{projectId}/seo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"imageUrl": "<string>",
"faq": true,
"llms": true,
"rss": true,
"onpage": true,
"preferred": true
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
imageUrl: '<string>',
faq: true,
llms: true,
rss: true,
onpage: true,
preferred: true
})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/seo', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.1-news.app/v1/projects/{projectId}/seo"
payload = {
"title": "<string>",
"description": "<string>",
"imageUrl": "<string>",
"faq": True,
"llms": True,
"rss": True,
"onpage": True,
"preferred": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)Update the public homepage SEO and the AI SEO switches.