Some products and features are in the process of being renamed. Generative playbook and flow features are also being migrated to a single consolidated console. See the details.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[[["\u003cp\u003eThis API endpoint restores a specified version of a Tool, making it the current draft and updating its resources accordingly, using a POST request.\u003c/p\u003e\n"],["\u003cp\u003eThe request URL follows a specific format that includes path parameters such as \u003ccode\u003eprojects\u003c/code\u003e, \u003ccode\u003elocations\u003c/code\u003e, \u003ccode\u003eagents\u003c/code\u003e, \u003ccode\u003etools\u003c/code\u003e, and \u003ccode\u003eversions\u003c/code\u003e, which are essential for identifying the target resource, with the \u003ccode\u003ename\u003c/code\u003e parameter being required for identification.\u003c/p\u003e\n"],["\u003cp\u003eThe request body for this operation must be empty, and successful responses return an updated tool object, including a \u003ccode\u003etool\u003c/code\u003e field as part of the JSON response.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization to use this API requires specific IAM permissions (\u003ccode\u003edialogflow.tools.update\u003c/code\u003e) on the specified resource and one of two OAuth scopes (\u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/dialogflow\u003c/code\u003e).\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.agents.tools.versions.restore\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.RestoreToolVersionResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nRetrieves the specified version of the Tool and stores it as the current tool draft, returning the tool with resources updated.\n\n### HTTP request\n\n`POST https://{endpoint}/v3beta1/{name=projects/*/locations/*/agents/*/tools/*/versions/*}:restore`\n\nWhere `{endpoint}` is one of the [supported service endpoints](/dialogflow/cx/docs/reference/rest#rest_endpoints).\n\nThe URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nThe response message for [Tools.RestoreToolVersion](/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents.tools.versions/restore#google.cloud.dialogflow.cx.v3beta1.Tools.RestoreToolVersion).\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/dialogflow`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]