# Add API for waive dependency confusion on Repository Result

**URL:** <https://community.sonatype.com/t/add-api-for-waive-dependency-confusion-on-repository-result/7578>\
**Category:** Sonatype Lifecycle & Firewall\
**Tags:** firewall, nexus-iq, remediation, api\
**Created:** [November 3, 2021, 9:33am UTC](https://community.sonatype.com/t/add-api-for-waive-dependency-confusion-on-repository-result/7578 "2021-11-03T09:33:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cathy.x.l.lv](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cathy.x.l.lv](https://community.sonatype.com/u/cathy.x.l.lv)\
**Post date:** [November 3, 2021, 9:33am UTC](https://community.sonatype.com/t/add-api-for-waive-dependency-confusion-on-repository-result/7578/1 "2021-11-03T09:33:51Z")

</div>

We want a new API which could be used to waive the dependency confusion on Repository Result  
the sample report link:  
[https://xxxx](https://xxxx):port/assets/index.html#/repository/2626993c3b194bb28e085d5d86692ddc/result

This is used to manage the quarantined items from public repo artifacts download in Nexus  
it take us much time to waive the component in the UI as there is no api which could be used.

---

<div class="post-metadata">

**Author:** ![jwhitehouse](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/jwhitehouse/32/187_2.png) [@jwhitehouse](https://community.sonatype.com/u/jwhitehouse)\
**Post date:** [November 8, 2021, 3:56pm UTC](https://community.sonatype.com/t/add-api-for-waive-dependency-confusion-on-repository-result/7578/2 "2021-11-08T15:56:01Z")

</div>

There is an API to create waivers: [Policy Waiver REST API - v2](https://help.sonatype.com/iqserver/automating/rest-apis/policy-waiver-rest-api---v2)  
This will not change the quarantine state though since it requires someone to ‘release from quarantine’, an explict action since we want to be sure people understand the impact.

There is an API to combine the waiving and release from quarantine if you’re confident it will not be misused: [Release Component from Quarantine REST API - v2](https://help.sonatype.com/iqserver/automating/rest-apis/release-component-from-quarantine-rest-api---v2)

---

<div class="post-metadata">

**Author:** ![cathy.x.l.lv](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cathy.x.l.lv](https://community.sonatype.com/u/cathy.x.l.lv)\
**Post date:** [November 9, 2021, 4:56am UTC](https://community.sonatype.com/t/add-api-for-waive-dependency-confusion-on-repository-result/7578/3 "2021-11-09T04:56:52Z")

</div>

Hi Jamie,  
Regarding to create waivers [[Policy Waiver REST API - v2](https://help.sonatype.com/iqserver/automating/rest-apis/policy-waiver-rest-api---v2)]

how could i use this to create waiver for quaranined item in repository?

when i try to call it with repository id,  
[https://sonatypeiq-dev.systems.uk.hsbc:8443/api/v2/policyWaivers/repository/2626993c3b194bb28e085d5d86692ddc/e331acde20524420b51e6ab72a1738fb](https://sonatypeiq-dev.systems.uk.hsbc:8443/api/v2/policyWaivers/repository/2626993c3b194bb28e085d5d86692ddc/e331acde20524420b51e6ab72a1738fb)  
it show :Invalid owner type: repository
