Wajib. Nilai induk untuk CreateConversationRequest. Format: projects/{project}/locations/{location}
Parameter kueri
Parameter
conversationId
string
Opsional. ID percakapan dari percakapan yang akan dibuat. Harus unik dalam induk. Format yang diizinkan adalah: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$. Jika tidak diberikan, server akan membuat nilai untuk ID secara otomatis.
requestId
string
Opsional. ID permintaan opsional untuk mengidentifikasi permintaan. Tentukan ID permintaan unik sehingga jika Anda harus mencoba lagi permintaan, server akan tahu untuk mengabaikan permintaan jika sudah selesai. Server akan menjamin bahwa setidaknya selama 60 menit sejak permintaan pertama.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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)."]]