Method: projects.locations.collections.dataStores.conversations.create

יצירת שיחה.

אם Conversation כבר קיים, מוחזרת השגיאה ALREADY_EXISTS.

בקשת HTTP


POST https://discoveryengine.googleapis.com/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/conversations

כתובות ה-URL כתובות בתחביר של gRPC Transcoding.

פרמטרים של נתיב

פרמטרים
parent

string

חובה. השם המלא של משאב מאגר נתוני האב. פורמט: projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStoreId}

גוף הבקשה

גוף הבקשה מכיל מופע של Conversation.

גוף התשובה

אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל מופע חדש של Conversation.

היקפי הרשאות

נדרש אחד מהיקפי ההרשאות הבאים של OAuth:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/discoveryengine.readwrite
  • https://www.googleapis.com/auth/discoveryengine.serving.readwrite

ניתן למצוא מידע נוסף כאן: Authentication Overview.

הרשאות IAM

נדרשת הרשאת IAM הבאה במשאב parent:

  • discoveryengine.conversations.create

מידע נוסף מופיע במאמרי העזרה בנושא IAM.