Method: subscriptions.delete

Löscht ein Google Workspace-Abo. Informationen zur Verwendung dieser Methode finden Sie unter Google Workspace-Abo löschen.

HTTP-Anfrage

DELETE https://workspaceevents.googleapis.com/v1beta/{name=subscriptions/*}

Die URL verwendet die Syntax der gRPC-Transcodierung.

Pfadparameter

Parameter
name

string

Erforderlich. Ressourcenname des zu löschenden Abos.

Format: subscriptions/{subscription}

Suchparameter

Parameter
validateOnly

boolean

Optional. Wenn true festgelegt ist, wird die Anfrage validiert und in der Vorschau angezeigt, das Abo wird jedoch nicht gelöscht.

allowMissing

boolean

Optional. Wenn der Wert auf true festgelegt ist und das Abo nicht gefunden wird, ist die Anfrage erfolgreich, das Abo wird aber nicht gelöscht.

etag

string

Optional. Das E‑Tag des Abos.

Falls vorhanden, muss es mit dem ETag des Servers übereinstimmen. Andernfalls schlägt die Anfrage mit dem Status ABORTED fehl.

Anfragetext

Der Anfragetext muss leer sein.

Antworttext

Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von Operation.

  • Das Feld metadata enthält ein leeres Array.
  • Das Feld response ist leer.

Autorisierungsbereiche

Erfordert einen der folgenden OAuth-Bereiche:

  • https://www.googleapis.com/auth/chat.bot
  • 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

Weitere Informationen finden Sie im Autorisierungsleitfaden.