//native
/**
* Delete Group
* Use this method to list the log groups.
*/
export async function main(auth: RT.Mezmo, groupId: string, servicekey: string) {
const url = new URL(`https://api.mezmo.com/v1/config/groups/${groupId}`)
const response = await fetch(url, {
method: 'DELETE',
headers: {
servicekey: servicekey,
Authorization: 'Token ' + auth.apiKey
},
body: undefined
})
if (!response.ok) {
const text = await response.text()
throw new Error(`${response.status} ${text}`)
}
return await response.json()
}
Submitted by hugo697 235 days ago