<div dir="ltr">Hi Jerome,<div><br></div><div>If I recall correctly, you have to access the nested fields with dot separators "nest.field1".</div><div><br></div><div>The best way to debug this is to use your browser and look at the post generated by the UI (via network tab of the developer console (usually F12 or right click -> inspect) )</div><div><br></div><div>Regards</div><div>Pierre</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Feb 5, 2018 at 3:14 PM Jérôme Laheurte <<a href="mailto:jerome@jeromelaheurte.net">jerome@jeromelaheurte.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">I have a force scheduler with properties=[NestedParameter(name=« nest », fields=[…])] and I’d like to set the values of the properties in ‘nest’ when using the REST API. The base call looks like<div><br></div><div>curl -d ‘{« method »: « force », « owner »: « <a href="mailto:me@me.com" target="_blank">me@me.com</a> », « jsonrpc »: « 3.0 », « id »: 42, « params: {« username »: « <a href="mailto:me@me.com" target="_blank">me@me.com</a> »}}’ -X POST <a href="https://host/api/v2/forceschedulers/schedname" target="_blank">https://host/api/v2/forceschedulers/schedname</a></div><div><br></div><div>I’ve tried adding various keys in the JSON, to no avail, and Google doesn’t help here.</div><div><br></div><div>TIA</div><div>Jérôme Laheurte</div><div><br></div></div>_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@buildbot.net" target="_blank">users@buildbot.net</a><br>
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/mailman/listinfo/users</a></blockquote></div>