Delete a project
DELETE
/projects/{project_id}
const url = 'https://api.perstat.io/projects/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.perstat.io/projects/example \ --header 'Authorization: Bearer <token>'Deletes a project. Without parameters this is a destructive cascade: all monitors contained in the project are deleted as well. With the optional reassign_to query parameter, remaining monitors are first moved to another project the caller can manage. Passing the deleted project itself as reassign_to returns 400.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”project_id
required
string
Query Parameters
Section titled “Query Parameters”reassign_to
string
Public_id eines Ziel-Projekts: verbliebene Dienste werden vorher dorthin verschoben