WebAPI setDetails

It is somewhat unclear to me what the setDetails request with multiple custom fields (i.e., features) should look like fully formatted. Can you provide an example so I can make sure I create them correctly. I get the impression from LimeLM.cs sample code that it looks something like:

...feature_name[]=feature1&feature_name[]=feature2&feature_value[]=value1&feature_value[]=value2...

I.e., the ordering is significant and on your end you "assemble" the key-value pairs feature1=value1 and feature2=value2 based on this ordering. From my point of view, this is awkward if not unintuitive to construct, but I'm mainly just wanting to be sure I understand it correctly.

Thanks in advance!

Yes, there must be matching number of "feature_name[]" and "feature_value[]" parameters. And the order is important. However, you don't need to "front-load" "feature_name[]" parameters if you don't want to. We just do that because it makes more sense from a computational speed point-of-view.

So, this:

&feature_name[]=feat1&feature_value[]=val1&feature_name[]=feat2&feature_value[]=val2

Is equivalent to this:

&feature_name[]=feat1&feature_name[]=feat2&feature_value[]=val1&feature_value[]=val2

Do whatever is easier for you.

OK great - thanks!