Send RSVP Endpoint Not Working For MS and iCloud Provider

Hi there, I’ve created an event with a Google account. Invited a few people. Now, as the invitee of a MicroSoft account, I’ve been getting the following error message for the Send RSVP API endpoint at post /v3/grants/{grant_id}/events/{event_id}/send-rsvp

I follow the format with the CURL command

curl --request POST \
  --url https://api.us.nylas.com/v3/grants/<NYLAS_GRANT_ID>/events/<EVENT_ID>/send-rsvp?calendar_id=<CALENDAR_ID> \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer <NYLAS_API_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{
    "status": "string"
}'

Though, I have gotten the response below

{“request_id”:“cce0f071-9df2-42d4-9265-da23c93b0893”,“error”:{“type”:“provider_error”,“message”:“Bad Request”,“provider_error”:{“error”:{“code”:“ErrorInvalidIdMalformed”,“message”:“Id is malformed.”}}}}%

I thought it could be that I had a bad <NYLAS_GRANT_ID> or <CALENDAR_ID> but I was able to create an event using the “Create an event” API with those values.

I also tried RSVPing with an iCloud account I am getting the following, though I didn’t see anywhere in the documentation saying iCloud isn’t supported.
{“request_id”:“152796b5-96da-42a4-8c47-d7e896330a8e”,“error”:{“type”:“general_error”,“message”:“Method not supported for provider: icloud”}}

Lastly, I tried RSVPing with a Google account, I was able to do it successfully.

What am I doing wrong for the MS and iCloud account? Any help would be appreciated.

Hello @mingzew Let me take a look and will come back to you :slight_smile:

Any update on this @Blag ?

Hello @mingzew Sorry for the long wait :frowning:

It seems there was a glitch on either Nylas or Microsoft’s side :thinking: At first I tried to repeat this process and failed, but today is working just fine…

  • Create a event on Google inviting an account on MS (Live.com)
  • Grab the Calendar Id from MS using:
curl --request GET \
  --url 'https://api.us.nylas.com/v3/grants/<NYLAS_GRANT_ID>/calendars' \
  --header 'Authorization: Bearer <NYLAS_API_KEY>' \
  --header 'Content-Type: application/json'
  • Then, get the event using:
curl -X GET "https://api.us.nylas.com/v3/grants/<MS_GRANT>/events" \
 --header "accept: application/json"\
 --header "Authorization: Bearer <NYLAS_API_KEY>" \
  • Call the RSVP
curl -X POST "https://api.us.nylas.com/v3/grants/atejadag@live.com/events/<MS_EVENT_ID>/send-rsvp?calendar_id=<MS_CALENDAR_ID>" \
 -H "accept: application/json"\
 -H "authorization: Bearer <NYLAS_API_KEY>"\
 -H "content-type: application/json" \
 -d '{"status":"yes"}' \