'maxReturn' not working for retrieving all segments.

Anonymous
Not applicable

'maxReturn' not working for retrieving all segments.

Hi all,

     We are developing connector for Marketo. While trying to retriev all the segments present, we faced an issue.

The URL we are trying to hit is /rest/asset/v1/segmentation/1001/segments.json?maxReturn=10.

The parameter 'maxReturn' should never have the value as '0' or '-1'. But for this particular scenario; irrespective of the parameter's value, all the segments are getting retrieved.

Could any one of you please confirm the behavior for this case.

Thanks,

Pallavi

Tags (1)
2 REPLIES 2
Kenny_Elkington
Marketo Employee

Re: 'maxReturn' not working for retrieving all segments.

This is actually a mistake in the documentation, and offset and maxreturn are not valid parameters.  Thanks for bringing this to my attention, I will correct the doc.

Alex_Shelukhano
Level 2

Re: 'maxReturn' not working for retrieving all segments.

I would also add that maxReturn is not working for retrieving all segmentations. There are always 20 segmentations shown despite my maxReturn=100 parameter. (/rest/asset/v1/segmentation.json?maxReturn=100)

Link to documentation: Get Segmentations » Marketo Developers

What am I doing wrong ?