Compares the specified base version with target version.
HTTP request
POST https://{endpoint}/v3beta1/{baseVersion=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions
Where {endpoint}
is one of the supported service endpoints.
The URLs use gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
base |
Required. Name of the base flow version to compare with the target version. Use version ID Format: Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "targetVersion": string, "languageCode": string } |
Fields | |
---|---|
target |
Required. Name of the target flow version to compare with the base version. Use version ID Authorization requires the following IAM permission on the specified resource
|
language |
The language to compare the flow versions for. If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used. |
Response body
The response message for Versions.CompareVersions
.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "baseVersionContentJson": string, "targetVersionContentJson": string, "compareTime": string } |
Fields | |
---|---|
base |
JSON representation of the base version content. |
target |
JSON representation of the target version content. |
compare |
The timestamp when the two version compares. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
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.