simonb
October 12, 2021, 10:01am
1
Hi,
When I try to get all chat messages I get the following error message:
{
"code": "desk400100",
"detail": "created_at__gte and created_at__lt parameters are required."
}
But looking at the documentation these should be optional???
[Chat messages | Desk Platform API | Sendbird Docs ](https://List Chat Messages Endpoint)
If I try to pass along the timestamps I get “wrong data format”, even though I just cut’ n’ paste the example date from the documentation. But this might also be wrong in the documentation?
How do I resolve this?
Best,
Simon
Values in the parameter created_at__ should be in iso-8601 format.
For example, 2020-08-11T09:19:45.055635Z
It can also be something like: 2020-11-11T09:19:45
simonb
October 12, 2021, 11:03am
3
Hi Walter,
Thank you so much for your reply. I tried pasting this but it does not work…
In the documentation is reads these parameters are optional, but the error message states they are required! What is the cause of this discrepancy??
/Simon
Please try with: 2020-11-11T09:19:45
simonb
October 12, 2021, 11:26am
5
walter.rodriguez:
2020-11-11T09:19:45
That working thank you. Maybe update the documentation with that.
Thanks,
Simon
Thanks @simonb Will advice our team!
Documentation updated and with a sample as well. Thanks for your help @simonb !
simonb
October 14, 2021, 7:59am
8
Great update Walter!
Maybe you could take a look at my new ticket
Hi,
I have a weird issue with the ‘/platform/v1/tickets?sendbird_id=’ endpoint using the userid filter.
When I retrieve a list of the user’s tickets I get a ticket that doesn’t exist!
When I try to post a message to this ticket I get the following:
code:400201
error:true
message:’“Channel” not found.’
How can this happen?
/Simon
Thanks,
/Simon