Update a project
curl --request PATCH \
--url https://api.1-news.app/v1/projects/{projectId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"industry": "<string>",
"dashboardLanguage": "<string>",
"siteLanguage": "<string>",
"keywords": [
{}
],
"logoUrl": "<string>",
"faviconUrl": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
industry: '<string>',
dashboardLanguage: '<string>',
siteLanguage: '<string>',
keywords: [{}],
logoUrl: '<string>',
faviconUrl: '<string>'
})
};
fetch('https://api.1-news.app/v1/projects/{projectId}', 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}"
payload = {
"name": "<string>",
"description": "<string>",
"industry": "<string>",
"dashboardLanguage": "<string>",
"siteLanguage": "<string>",
"keywords": [{}],
"logoUrl": "<string>",
"faviconUrl": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)Account
Update a project
PATCH /v1/projects/ updates the newsroom name, description, industry, languages, keywords, logo, and favicon.
PATCH
/
v1
/
projects
/
{projectId}
Update a project
curl --request PATCH \
--url https://api.1-news.app/v1/projects/{projectId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"industry": "<string>",
"dashboardLanguage": "<string>",
"siteLanguage": "<string>",
"keywords": [
{}
],
"logoUrl": "<string>",
"faviconUrl": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
industry: '<string>',
dashboardLanguage: '<string>',
siteLanguage: '<string>',
keywords: [{}],
logoUrl: '<string>',
faviconUrl: '<string>'
})
};
fetch('https://api.1-news.app/v1/projects/{projectId}', 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}"
payload = {
"name": "<string>",
"description": "<string>",
"industry": "<string>",
"dashboardLanguage": "<string>",
"siteLanguage": "<string>",
"keywords": [{}],
"logoUrl": "<string>",
"faviconUrl": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)Update newsroom details. Only a super admin can save this. The public site language also becomes the article language.