Recover analytics
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/analytics/recover \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1-news.app/v1/projects/{projectId}/analytics/recover', 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}/analytics/recover"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"ok": true
}Tools
Recover analytics
Stop a scheduled analytics deletion while the hold is still open.
POST
/
v1
/
projects
/
{projectId}
/
analytics
/
recover
Recover analytics
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/analytics/recover \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1-news.app/v1/projects/{projectId}/analytics/recover', 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}/analytics/recover"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"ok": true
}