Method: subscriptions.create

יצירת מינוי ל-Google Workspace. במאמר יצירת מינוי ל-Google Workspace מוסבר איך משתמשים בשיטה הזו.

במשאב יעד של Chat, אפשר ליצור מינוי כ:

בקשת HTTP

POST https://workspaceevents.googleapis.com/v1beta/subscriptions

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

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

פרמטרים
validateOnly

boolean

אופציונלי. אם הערך הוא true, המערכת מאמתת את הבקשה ומציגה תצוגה מקדימה שלה, אבל לא יוצרת את המינוי.

גוף הבקשה

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

גוף התשובה

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

  • השדה metadata מכיל מערך ריק.
  • השדה response מכיל מופע חדש של Subscription.

היקפי הרשאות

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

  • https://www.googleapis.com/auth/chat.spaces
  • https://www.googleapis.com/auth/chat.spaces.readonly
  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.readonly
  • https://www.googleapis.com/auth/chat.messages.reactions
  • https://www.googleapis.com/auth/chat.messages.reactions.readonly
  • https://www.googleapis.com/auth/chat.memberships
  • https://www.googleapis.com/auth/chat.memberships.readonly
  • https://www.googleapis.com/auth/chat.app.memberships
  • https://www.googleapis.com/auth/chat.app.memberships.readonly
  • https://www.googleapis.com/auth/chat.app.messages.readonly
  • https://www.googleapis.com/auth/chat.app.spaces
  • https://www.googleapis.com/auth/chat.app.spaces.readonly
  • https://www.googleapis.com/auth/meetings.space.created
  • https://www.googleapis.com/auth/meetings.space.readonly
  • https://www.googleapis.com/auth/drive
  • https://www.googleapis.com/auth/drive.file
  • https://www.googleapis.com/auth/drive.metadata
  • https://www.googleapis.com/auth/drive.metadata.readonly
  • https://www.googleapis.com/auth/drive.readonly

מידע נוסף זמין במדריך ההרשאות.