Answer an event invitation
/org-content/event/{event_id}/rsvpSets the acting user's answer to the event and returns it as the GET does. It always acts as the token's user: user_id, author or author_id returns 422 missing. Emits event_rsvp.updated on every call, even when the answer is unchanged; no email or notification. Sending the earlier status undoes it. dry_run shows the result without saving it.
Path parameters
The event's id.
Query parameters
Validate and run the call without committing it, returning what the real call would return with
meta.dry_runset.
Request body
application/json, required · OrgEventRsvpUpdate
- One of:
The answer: going, maybe or declined.
going,maybe,declined
{
"status": "going"
}Responses
{
"data": {
"status": "going",
"counts": null,
"can_see_responses": false
}
}Authorization failed. error.code is one of org_disabled,
ip_blocked, missing_scope, scope_disabled, user_disabled.
The request conflicts with existing state (error.code = conflict),
e.g. a compliance flow with the requested name already exists.
The request can't be processed (HTTP 422): validation_failed with one ErrorDetail per
problem, or a code documented on the operation.
Examples
curl -X PUT https://your-org-domain/kong/core/api/v2/org-content/event/{event_id}/rsvp\
-H "Authorization: Bearer $HELM_API_KEY"\
-H "Content-Type: application/json"\
-d '{
"status": "going"
}'