Start typing to search.

API Reference

Delete a dashboard template

View Markdown

Deletes the template. Existing job dashboards keep their snapshotted YAML; dashboard template id is set NULL (FK ON DELETE SET NULL).

DELETE /api/dashboard-templates/{id}

Deletes the template. Existing job dashboards keep their snapshotted YAML; dashboard_template_id is set NULL (FK ON DELETE SET NULL).

Operation ID: deleteDashboardTemplate

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

  • idinteger, required Resource ID

Success responses

200

Template deleted

Content type: application/json

  • Type: object
  • Properties:
    • ok (boolean)
    • orphaned_dashboard_count (integer) — Job dashboards that lost their template link

Error responses

404

Resource not found

Content type: application/json

  • Reference: Error
    • Type: object
    • Properties:
      • error (string)
        • Example: NOT_FOUND
      • message (string)
        • Example: Resource not found

Example:

{
  "error": "NOT_FOUND",
  "message": "Resource not found"
}

Examples

cURL

curl --request DELETE \
  --url 'https://your-envoy.example.com/api/dashboard-templates/YOUR_ID' \
  --header 'Authorization: Bearer $API_KEY'

JavaScript (fetch)

const response = await fetch('https://your-envoy.example.com/api/dashboard-templates/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);