Skip to main content

Offset parameter when calling /search always returns 400

  • June 11, 2024
  • 1 reply
  • 79 views

I have been using the same call for some days but since a couple of days we started getting 400 responses when using offset in a /search call. For example:


{'type': 'error', 'status': 400, 'code': 'bad_request', 'context_info': {'errors': [{'reason': 'invalid_parameter', 'name': 'offset', 'message': "Invalid value '2'."}]}, 'help_url': 'http://developers.box.com/docs/#errors', 'message': 'Bad Request', 'request_id': 'gcvgk4hqlhels3di'}


The original call was to the url https://api.box.com/2.0/search?limit=11&offset=2&content_types=name,description&ancestor_folder_ids=250469971042&type=folder&fields=name,description,path_collection&query=%2232%22


Are we composing the URL right?


Thanks in advance!

1 reply

It seems that offset values are restricted to exact multiples of the limit value.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings