Required. The session to create a context for. Format: projects/<Project ID>/agent/sessions/<Session ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User
ID>/sessions/<Session ID>. 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-01-15 UTC."],[[["This content describes how to create a context using an HTTP POST request to a specified endpoint with a required parent parameter."],["The request requires a `parent` path parameter, which indicates the session for which the context is being created, with a specific format and necessary IAM permission."],["The request body must contain an instance of `Context`, and a successful response will also contain a newly created instance of `Context`."],["Authorization for this request requires either the `https://www.googleapis.com/auth/cloud-platform` or `https://www.googleapis.com/auth/dialogflow` OAuth scope."],["The structure of the HTTP request uses gRPC Transcoding syntax, with a URL format of `POST https://{endpoint}/v2/{parent=projects/*/locations/*/agent/sessions/*}/contexts`."]]],[]]