Unpublish a story
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/articles/{articleId}/unpublish \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1-news.app/v1/projects/{projectId}/articles/{articleId}/unpublish', 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}/unpublish"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)Stories
Unpublish a story
POST /v1/projects//articles//unpublish returns a story to draft and takes it off the public site.
POST
/
v1
/
projects
/
{projectId}
/
articles
/
{articleId}
/
unpublish
Unpublish a story
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/articles/{articleId}/unpublish \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1-news.app/v1/projects/{projectId}/articles/{articleId}/unpublish', 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}/unpublish"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)