v1

latestOpenAPI 3.0.0Cognigy Proprietary License2026-07-2239524.1 MB
Intents

Perform Batch Operations on Intents

Performs batch operations on Intents in a Flow. Use this method to create, update, or delete multiple Intents in a request by specifying the operation type (create, update, or delete) for each item in the operations array.

patch/v2.0/flows/{flowId}/intents

Path parameters

flowIdstring required

The unique identifier for the Flow.

Headers

Accept'application/json' | 'application/hal+json' | 'application/xml' | 'text/xml' | 'text/csv'

The Accept header specifies the media type that the client expects in the response. Available options: application/json, application/hal+json, application/xml, text/xml, text/csv. The default value is application/json.

Request body

Example request

{
  "operations": [
    {
      "value": {
        "name": "OrderFood",
        "description": "Intent to order food"
      }
    }
  ]
}

Response

Successfully ran the batch operations.

createdstring[]
updatedstring[]
deletedstring[]