Create Appointment


This request creates a new appointment.

Resource

POST /appointments

Payload

An Appointment object.

Response

The created object.

Context

Authorization

User

Errors

Example

Request
POST https://xelion.nl/api/v1/master/appointments
Payload
{
    "subject": "Taart eten",
    "starttime": "2017-02-25 11:50:00",
    "endtime": "2017-02-25 12:00:00",
    "allStartDay": false,
    "allEndDay": false,
    "internal": true,
    "userStatus": "unavailable",
    "objectType": "XCCAppointment",
    "comment": {
        "objectType": "Comment",
        "content": "Taart halen bij de bakker"
    },
    "participants": [
      {
        "person": {
            "oid": "1626686",
            "objectType": "Person"
        }
      },
      {
        "person": {
            "oid": "1626711",
            "objectType": "Person"
        }
      }
    ],
    "calendars": [
      {
        "oid": "1658051",
        "objectType": "XCCCalendar"
      },
      {
        "oid": "1658218",
        "objectType": "XCCCalendar"
      }
    ],
    "recurrenceTerminationType": "recurrenceCount",
    "recurrenceTerminationDate": "",
    "firstRecurrenceDate": "2017-02-25 11:50:00",
    "lastRecurrenceDate": "2017-04-23 22:00:00",
    "recurrenceCount": 6,
    "recurrenceType": "weekly",
    "recurrenceInterval": 1,
    "isRecurrence": true,
    "monday": true,
    "tuesday": false,
    "wednesday": false,
    "thursday": false,
    "friday": false,
    "saturday": false,
    "sunday": false
}