This endpoint requires authentication. Include your Bearer token in the Authorization header.
Cancels a pending invitation. The invite status changes to cancelled and any activation codes generated for the invitee are purged, preventing future use of the old invite link.
const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/user/invites/example-id/cancel', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({})
});
const data = await response.json();
console.log(data);