v11

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

Adds a batch of labeled example utterances to a version of the application.

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

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

A string array determining which labeled example utterances were added successfully.

hasErrorboolean