我正在尝试create an event通过Xpages日历服务API预留房间,并使用valid JSON对象。
我正在使用的请求的详细信息:
网址:[server-path]/mail/administ.nsf/api/calendar/events
操作:POST
标题:Content-Type:application / json
JSON正文:
{
"events":
[
{
"summary": "Meeting 1 Added via API Call",
"location": "Conference Room 2/Site@domain",
"description": "Test description",
"CalendarDateTime":{
"date":"2014-02-11",
"time":"17:00:00",
"utc":true
},
"start": {
"date":"2014-02-11",
"time":"17:00:00",
"utc":true
},
"end": {
"date":"2014-02-11",
"time":"17:30:00",
"utc":true
},
"class":"public",
"transparency":"opaque",
"sequence":0,
"x-lotus-noticetype":"I",
"attendees": [
{
"displayName":"Administrator@domain",
"email":"Administrator@domain",
"role":"chair",
"status":"accepted"
},
{
"displayName":"testing",
"email":"testing@domain"
}
],
"organizer": {
"displayName":"Administrator@domain",
"email":"Administrator@domain"
},
"x-lotus-room": {
"data": "testing/TestSite@domain"
}
}
]
}
事件已创建,但房间未与活动相关联。
JSON主体是从使用Lotus Notes创建并从mail/administ.nsf/api/calendar/events
api调用中检索的事件中复制的。
我在互联网上搜索了一个如何拨打api来创建一个房间注册/预订但未能获得任何信息的例子。
注意:
Domino / LotusNotes / XPages扩展库对配置正常(希望如此)
Reservation DB没问题,我可以使用Lotus Client创建会议并使用api调用来检索它们。
答案 0 :(得分:2)
我已经通过IBM Xpages支持page设法找到了解决此问题的方法。
要为会议分配房间,您必须将房间电子邮件地址添加到与会者列表中:
"attendees": [
{
"role": "req-participant",
"status": "needs-action",
"rsvp": true,
"email": "administrator@domain"
},
{
"role": "req-participant",
"userType": "room",
"status": "accepted",
"rsvp": true,
"email": "Conference_Room1@domain"
}
],