חובה. הערך ההורה של CreateConversationRequest. הפורמט: projects/{project}/locations/{location}
פרמטרים של שאילתה
פרמטרים
conversationId
string
חובה. מזהה השיחה שרוצים ליצור.
requestId
string
זה שינוי אופציונלי. מזהה בקשה אופציונלי לזיהוי בקשות. עליכם לציין מזהה בקשה ייחודי כדי שאם תצטרכו לנסות שוב את הבקשה, השרת ידע להתעלם מהבקשה אם היא כבר הושלמה. השרת יבטיח זאת למשך 60 דקות לפחות ממועד הבקשה הראשונה.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["התוכן קשה להבנה","hardToUnderstand","thumb-down"],["שגיאות בקוד לדוגמה או במידע","incorrectInformationOrSampleCode","thumb-down"],["חסרים לי פרטים או דוגמאות","missingTheInformationSamplesINeed","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-06-11 (שעון 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/v1alpha/{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/v1alpha/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/v1alpha/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)."]]