//native
/**
* Delete Exclusion Rule
* Use this method to delete an exclusion rule.
*/
export async function main(auth: RT.Mezmo, id: string) {
const url = new URL(`https://api.mezmo.com/v1/config/ingestion/exclusions/${id}`)
const response = await fetch(url, {
method: 'DELETE',
headers: {
Authorization: 'Token ' + auth.apiKey
},
body: undefined
})
if (!response.ok) {
const text = await response.text()
throw new Error(`${response.status} ${text}`)
}
return await response.text()
}
Submitted by hugo697 235 days ago