Publish a story
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/articles/{articleId}/publish \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1-news.app/v1/projects/{projectId}/articles/{articleId}/publish', 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}/publish"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)Stories
Publish a story
POST /v1/projects//articles//publish makes a story public. The first publish sets the publish time.
POST
/
v1
/
projects
/
{projectId}
/
articles
/
{articleId}
/
publish
Publish a story
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/articles/{articleId}/publish \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1-news.app/v1/projects/{projectId}/articles/{articleId}/publish', 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}/publish"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)