<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Colin,<br>
<br>
Try to submit it just either as object or list of objects (not
including the outer <span style="font-family:"Courier
New"">"probes":).</span> Like:<br>
<br>
{"action":"add","requested":1,"type":"probes","value":"<p>"}<br>
<br>
or<br>
<br>
[{"action":"add","requested":1,"type":"probes","value":"<p>"},
{"action":"add"....} ]<br>
<br>
wbr<br>
<br>
/vty<br>
<br>
On 4/2/17 4:38 PM, Colin Strutt wrote:<br>
</div>
<blockquote cite="mid:00d701d2abbe$bf030db0$3d092910$@interisle.net"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<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;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@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]-->
<div class="WordSection1">
<p class="MsoNormal">I�m trying to add a probe, by probe number,
to an existing, running measurement, using curl, following the
example and description on page 84 of the �RIPE Atlas API v2
manual�. However, I�m getting an error message that does not
clearly point me to the problem, and thus allow me to correct
my error.<o:p></o:p></p>
<p class="MsoNormal"><o:p>�</o:p></p>
<p class="MsoNormal">Here�s what I�m entering (with the
<�> as placeholders, explained below)<o:p></o:p></p>
<p class="MsoNormal"><o:p>�</o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span
style="font-family:"Courier New"">curl -H
"Content-Type: application/json" -H "Accept:
application/json" -X POST -d
'{"probes":[{"action":"add","requested":1,"type":"probes","value":"<p>"}]}'
<a class="moz-txt-link-freetext" href="https://atlas.ripe.net/api/v2/measurements/">https://atlas.ripe.net/api/v2/measurements/</a><m>/participation-requests/?key=<a><o:p></o:p></span></p>
<p class="MsoNormal">where:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><p> is the
number of the probe I�m trying to add, and I can access it at
<span style="font-family:"Courier New""><a class="moz-txt-link-freetext" href="https://atlas.ripe.net/probes/">https://atlas.ripe.net/probes/</a><p></span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><m> is the
measurement to which I�m trying to add it � it�s a running
measurement, and I can access it at <span
style="font-family:"Courier New""><a class="moz-txt-link-freetext" href="https://atlas.ripe.net/measurements/">https://atlas.ripe.net/measurements/</a><m></span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><a> is the
API key, which is enabled and has �Update an existing
measurement� granted<o:p></o:p></p>
<p class="MsoNormal"><o:p>�</o:p></p>
<p class="MsoNormal">The error I get back is:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span
style="font-family:"Courier New"">{"error":{"status":400,"code":104,"detail":"JSON
parse error - No JSON object could be decoded","title":"Bad
Request"}}<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>�</o:p></p>
<p class="MsoNormal">In case it�s relevant, I�m running curl
7.53.1 on Windows 10.<o:p></o:p></p>
<p class="MsoNormal"><o:p>�</o:p></p>
<p class="MsoNormal">Thanks in advance for any suggestions.<o:p></o:p></p>
<p class="MsoNormal">colin<o:p></o:p></p>
<p class="MsoNormal"><o:p>�</o:p></p>
</div>
</blockquote>
<p><br>
</p>
</body>
</html>