Delete field
With `?cascade=true`: deletes the field and all child monitors. Without: pauses child monitors and retains the field row.
DELETE
/data-sources/{id}/fields/{fid}
With `?cascade=true`: deletes the field and all child monitors. Without: pauses child monitors and retains the field row.
Authentication
Bearer Token (hu_api_key)
Path Parameters
id
string
required
path
fid
string
required
path
Query Parameters
cascade
boolean
optional
query
If true, delete the field and all child monitors. If false (default), pause child monitors.
Responses
200
Field deleted or children paused
No response body
curl -X DELETE 'https://happyuptime.com/api/v1/data-sources/string/fields/string' \ -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://happyuptime.com/api/v1/data-sources/string/fields/string', { method: 'DELETE', headers: { "Authorization": "Bearer YOUR_API_TOKEN" }});const data = await response.json();console.log(data);
import requestsheaders = { 'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.delete('https://happyuptime.com/api/v1/data-sources/string/fields/string', headers=headers)print(response.json())
API Playground
Try this endpoint
DELETE
/data-sources/{id}/fields/{fid}