<div dir="ltr"><br clear="all"><div>Hi,</div><div><br></div><div>Hope someone will help me out in this.</div><div><br></div><div>I was able to successfully reassign IP's from my company to our users using ARIN's documentation.</div><div><br></div><div>Now, I need to delete some of those reassignments(since they have canceled their services) and reassign it to some other users.</div><div><br></div><div>I am using <b>DELETE METHOD.</b></div><div><b><br></b></div><div><b>I am not able to delete the reassignments from backend</b></div><div><b><br></b></div><div><b>My code is :</b></div><div><b><br></b></div><div><b>===========================</b></div><div>$url = "<a href="https://reg.arin.net/rest/net/104-153-72-4-1?apikey=API-***************">https://reg.arin.net/rest/net/104-153-72-4-1?apikey=API-***************</a>";</div><div><div>$ch = curl_init();</div><div>curl_setopt($ch, CURLOPT_URL, $url);</div><div>curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "DELETE");</div><div>curl_setopt($curl, CURLOPT_HEADER, false);</div><div>curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);</div><div>curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/json',"OAuth-Token: $token"));</div><div><br></div><div>$response = curl_exec($curl);</div></div><div><b>============================</b></div><div><b><br></b></div><div><b><br></b></div><div><b>It's returning the following response:</b></div><div><b><br></b></div><div><b>========================</b></div><div><?xml version="1.0" encoding="UTF-8" standalone="yes"?><error xmlns="<a href="http://www.arin.net/regrws/core/v1">http://www.arin.net/regrws/core/v1</a>"><additionalInfo/><code>E_OBJECT_NOT_FOUND</code><components><component><message>The referenced object does not exist.</message><name>handle</name></component></components><message>The referenced object does not exist.</message></error><br></div><div><b>========================</b><b><br></b></div><div><b><br></b></div><div><b>.ie. the error message is "</b><b>The referenced object does not exist.".</b></div><div><b><br></b></div><div><b>When I try to execute the same directly from terminal via curl command, it's working.</b></div><div><b><br></b></div><div><b>========================</b><b><br></b></div><div>curl -v -H "Content-Type: application/xml" -X DELETE <a href="https://reg.arin.net/rest/net/NET-104-153-72-2-1?apikey=*******************">https://reg.arin.net/rest/net/NET-104-153-72-2-1?apikey=*******************</a><br></div><div><b>========================</b><br></div><div><b><br></b></div><div><b>Has anyone faced this issue earlier.</b></div><div><b><br></b></div><div><b>Can someone help me out in this.</b></div><div><b><br></b></div><div><b>Thanks,</b></div><div><b>Sreenath</b></div><div><b><br></b></div><div><b><br></b></div>
</div>