[[["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-09-03 UTC."],[],[],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [AccountAndRole](#AccountAndRole)\n - [JSON representation](#AccountAndRole.SCHEMA_REPRESENTATION)\n- [ProjectRole](#ProjectRole)\n\nShares a notebook to other accounts.\n\nHTTP request\n\n`POST https://discoveryengine.googleapis.com/v1alpha/{name=projects/*/locations/*/notebooks/*}:share`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. Full resource name of [Notebook](/agentspace/docs/reference/rest/v1alpha/projects.locations.notebooks#Notebook), such as `projects/{project}/locations/{location}/notebooks/{notebookId}`. |\n\nRequest body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"accountAndRoles\": [ { object (/agentspace/docs/reference/rest/v1alpha/projects.locations.notebooks/share#AccountAndRole) } ], \"notifyViaEmail\": boolean } ``` |\n\n| Fields ||\n|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `accountAndRoles[]` | `object (`[AccountAndRole](/agentspace/docs/reference/rest/v1alpha/projects.locations.notebooks/share#AccountAndRole)`)` Required. The list of accounts and roles to share the notebook with. |\n| `notifyViaEmail` | `boolean` Required. Whether to notify the shared users via email. |\n\nResponse body\n\nIf successful, the response body is empty.\n\nAuthorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\nIAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permissions on the `name` resource:\n\n- `discoveryengine.notebooks.getIamPolicy`\n- `discoveryengine.notebooks.setIamPolicy`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs).\n\nAccountAndRole Account and role information.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"email\": string, \"role\": enum (/agentspace/docs/reference/rest/v1alpha/projects.locations.notebooks/share#ProjectRole) } ``` |\n\n| Fields ||\n|---------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `email` | `string` Required. The email address associated with the account. |\n| `role` | `enum (`[ProjectRole](/agentspace/docs/reference/rest/v1alpha/projects.locations.notebooks/share#ProjectRole)`)` Required. The role in the notebook. |\n\nProjectRole The role of the project.\n\n| Enums ||\n|---------------------------|-------------------------------------------------|\n| `PROJECT_ROLE_UNKNOWN` | Unknown role. |\n| `PROJECT_ROLE_OWNER` | The user owns the project. |\n| `PROJECT_ROLE_WRITER` | The user has writer permissions on the project. |\n| `PROJECT_ROLE_READER` | The user has reader permissions on the project. |\n| `PROJECT_ROLE_NOT_SHARED` | The user has no access to the project. |"]]