Delete team traffic exclusion REST API
DELETE
/api/user/teams/{id}/exclusions/{ruleID}
const url = 'http://127.0.0.1:25737/api/user/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/exclusions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'DELETE', headers: {cookie: 'hk_token=<hk_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 http://127.0.0.1:25737/api/user/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/exclusions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --cookie hk_token=<hk_token>Deletes a rule owned by this team. Instance rules returned by effective reads cannot be deleted through this route. Requires team.manage_settings.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
ruleID
required
string format: uuid
Responses
Section titled “Responses”Deleted
Access denied
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}Not found
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}