Updates/Creates multiple intents in the specified agent.
Operation <response: BatchUpdateIntentsResponse
>
HTTP request
POST https://dialogflow.googleapis.com/v2/{parent=projects/*/agent}/intents:batchUpdate
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The name of the agent to update or create intents in. Format: Authorization requires the following Google IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{ "languageCode": string, "updateMask": string, "intentView": enum ( |
Fields | ||
---|---|---|
languageCode |
Optional. The language of training phrases, parameters and rich messages defined in |
|
updateMask |
Optional. The mask to control which fields get updated. A comma-separated list of fully qualified names of fields. Example: |
|
intentView |
Optional. The resource view to apply to the returned intent. |
|
Union field intent_batch . The source of the intent batch. intent_batch can be only one of the following: |
||
intentBatchUri |
The URI to a Google Cloud Storage file containing intents to update or create. The file format can either be a serialized proto (of IntentBatch type) or JSON object. Note: The URI must start with "gs://". |
|
intentBatchInline |
The collection of intents to update or create. |
Response body
If successful, the response body contains an instance of Operation
.
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/dialogflow
For more information, see the Authentication Overview.
IntentBatch
This message is a wrapper around a collection of intents.
JSON representation | |
---|---|
{
"intents": [
{
object ( |
Fields | |
---|---|
intents[] |
A collection of intents. |