Declining or revoking an invitation
Added by IBM contributorIBM | Edited by Claudia R Elbourn on July 21, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

You can use the Community Invitation API with the DELETE method to decline an invitation as an invitee or revoke an invitation as a community owner.
Tags: commapi
 
Input
Method URI Description
DELETE /communities/service/atom/community/invites Value of the href attribute of <link> element that has a rel="edit" attribute value for each entry in the My Invitations feed.
Name Type Optional Description
communityUuid
string No The uuid of community that you want to query about. This is a mandatory parameter
userid
string No id of user you wish to decline/revoke invitation
Output
Code Description
200
OK. Indicates that the invitation was successfully deleted (and no content is returned).
403
Unauthorized.
404
Not Found.
401
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.
References