Write the site summary
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/llms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"force": true
}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({force: true})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/llms', 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}/llms"
payload = { "force": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"summary": "<string>",
"skipped": true
}Search
Write the site summary
Write the short summary used on the newsroom’s llms.txt file.
POST
/
v1
/
projects
/
{projectId}
/
llms
Write the site summary
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/llms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"force": true
}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({force: true})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/llms', 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}/llms"
payload = { "force": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"summary": "<string>",
"skipped": true
}Write the site summary. An admin can do this. If a summary already exists, the current one is returned unless force is true.