v11

latestSwagger 2.0raw.githubusercontent.com2022-10-03168148314.0 KB

Adds a labeled example utterance in a version of the application.

post/apps/{appId}/versions/{versionId}/example

Path parameters

appIdstring uuid required

The application ID.

versionIdstring required

The version ID.

Query parameters

enableNestedChildrenboolean

Toggles nested/flat format

Request body

textstring

The example utterance.

intentNamestring

The identified intent representing the example utterance.

Example request

{
  "entityLabels": [
    {
      "children": [
        {
          "entityName": "child",
          "startCharIndex": 0,
          "endCharIndex": 0,
          "children": []
        }
      ]
    }
  ]
}

Response

The ID of the created example utterance.

UtteranceTextstring

The example utterance.

ExampleIdinteger

The newly created example ID.