Hi,
I am trying to update the bot flow with api request: put /api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}. I have all the needed data, but when I try to add intents+utterances I receive the error.
This is my request body:
{
"description": "Creating a new version with intents and utterances",
"language": "de-de",
"intents": [
{
"name": "Test",
"utterances": [
{
"source": "User",
"segments": [
{
"text": "TestUtterance"
}
]
}
]
}
]
}
And this is what I receive as a response:
{
"message": "The request could not be understood by the server due to malformed syntax.",
"code": "validation.error",
"status": 400,
"contextId": "459a4ca3-cf56-471d-b19c-4b2be0914fde",
"details": [],
"errors": []
}
I do not understand where is a problem. I will be very glad of your help.
Best regards
Mariia