Answer an invitation
POST
/api/v1/mailbox/calendar/invitations/{invitation_id}/rsvpAccept, decline or tentatively accept.
The RFC 6638 dance, in order, and the order is what makes it work:
- Read the message out of the scheduling inbox.
- Set this mailbox's PARTSTAT on it, changing nothing else.
- PUT it into the user's own calendar. This is what sends the REPLY -- the scheduling plugin sees an attendee copy whose PARTSTAT changed and generates the iTIP REPLY to the organizer. Nothing here constructs that message by hand.
- Remove the message from the scheduling inbox, which is the client's job under RFC 6638. Skipping it leaves the invitation showing as unanswered in every native client forever.
Step 4 is deliberately best-effort: if it fails, the answer has already been sent and recorded, and failing the whole call would invite the user to answer twice.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
invitation_idrequired | path | string |
Request body
Request
POST
/api/v1/mailbox/calendar/invitations/{invitation_id}/rsvpcurl -X POST 'https://app.mailyte.com/api/v1/mailbox/calendar/invitations/01JBT8XQ2M9WYC3K4F6R7S8T9V/rsvp' \
-H 'Authorization: Bearer MAILBOX_TOKEN'const response = await fetch('https://app.mailyte.com/api/v1/mailbox/calendar/invitations/01JBT8XQ2M9WYC3K4F6R7S8T9V/rsvp', {
method: 'POST',
headers: {
Authorization: 'Bearer MAILBOX_TOKEN',
},
});
const { data } = await response.json();import requests
response = requests.post(
"https://app.mailyte.com/api/v1/mailbox/calendar/invitations/01JBT8XQ2M9WYC3K4F6R7S8T9V/rsvp",
headers={"Authorization": "Bearer MAILBOX_TOKEN"},
)
data = response.json()["data"]<?php
$response = Http::withToken('MAILBOX_TOKEN')
->post('https://app.mailyte.com/api/v1/mailbox/calendar/invitations/01JBT8XQ2M9WYC3K4F6R7S8T9V/rsvp');
$data = $response->json('data');require "net/http"
require "json"
uri = URI("https://app.mailyte.com/api/v1/mailbox/calendar/invitations/01JBT8XQ2M9WYC3K4F6R7S8T9V/rsvp")
request = Net::HTTP::Post.new(uri)
request["Authorization"] = "Bearer MAILBOX_TOKEN"
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }Response
Successful Response
Returned inside the standard envelope.
Errors
| Status | When |
|---|---|
422 | Validation Error |
Every status, with what causes it and what to do, is on the error reference.