GET/users/{userId}/calendars/events/search
Search for events across the user’s entire calendar.
startTime nor endTime is specified, the search will cover the three months before and after the current time.OAuth 2.0 authentication.
For more information, see Authentication and Authorization.
calendar
calendar.read
| Parameter | Type | Description |
|---|---|---|
| userId | string | User ID required example : userf7da-f82c-4284-13e7-030f3b4c756x |
| Parameter | Type | Description |
|---|---|---|
| query | string | Search terms
minLength : 2 maxLength : 100 example : Weekly Meeting |
| queryFilters | string | Search fields
example : summary,attendee |
| startTime | string | End time for search (format: YYYY-MM-DDThh:mm:ssTZD)
example : 2021-06-03T10:00:00%2B09:00 |
| endTime | string | End time for search (format: YYYY-MM-DDThh:mm:ssTZD)
example : 2021-06-03T11:00:00%2B09:00 |
| count | integer | Number of items returned at a time default : 50 minimum : 1 maximum : 100 example : 50 format : int32 |
| cursor | string | Cursor example : JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA== |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| events | array (EventComponents) | Event List |
| responseMetaData | object (responseMetaData) | Response metadata |
| Property | Type | Description |
|---|---|---|
| eventComponents | array (Event) | Event Information |
| organizerCalendarId | string | Calendar ID of the event |
| Property | Type | Description |
|---|---|---|
| eventId | string | Event ID required minLength : 1 maxLength : 255 |
| createdTime | object (createdTime) | Date and time readOnly : true |
| updatedTime | object (updatedTime) | Date and time readOnly : true |
| summary | string | Event content required minLength : 0 maxLength : 200 |
| description | string | Event memo minLength : 0 maxLength : 5000 |
| location | string | Event location minLength : 0 maxLength : 100 |
| map | object (map) | Location information |
| mapUrl | object (mapUrl) | Image and URL of the attached map |
| categoryId | string | Event category ID |
| organizer | object (organizer) | Event organizer.
readOnly : true |
| start | object (start) | Start or end time of the event required |
| end | object (end) | Start or end time of the event |
| recurrence | array (Recurrence) | minItems : 0 maxItems : 100 |
| recurringEventId | string | Non-recurring event ID. |
| transparency | string | Indicates whether the event is busy or free
default : OPAQUE Allowed values : OPAQUE, TRANSPARENT |
| visibility | string | Indicates whether the event is public or private
default : PUBLIC Allowed values : PUBLIC, PRIVATE |
| sequence | integer | Event sequence number. default : 0 minimum : 0 format : int32 |
| attendees | array (Attendee) | Attendee information minItems : 0 maxItems : 500 |
| videoMeeting | object (videoMeeting) | Video conference information in the event |
| reminders | array (Alarm) | Reminder information minItems : 0 maxItems : 100 |
| attachments | array (File) | Attachment information (The total size of the attached files cannot exceed 100 MB.) readOnly : true |
| viewUrl | string | URL to view events minLength : 0 format : uri readOnly : true |
| priority | integer | Level of importance 0: Undefined 1: Most important 2: Second most important .... 9: Least important default : 0 minimum : 0 maximum : 9 |
| Property | Type | Description |
|---|---|---|
| dateTime | string | Format: YYYY-MM-DDTHH:mm:ss |
| timeZone | string |
| Property | Type | Description |
|---|---|---|
| dateTime | string | Format: YYYY-MM-DDTHH:mm:ss |
| timeZone | string |
| Property | Type | Description |
|---|---|---|
| type | string | Map type
|
| geo | string | Latitude and longitude of the attached map |
| Property | Type | Description |
|---|---|---|
| mapUrl | string | Map URL |
| imageId | string | Map image |
| Property | Type | Description |
|---|---|---|
| string | Organizer's email address required | |
| displayName | string | Organizer name |
| Property | Type | Description |
|---|---|---|
| date | string | It is present if the event type is all day.
|
| dateTime | string | It is present if the event type is not all day.
|
| timeZone | string | Timezone of dateTime (It is present if the event is not all day.) |
| Property | Type | Description |
|---|---|---|
| date | string | It is present if the event type is all day.
|
| dateTime | string | It is present if the event type is not all day.
|
| timeZone | string | Timezone of dateTime (It is present if the event is not all day.) |
| Property | Type | Description |
|---|---|---|
| Recurrence | string | This property defines a recurrence rule for a recurring event. |
| Property | Type | Description |
|---|---|---|
| id | string | Resource ID
|
| string | Attendee's email address
| |
| displayName | string | User or resource name |
| partstat | string | Attendance status
Allowed values : NEEDS-ACTION, ACCEPTED, DECLINED, TENTATIVE |
| isResource | boolean | Indicates whether it is a resource. default : false |
| isOptional | boolean | Indicates whether attendance is optional. default : false |
| resourceValue | string | Unique resource value |
| Property | Type | Description |
|---|---|---|
| url | string | Video conference URL format : uri |
| resourceId | string | Video conference ID |
| Property | Type | Description |
|---|---|---|
| method | string | Reminder type
required Allowed values : DISPLAY, EMAIL |
| trigger | string | Sets a reminder for the event.
|
| triggerDateTime | object (triggerDateTime) | Date and time |
| Property | Type | Description |
|---|---|---|
| dateTime | string | Format: YYYY-MM-DDTHH:mm:ss |
| timeZone | string |
| Property | Type | Description |
|---|---|---|
| fileUrl | string | File URL readOnly : true |
| fileName | string | File name readOnly : true |
| fileSize | integer | File size (in bytes) minimum : 0 format : int64 readOnly : true |
| Property | Type | Description |
|---|---|---|
| nextCursor | string | Cursor example : JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA== nullable : true |
example
1{2 "events": [3 {4 "eventComponents": [5 {6 "eventId": "eventr8123-wehuh324-qwejqw123",7 "createdTime": {8 "dateTime": "2021-12-12T22:44:59",9 "timeZone": "America/New_York"10 },11 "updatedTime": {12 "dateTime": "2021-12-14T21:01:31",13 "timeZone": "America/New_York"14 },15 "summary": "Weekly Meeting",16 "description": "Memo",17 "location": "CUNY Graduate Center",18 "organizer": {19 "email": "user1@example.com",20 "displayName": "userName1"21 },22 "start": {23 "dateTime": "2021-12-13T14:00:00",24 "timeZone": "America/New_York"25 },26 "end": {27 "dateTime": "2021-12-13T15:00:00",28 "timeZone": "America/New_York"29 },30 "attendees": [31 {32 "email": "attendee1@example.com",33 "displayName": "user1",34 "partstat": "NEEDS-ACTION",35 "isOptional": false,36 "isResource": false37 }38 ],39 "viewUrl": "https://calendar.worksmobile.com/permanentLink.nhn"40 }41 ],42 "organizerCalendarId": "calendar-96b8-4c74-8277-7953e0b4604a"43 }44 ],45 "responseMetaData": {46 "nextCursor": "JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA=="47 }48}Bad Request
Forbidden
Not Found