Compares the specified base version with target version.
HTTP request
POST https://{endpoint}/v3/{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 | |
|---|---|
baseVersion |
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 | |
|---|---|
targetVersion |
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
|
languageCode |
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 | |
|---|---|
baseVersionContentJson |
JSON representation of the base version content. |
targetVersionContentJson |
JSON representation of the target version content. |
compareTime |
The timestamp when the two version compares. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/dialogflow
For more information, see the Authentication Overview.