Answer an invitation

.md

Accept an invitation that arrived by mail, or take it off the calendar.

Scopescalendar:write
POST/v1/me/calendar/events/{id}/respond

An invitation that arrives as mail lands on the calendar by itself, with status: "pending", and holds its place until somebody answers.

Two answers and no third. Accepting confirms it and writes your line on the guest list. Ignoring takes it off the calendar outright, which is what ignore means: the mail is still in the mailbox with the invitation attached, so nothing is lost and it can be accepted from there again.

Declining is not here

Telling an organiser no is sending them a reply, which is a different thing from taking their invitation off your own calendar. Only the second is in this API.

Request

FieldRequiredDescription
answeryesaccept or ignore
curl -X POST https://api.proppertrading.com/v1/me/calendar/events/evt_b6t2q9m4x7f3k8hz/respond \
  -H "Authorization: Bearer ptat_9f2c1a44_3b8e7d2f5c9a1b4e6d8f0a2c4e6b8d1f" \
  -H "Idempotency-Key: 8f14e45f-ea0d-4d1f-9c4b-3e11f0f2c0a1" \
  -H "Content-Type: application/json" \
  -d '{ "answer": "accept" }'

Response

200 with the confirmed appointment on accept, and 204 with no body on ignore.

Errors

StatusCodeMeaning
400missing_idempotency_keyThe Idempotency-Key header was not sent. Every POST needs one
400invalid_answerThe answer was not accept or ignore
400not_an_invitationThat appointment is not waiting for an answer
403insufficient_scopeThis device does not hold calendar:write
403calendar_read_onlyThe account may read that calendar but not write in it, or it is a followed calendar, which nobody writes in
404resource_not_foundNo such appointment here