[[["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."],[],[],null,["# Method: notebookRuntimes.assign\n\n**Full name**: projects.locations.notebookRuntimes.assign\n\nAssigns a NotebookRuntime to a user for a particular Notebook file. This method will either returns an existing assignment or generates a new one. \n\n### Endpoint\n\npost `https:``/``/{service-endpoint}``/v1``/{parent}``/notebookRuntimes:assign` \nWhere `{service-endpoint}` is one of the [supported service endpoints](/vertex-ai/docs/reference/rest#rest_endpoints).\n\n### Path parameters\n\n`parent` `string` \nRequired. The resource name of the Location to get the NotebookRuntime assignment. Format: `projects/{project}/locations/{location}`\n\n### Request body\n\nThe request body contains data with the following structure:\nFields `notebookRuntimeTemplate` `string` \nRequired. The resource name of the NotebookRuntimeTemplate based on which a NotebookRuntime will be assigned (reuse or create a new one).\n`notebookRuntime` `object (`[NotebookRuntime](/vertex-ai/docs/reference/rest/v1/projects.locations.notebookRuntimes#NotebookRuntime)`)` \nRequired. Provide runtime specific information (e.g. runtime owner, notebook id) used for NotebookRuntime assignment.\n`notebookRuntimeId` `string` \nOptional. user specified id for the notebook runtime. \n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/vertex-ai/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation)."]]