[users at bb.net] REST API: specify properties when forcing a build

Pierre Tardy tardyp at gmail.com
Mon Feb 5 15:24:17 UTC 2018


Hi Jerome,

If I recall correctly, you have to access the nested fields with dot
separators "nest.field1".

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) )

Regards
Pierre


On Mon, Feb 5, 2018 at 3:14 PM Jérôme Laheurte <jerome at jeromelaheurte.net>
wrote:

> 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
>
> curl -d ‘{« method »: « force », « owner »: « me at me.com », « jsonrpc »:
> « 3.0 », « id »: 42, « params: {« username »: « me at me.com »}}’ -X POST
> https://host/api/v2/forceschedulers/schedname
>
> I’ve tried adding various keys in the JSON, to no avail, and Google
> doesn’t help here.
>
> TIA
> Jérôme Laheurte
>
> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20180205/2874ef60/attachment.html>


More information about the users mailing list