API Reference
Delete explorer preset
Admin/superadmin only. Destructive — requires explicit approval when invoked by the AI agent.
DELETE /api/explorer-presets/{id}
Admin/superadmin only. Destructive — requires explicit approval when invoked by the AI agent.
Operation ID: deleteExplorerPreset
Authentication
Option 1
- BearerAuth (
http bearer) API key token. Create via POST /api/api-keys. Format:envoy_<hex>
Option 2
- CookieAuth (
apiKey) Session cookie set after login + TOTP verification
Path parameters
id—integer,requiredResource ID
Success responses
200
Deleted
Examples
cURL
curl --request DELETE \
--url 'https://your-envoy.example.com/api/explorer-presets/YOUR_ID' \
--header 'Authorization: Bearer $API_KEY'JavaScript (fetch)
const response = await fetch('https://your-envoy.example.com/api/explorer-presets/YOUR_ID', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = response.status === 204 ? null : await response.json();
console.log(data);