Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Bot API not working #3

Open
yashwanttejwani opened this issue Mar 29, 2022 · 0 comments
Open

Create Bot API not working #3

yashwanttejwani opened this issue Mar 29, 2022 · 0 comments

Comments

@yashwanttejwani
Copy link
Contributor

we have three APIs to create a bot from odk form :

  • ODK Form Upload
  • Create a CL
  • Create a bot

The first two are working fine but the "Create a bot" API is not. although manual creation of bot using DB is working fine.
Sharing response from "ODK Form Upload" and "Create a CL"

  • ODK Form upload :
    response_odk_form_upload
  • Create a CL :
    response_create_a_cl

API call for Create a bot API :

curl --location --request POST 'http://localhost:9999/admin/v1/bot/create' \
--header 'admin-token: EXnYOvDx4KFqcQkdXqI38MHgFvnJcxMS' \
--header 'Content-Type: application/json' \
--data-raw '{
   "data": {
       "startingMessage": "Hi list 3",
       "name": "UCI test list 3",
       "users": [],
       "logic": [
           "62ae4c31-3298-4761-a87b-d2db147ef5a4"
       ],
       "status": "enabled",
       "startDate": "2022-03-30",
       "endDate": "2022-05-30"
   }
}'

response of above API cal :
response_create_a_bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant