Experiencing errors with the GraphQL createChatbot mutation

Hi there, I’m trying to create a chat bot using the Botium GraphQL API but I’m receiving this error:

{
  "data": null,
  "errors": [
    {
      "message": "Cannot read property 'create' of undefined",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "createChatbot"
      ]
    }
  ]
}

Here’s the query I’m executing:

mutation createTestChatbot {
  createChatbot(chatbot:{name: "test", description:"testing graphQL API"}) {
    id
    name
  }
}

I know that my API key is correct because I’m able to execute other queries and mutations successfully (examples: createTestSet mutation, chatbots query).

1 Like

capabilities are missing in the request payload, they are mandatory.