Alexandru,
When sending JSON to the calendar service (POST or PUT), you should just include the desired room in the list of attendees. For example, see the JSON input at the bottom of this message. I just posted that to my test server. The calendar service created the meeting and booked the room.
In my case, the room has an internet address assigned -- bos1-room1001@swg.usma.ibm.com. If your room doesn't have an assigned internet address you can construct one from the distinguished name. Let me know if you need help with that.
Thanks.
-- Dave
{
"timezones": [
{
"tzid": "Eastern",
"standard": {
"start": {
"date": "1950-11-05",
"time": "02:00:00"
},
"offsetFrom": "-0400",
"offsetTo": "-0500",
"recurrenceRule": "FREQ=YEARLY;BYMONTH=11;BYDAY=1SU;BYHOUR=2;BYMINUTE=0"
},
"daylight": {
"start": {
"date": "1950-03-12",
"time": "02:00:00"
},
"offsetFrom": "-0500",
"offsetTo": "-0400",
"recurrenceRule": "FREQ=YEARLY;BYMONTH=3;BYDAY=2SU;BYHOUR=2;BYMINUTE=0"
}
}
],
"events": [
{
"summary": "Meeting with a room created by the service",
"description": "test",
"start": {
"date": "2014-02-17",
"time": "14:00:00",
"tzid": "Eastern"
},
"end": {
"date": "2014-02-17",
"time": "15:00:00",
"tzid": "Eastern"
},
"attendees": [
{
"role": "req-participant",
"status": "needs-action",
"rsvp": true,
"email": "DeanMelnyk@swg.usma.ibm.com"
},
{
"role": "req-participant",
"userType": "room",
"status": "accepted",
"rsvp": true,
"email": "bos1-room1001@swg.usma.ibm.com"
}
],
"organizer": {
"displayName": "Duke Lawson/Peaks",
"email": "DukeLawson@swg.usma.ibm.com"
}
}
]
}