Method: subscriptions.create

Google Workspace サブスクリプションを作成します。このメソッドの使用方法については、Google Workspace サブスクリプションを作成するをご覧ください。

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/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

詳しくは、承認ガイドをご覧ください。