This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

Search API - sort_by not working

Comments

3 comments

  • Official comment
    Avatar
    Danny Valentine

    Hi Suryarao.

    Thanks for getting in touch.

    It looks like when you're sending the body to the Search API, it's being sent as plain text. I just created the folder "tanagra/sfcc_image_automation" on my account and uploaded two images. Running your search query exactly as you have specified above, but with the content-type header set to application/json via curl, I get just two results returned. If I send the body without specifying the content-type, the full contents of my cloud are returned.

    Can you please ensure you're sending the payload of the POST request as json?

    Many thanks,
    -Danny

    Comment actions Permalink
  • Avatar
    Suryarao Amalapuram

    Hi Danny,

    Thank you so much for your reply.

    After we change the GET request to POST request, it started working.

    Thanks,

    Surya

    0
    Comment actions Permalink
  • Avatar
    Danny Valentine

    That's great to hear, Surya!

    If you encounter any more issues or have any other questions then please feel free to raise a support ticket, and we'll be happy to help.

    Many thanks,
    -Danny

    0
    Comment actions Permalink

Post is closed for comments.