Rebuild usage cache
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.prudra.dev/billing/rebuild-cache', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.prudra.dev/billing/rebuild-cache"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)curl --request POST \
--url https://api.prudra.dev/billing/rebuild-cache \
--header 'Authorization: Bearer <token>'{
"rebuilt": true
}Billing
Rebuild usage cache
Rebuilds Redis usage counters from Postgres for the authenticated organisation.
POST
/
billing
/
rebuild-cache
Rebuild usage cache
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.prudra.dev/billing/rebuild-cache', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.prudra.dev/billing/rebuild-cache"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)curl --request POST \
--url https://api.prudra.dev/billing/rebuild-cache \
--header 'Authorization: Bearer <token>'{
"rebuilt": true
}
