Remove a site's notification override
DELETE
/v1/sites/{id}/notifications
const url = 'https://api.overwatch.weareheavy.dev/v1/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/notifications';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.overwatch.weareheavy.dev/v1/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/notifications \ --header 'Authorization: Bearer <token>'Drop the site’s override so it reverts to the org defaults. Session-only, owner/admin.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”id
required
string format: uuid
The site’s UUID.
Responses
Section titled “ Responses ”Whether an override existed and was removed.
Media typeapplication/json
object
deleted
required
boolean
Examplegenerated
{ "deleted": true}Missing or invalid credentials.
Media typeapplication/json
object
error
required
A human-readable error message.
string
Example
{ "error": "invalid api key"}A dashboard session is required (API-key callers are rejected), or the session’s role does not allow this action.
Media typeapplication/json
object
error
required
A human-readable error message.
string
Example
{ "error": "a dashboard session is required"}No site with that id is visible to the caller.
Media typeapplication/json
object
error
required
A human-readable error message.
string
Example
{ "error": "site not found"}