Skip to main content
DELETE
/
:projectId
/
api
/
v7
/
events
/
:eventId
/
rsvp
Withdraw RSVP
curl --request DELETE \
  --url https://api.sublay.io/api/v6/:projectId/api/v7/events/:eventId/rsvp \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": "<string>"
}
'
Removes the caller’s RSVP. The RSVP row is deleted and the matching rsvpCounts entry is decremented. Requires authentication, and the caller must be able to see the event (otherwise 404). Withdrawing is idempotent — withdrawing when there is no RSVP succeeds and changes nothing.

Path Parameters

eventId
string
required
UUID of the event.

Body Parameters

userId
string
Service/master key only. Withdraw on behalf of this user.

Response

Returns the Event with refreshed rsvpCounts.

Error Responses

{ "error": "Event not found", "code": "event/not-found" }
See also: useWithdrawRsvp