I am not able to use the Beta search Api’s
Is it possible to get a sample body of the request which I can test and modify according to my needs
this documentation is not much self -explanatory as all the others
I am getting Bad request error everytime I try
Hello @adamyakumar please see the sample curls below
For chat:
curl --location --request POST 'https://beta.amity.services/search/messages' \
--header 'Authorization: Bearer ACCESSTOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"apiKey": "apiKey",
"userId": "userId",
"query": {
"channelId": [
"channelId"
],
"text" : "christmas"
},
"from": 1,
"size": 10
}'
For Social:
curl --location --request POST 'https://beta.amity.services/search/v2/posts' \
--header 'Authorization: Bearer ACCESSTOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"apiKey": "apiKey",
"userId": "userId",
"query": {
"targetId": [
"communityId_1",
"communityId_2"
],
"targetType": "community",
"text" : "christmas"
},
"from": 1,
"size": 10
}'
Thanks alot for the support
But I am still getting
Error: could not handle the request
I have a post with text Bugs Bunny
It seems that you haven’t enabled content search feature. Could you please submit a request to our support team, along with your apikey and region: Jira Service Management