Comment settings
curl --request PATCH \
--url https://api.1-news.app/v1/projects/{projectId}/comment-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"requireLogin": true,
"autoApprove": true,
"threads": true
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true, requireLogin: true, autoApprove: true, threads: true})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/comment-settings', 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}/comment-settings"
payload = {
"enabled": True,
"requireLogin": True,
"autoApprove": True,
"threads": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)Comments
Comment settings
PATCH /v1/projects//comment-settings turns comments on, requires sign-in, auto-approves, and allows threads.
PATCH
/
v1
/
projects
/
{projectId}
/
comment-settings
Comment settings
curl --request PATCH \
--url https://api.1-news.app/v1/projects/{projectId}/comment-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"requireLogin": true,
"autoApprove": true,
"threads": true
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true, requireLogin: true, autoApprove: true, threads: true})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/comment-settings', 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}/comment-settings"
payload = {
"enabled": True,
"requireLogin": True,
"autoApprove": True,
"threads": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)