POST
/api/v1/spaces/{space}/invitations/{invitation}:declineDecline a space invitation
Declines a pending invitation to join a space. Supply the invitation resource name in name to identify the invitation being declined.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
spacestringrequired
The identifier of the space containing the invitation.
invitationstringrequired
The identifier of the pending invitation to decline.
The invitation resource name to decline.
namestringrequired
Required. Format: spaces/{space}/invitations/{username}.
200Returns an empty response confirming that the invitation was declined.
defaultDefault error response
codeintegeroptional
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
messagestringoptional
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
detailsarray<object>optional
A list of messages that carry the error details. There is a common set of message types for APIs to use.
Error handling
The space path parameter must identify the space containing the invitation, and the invitation path parameter must identify the pending invitation. The request body requires name in the format spaces/{space}/invitations/{username}.
