Method: projects.locations.collections.engines.assistants.create

יוצר Assistant.

בקשת HTTP


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

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

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

פרמטרים
parent

string

חובה. שם המשאב הראשי. פורמט: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}

פרמטרים של שאילתה

פרמטרים
assistantId

string

חובה. המזהה לשימוש ב-Assistant, שיהפוך לרכיב הסופי של שם המשאב של Assistant.

השדה הזה צריך להתאים ל-RFC-1034, עם מגבלת אורך של 63 תווים.

גוף הבקשה

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

גוף התשובה

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

היקפי הרשאות

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

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

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

הרשאות IAM

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

  • discoveryengine.assistants.create

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