calendar event response

Create calendar event response

Changed on

Create a calendar event response for an attendee of a calendar event, the attendee can be a coach or patient. Calendar event responses cannot be fetched, updated nor deleted. Use calendar event api to fetch the response status for attendees.

post/calendar_event_response

Request

  • Base URL
    https://api.twinehealth.com/pub
  • Auth
    none declared

Request body

Example request

{
  "data": {
    "type": "calendar_event_response",
    "attributes": {
      "attendee": "5ac7e74679f6868274a42e28",
      "response_status": "accepted"
    },
    "relationships": {
      "user": {
        "data": {
          "type": "user",
          "id": "5a0c8e27a9d454cc150997f7"
        }
      },
      "calendar_event": {
        "data": {
          "type": "calendar_event",
          "id": "5755db2a3db4179179999acf"
        }
      }
    }
  }
}

Response

OK

Example response

{
  "data": {
    "type": "calendar_event_response",
    "attributes": {
      "attendee": "5ac7e74679f6868274a42e28",
      "response_status": "accepted"
    },
    "relationships": {
      "user": {
        "data": {
          "type": "user",
          "id": "5a0c8e27a9d454cc150997f7"
        }
      },
      "calendar_event": {
        "data": {
          "type": "calendar_event",
          "id": "5755db2a3db4179179999acf"
        }
      }
    }
  }
}

Changes