Delete invite by id

Deletes an invite from the server.

Requires the create-invite-links permission.

Headers

Path Parameters

Example Call

curl --location --request DELETE 'http://localhost:3000/api/v1/removeInvite/:_id\
--header 'X-Auth-Token: myauth-token' \
--header 'X-User-Id: myuser-name'
 -d "customUserStatusId=EscbQinc8jmeXbpt7"

Result

Success

{
    "success": true
}

Errors

Any of the following errors can occur upon the endpoint.

  • Authorization: Requires an authentication token for the request to be made.

  • Invalid Invitation Id: Requires a valid invitation _id

{
    "success": false,
    "error": "unauthorized"
}

Last updated

Rocket.Chat versions receive support for six months after release.