Required. The session to create a context for. Supported formats: - projects/<Project ID>/agent/sessions/<Session ID>,
-projects//locations//agent/sessions/,
-projects//agent/environments//users//sessions/,
-projects//locations//agent/environments//users//sessions/`,
If Location ID is not specified we assume default 'us' ___location. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.
Authorization requires the following IAM permission on the specified resource parent:
[[["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 page details the process of creating a context within a Dialogflow session using a \u003ccode\u003ePOST\u003c/code\u003e request to a specified endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eparent\u003c/code\u003e path parameter is required, representing the session for which the context is being created, and requires the \u003ccode\u003edialogflow.contexts.create\u003c/code\u003e IAM permission.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain an instance of the \u003ccode\u003eContext\u003c/code\u003e resource, as detailed in the documentation.\u003c/p\u003e\n"],["\u003cp\u003eUpon a successful request, the response will contain the newly created \u003ccode\u003eContext\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires one of the specified 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,[]]