curl -X DELETE 'https://api.weir.ai/org/platform/platform_123456789' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'x-source: console'
{
"message": "Platform deleted successfully",
"status": "success"
}
Delete a platform from your organization
curl -X DELETE 'https://api.weir.ai/org/platform/platform_123456789' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'x-source: console'
{
"message": "Platform deleted successfully",
"status": "success"
}
curl -X DELETE 'https://api.weir.ai/org/platform/platform_123456789' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'x-source: console'
{
"message": "Platform deleted successfully",
"status": "success"
}
const deletePlatform = async (platformId, accessToken) => {
const response = await fetch(`https://api.weir.ai/org/platform/${platformId}`, {
method: 'DELETE',
headers: {
'Authorization': `Bearer ${accessToken}`,
'x-source': 'console'
}
});
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
return await response.json();
};
Was this page helpful?