Hi there,
I noticed in netlify/next-runtime that there is a Netlify API endpoint refresh_on_demand_builders: https://github.com/netlify/next-runtime/blob/main/packages/runtime/src/templates/server.ts#L105
Is this something that is released and can Netlify users use it?
I tried the following fetch:
fetch(
`https://api.netlify.com/api/v1/sites/${SITE_ID}/refresh_on_demand_builders`,
{
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${TOKEN}`,
},
body: JSON.stringify({
paths: ["/"],
domain: "...",
}),
}
)
.then((response) => response.json())
.then((data) => {
console.log(data);
})
.catch((error) => {
console.error("Error:", error);
});
…but I received a Access Denied with my own personal access token.
Thanks