Creates a human membership or app membership for the calling app. Creating memberships for other apps is not supported. Requires user authentication and the chat.memberships
(for human membership) or chat.memberships.app
(for app membership) scope.
HTTP request
POST https://chat.googleapis.com/v1/{parent=spaces/*}/members
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The resource name of the space for which to create the membership. Format: spaces/{space} |
Request body
The request body contains an instance of Membership
.
Response body
If successful, the response body contains a newly created instance of Membership
.
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/chat.memberships
https://www.googleapis.com/auth/chat.memberships.app
For more information, see the OAuth 2.0 Overview.