<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">The first error seems to have been related to using the http version, not the https…I did a wireshark and saw that the server did a redirect, but the Python library didn’t seem to follow properly.  Changed to https and started getting different
 errors. Worked though those (mostly formatting and me not realizing that the data needs to be XML, not JSON)…it is now working.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">--Gavin Budd<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Jon Worley <jonw@arin.net> <br>
<b>Sent:</b> Sunday, September 29, 2019 9:07 AM<br>
<b>To:</b> Gavin Budd <gavin@fatbeam.com><br>
<b>Cc:</b> arin-tech-discuss@arin.net<br>
<b>Subject:</b> Re: [arin-tech-discuss] Restful Question -- Error 403<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hello Gavin, <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The parent org handle field should be left blank, IIRC. That’s the only thing I spotted with a quick look. Perhaps give that a try and see if it goes through OK. If not, reply back to the list or me directly so we can figure out what’s
 going on. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">-Jon Worley<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Technical Services Lead<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">ARIN<o:p></o:p></p>
<div id="AppleMailSignature">
<p class="MsoNormal">Sent from my iPad<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
On Sep 29, 2019, at 12:13 AM, Gavin Budd via arin-tech-discuss <<a href="mailto:arin-tech-discuss@arin.net">arin-tech-discuss@arin.net</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><b> </b><o:p></o:p></p>
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Apologies if this is a repeat, I am unsure if the first message I sent went through…<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I am trying to automate some ARIN registrations and am running into an odd error…<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">When I try to create a new customer record, submitting this data (with actual values) via a python requests.post call, I get an error 403 with the error text as {'componentErrors': [], 'additionalMessages': [], 'code': 'E_UNSPECIFIED',
 'message': 'This method for internal ARIN use only.'}.  Any idea on what method they are referring to and how to correct it?  This happens on both the OTE database and the live database.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thank you!<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">--Gavin Budd<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">URL:<o:p></o:p></p>
<p class="MsoNormal"><a href="http://reg.ote.arin.net/rest/net/%3cPARENT_NET%3e/customer?apikey=%3cAPIKEY">http://reg.ote.arin.net/rest/net/<PARENT_NET>/customer?apikey=<APIKEY</a>><o:p></o:p></p>
<p class="MsoNormal">Data:<o:p></o:p></p>
<p class="MsoNormal">{<o:p></o:p></p>
<p class="MsoNormal">  "customer xmlns": "<a href="http://www.arin.net/regrws/core/v1">http://www.arin.net/regrws/core/v1</a>",<o:p></o:p></p>
<p class="MsoNormal">  "customerName": "Name",<o:p></o:p></p>
<p class="MsoNormal">  "iso3116-1": {<o:p></o:p></p>
<p class="MsoNormal">    "name": "UNITED STATES",<o:p></o:p></p>
<p class="MsoNormal">    "code2": "US",<o:p></o:p></p>
<p class="MsoNormal">    "code3": "USA",<o:p></o:p></p>
<p class="MsoNormal">    "e164": 1<o:p></o:p></p>
<p class="MsoNormal">  },<o:p></o:p></p>
<p class="MsoNormal">  "handle": "",<o:p></o:p></p>
<p class="MsoNormal">  "streetAddress": {<o:p></o:p></p>
<p class="MsoNormal">    "line number = \"1\"": "Address",<o:p></o:p></p>
<p class="MsoNormal">    "line number = \"2\"": ""<o:p></o:p></p>
<p class="MsoNormal">  },<o:p></o:p></p>
<p class="MsoNormal">  "city": "City",<o:p></o:p></p>
<p class="MsoNormal">  "ISO3166-2": "ST",<o:p></o:p></p>
<p class="MsoNormal">  "postalCode": "55555",<o:p></o:p></p>
<p class="MsoNormal">  "parentOrgHandle": "ORG-ID"<o:p></o:p></p>
<p class="MsoNormal">}<o:p></o:p></p>
</div>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">_______________________________________________<br>
arin-tech-discuss mailing list<br>
<a href="mailto:arin-tech-discuss@arin.net">arin-tech-discuss@arin.net</a><br>
<a href="https://lists.arin.net/mailman/listinfo/arin-tech-discuss">https://lists.arin.net/mailman/listinfo/arin-tech-discuss</a><o:p></o:p></p>
</div>
</blockquote>
</div>
</div>
</body>
</html>