- HTTP request
- Path parameters
- Request body
- Response body
- Authorization Scopes
- EntityTypeBatch
- Try it!
Updates/Creates multiple entity types in the specified agent.
Operation <response: BatchUpdateEntityTypesResponse
>
HTTP request
POST https://dialogflow.googleapis.com/v2/{parent=projects/*/agent}/entityTypes:batchUpdate
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The name of the agent to update or create entity types 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, // Union field |
Fields | ||
---|---|---|
languageCode |
Optional. The language of entity synonyms defined in |
|
updateMask |
Optional. The mask to control which fields get updated. A comma-separated list of fully qualified names of fields. Example: |
|
Union field For each entity type in the batch:
|
||
entityTypeBatchUri |
The URI to a Google Cloud Storage file containing entity types to update or create. The file format can either be a serialized proto (of EntityBatch type) or a JSON object. Note: The URI must start with "gs://". |
|
entityTypeBatchInline |
The collection of entity types 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.
EntityTypeBatch
This message is a wrapper around a collection of entity types.
JSON representation | |
---|---|
{
"entityTypes": [
{
object( |
Fields | |
---|---|
entityTypes[] |
A collection of entity types. |