Update story SEO
curl --request PATCH \
--url https://api.1-news.app/v1/projects/{projectId}/articles/{articleId}/seo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"seoTitle": "<string>",
"seoDescription": "<string>",
"coverUrl": "<string>",
"coverAlt": "<string>",
"keywords": [
{}
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
seoTitle: '<string>',
seoDescription: '<string>',
coverUrl: '<string>',
coverAlt: '<string>',
keywords: [{}]
})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/articles/{articleId}/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}/articles/{articleId}/seo"
payload = {
"seoTitle": "<string>",
"seoDescription": "<string>",
"coverUrl": "<string>",
"coverAlt": "<string>",
"keywords": [{}]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)Stories
Update story SEO
PATCH /v1/projects//articles//seo updates the SEO title, description, cover, and keywords for one story.
PATCH
/
v1
/
projects
/
{projectId}
/
articles
/
{articleId}
/
seo
Update story SEO
curl --request PATCH \
--url https://api.1-news.app/v1/projects/{projectId}/articles/{articleId}/seo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"seoTitle": "<string>",
"seoDescription": "<string>",
"coverUrl": "<string>",
"coverAlt": "<string>",
"keywords": [
{}
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
seoTitle: '<string>',
seoDescription: '<string>',
coverUrl: '<string>',
coverAlt: '<string>',
keywords: [{}]
})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/articles/{articleId}/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}/articles/{articleId}/seo"
payload = {
"seoTitle": "<string>",
"seoDescription": "<string>",
"coverUrl": "<string>",
"coverAlt": "<string>",
"keywords": [{}]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)