crisp-im / node-crisp-api

:zap: Crisp API Node Wrapper
https://docs.crisp.chat/guides/rest-api/
MIT License
99 stars 39 forks source link

Helpdesk -> List Helpdesk Locale Articles. Parameter order_visits by default (with 0 value) doesn't work correctly #61

Closed tiu93 closed 8 months ago

tiu93 commented 9 months ago

Hello! I am trying to retrieve articles without the order_visits parameter or with order_visits=0. However, I am receiving unsorted records. The required records appear at the beginning of the list but are not sorted among themselves. For example, initially, a record with order=9, then order=2, then order=6, and so on.

My request: https://api.crisp.chat/v1/website/:website_id/helpdesk/locale/:locale/articles/:page_number?order_visits=0

eliottvincent commented 9 months ago

Hey!

As of right now it's not possible to sort articles by their order property. They can only be sorted by number of visits or by most recently updated.

tiu93 commented 9 months ago

Then I think you should correct the documentation, specify what is sorted by date, because it's a little confusing. Thank you for the answer.

image

baptistejamin commented 8 months ago

Hey there!

Thank you for your feedback. It has just been implemented on v8.2.2