Pflichtangabe. Übergeordneter Wert für CreateConversationRequest. Format: projects/{project}/locations/{location}
Abfrageparameter
Parameter
conversationId
string
Optional. Die Unterhaltungs-ID der zu erstellenden Unterhaltung. Muss innerhalb des übergeordneten Elements eindeutig sein. Das zulässige Format ist: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$. Wenn nicht angegeben, generiert der Server automatisch einen Wert für die ID.
requestId
string
Optional. Eine optionale Anfrage-ID zur Identifizierung von Anfragen. Geben Sie eine eindeutige Anfrage-ID an, damit der Server die Anfrage ignoriert, falls sie bereits abgeschlossen wurde und wiederholt wird. Der Server gewährleistet dies für mindestens 60 Minuten nach der ersten Anfrage.
Anfragetext
Der Anfragetext enthält eine Instanz von Conversation.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine neu erstellte Instanz von Conversation.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-04 (UTC)."],[],[],null,["# Method: projects.locations.conversations.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n\nCreates a new conversation to persist the conversation history. Each conversation will have multiple messages associated with it.\n\n### HTTP request\n\n`POST https://geminidataanalytics.googleapis.com/v1beta/{parent=projects/*/locations/*}/conversations`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [Conversation](/gemini/docs/conversational-analytics-api/reference/rest/v1beta/projects.locations.conversations#Conversation).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Conversation](/gemini/docs/conversational-analytics-api/reference/rest/v1beta/projects.locations.conversations#Conversation).\n\n### Authorization 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)."]]