Skip to content

Microsoft: Invoke action get Schedule — me Calendar Group calendar Groups Calendars Get Schedule

Microsoft meCalendarGroup.calendarGroupsCalendarsGetSchedule: arguments, response, policy and SDK examples.

← Me calendar group operations · Get started

Operation microsoft.me_calendargroups_calendargroup_calendars_calendar_getschedule

Provider route: POST /me/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/getSchedule. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/microsoft with npm, or alter-sdk-microsoft with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { MicrosoftIntegration } from "@alter-ai/microsoft";
async function execute(input: Parameters<MicrosoftIntegration["meCalendarGroup"]["calendarGroupsCalendarsGetSchedule"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new MicrosoftIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.meCalendarGroup.calendarGroupsCalendarsGetSchedule(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_microsoft import MicrosoftIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = MicrosoftIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.me_calendar_group.calendar_groups_calendars_get_schedule(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.calendarGroup-idstringRequired within parent
path.calendar-idstringRequired within parent
bodyModelRequired within parentExpand Invoke action get Schedule — me Calendar get Schedule — request body — body

Referenced models: Invoke action get Schedule — me Calendar get Schedule — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$objectRoot
$ (allOf 1)ModelAll variants applyExpand List rules — response body — @odata count, @odata next Link
$ (allOf 2)objectAll variants apply
$ (allOf 2).valuearrayOptional
$ (allOf 2).value[]ModelEach itemExpand Invoke action get Schedule — me Calendar get Schedule — response body — value value item

Referenced models: List rules — response body — @odata count, @odata next Link, Invoke action get Schedule — me Calendar get Schedule — response body — value value item

1 more schema is linked from the tables above, on the schema pages.

List rules — response body — @odata count, @odata next Link
FieldTypePresenceDescription and constraints
$objectRoot
@odata.countJSONOptional
@odata.count (anyOf 1)JSONAlternative
@odata.count (anyOf 1) (anyOf 1)integerAlternativeFormat: int64
@odata.count (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
@odata.count (anyOf 2)nullAlternative
@odata.nextLinkJSONOptional
@odata.nextLink (anyOf 1)stringAlternative
@odata.nextLink (anyOf 2)nullAlternative
Invoke action get Schedule — me Calendar get Schedule — response body — value value item
FieldTypePresenceDescription and constraints
$objectRoot
@odata.typestringOptional
availabilityViewJSONOptional
availabilityView (anyOf 1)stringAlternativeRepresents a merged view of availability of all the items in scheduleItems. The view consists of time slots. Availability during each time slot is indicated with: 0= free or working elswhere, 1= tentative, 2= busy, 3= out of office.Note: Working elsewhere is set to 0 instead of 4 for backward compatibility. For details, see the Q&A and Exchange 2007 and Exchange 2010 do not use the WorkingElsewhere value.
availabilityView (anyOf 2)nullAlternative
errorJSONOptionalError information from attempting to get the availability of the user, distribution list, or resource.
error (anyOf 1)ModelAlternativeExpand Invoke action get Schedule — me Calendar get Schedule — response body — value value item error @odata type, message, response Code
error (anyOf 2)JSONAlternative
error (anyOf 2) (anyOf 1)objectAlternative
error (anyOf 2) (anyOf 2)nullAlternative
scheduleIdJSONOptional
scheduleId (anyOf 1)stringAlternativeAn SMTP address of the user, distribution list, or resource, identifying an instance of scheduleInformation.
scheduleId (anyOf 2)nullAlternative
scheduleItemsarrayOptionalContains the items that describe the availability of the user or resource.
scheduleItems[]ModelEach itemExpand Invoke action get Schedule — me Calendar get Schedule — response body — value value item schedule Items item
workingHoursJSONOptionalThe days of the week and hours in a specific time zone that the user works. These are set as part of the user's mailboxSettings.
workingHours (anyOf 1)ModelAlternativeExpand Invoke action get Schedule — me Calendar get Schedule — response body — value value item working Hours @odata type, days Of Week, end Time, start Time, time Zone
workingHours (anyOf 2)JSONAlternative
workingHours (anyOf 2) (anyOf 1)objectAlternative
workingHours (anyOf 2) (anyOf 2)nullAlternative

Referenced models: Invoke action get Schedule — me Calendar get Schedule — response body — value value item error @odata type, message, response Code, Invoke action get Schedule — me Calendar get Schedule — response body — value value item schedule Items item, Invoke action get Schedule — me Calendar get Schedule — response body — value value item working Hours @odata type, days Of Week, end Time, start Time, time Zone

Invoke action get Schedule — me Calendar get Schedule — request body — body
FieldTypePresenceDescription and constraints
$objectRoot
AvailabilityViewIntervalJSONOptional
AvailabilityViewInterval (anyOf 1)numberAlternativeFormat: int32
Maximum: 2147483647
Minimum: -2147483648
AvailabilityViewInterval (anyOf 2)nullAlternative
EndTimeJSONOptional
EndTime (anyOf 1)ModelAlternativeExpand Invoke action snooze Reminder — me Event events Snooze Reminder — request body — body New Reminder Time
EndTime (anyOf 2)JSONAlternative
EndTime (anyOf 2) (anyOf 1)objectAlternative
EndTime (anyOf 2) (anyOf 2)nullAlternative
SchedulesarrayOptional
Schedules[]JSONEach item
Schedules[] (anyOf 1)stringAlternative
Schedules[] (anyOf 2)nullAlternative
StartTimeJSONOptional
StartTime (anyOf 1)ModelAlternativeExpand Invoke action snooze Reminder — me Event events Snooze Reminder — request body — body New Reminder Time
StartTime (anyOf 2)JSONAlternative
StartTime (anyOf 2) (anyOf 1)objectAlternative
StartTime (anyOf 2) (anyOf 2)nullAlternative

Referenced models: Invoke action snooze Reminder — me Event events Snooze Reminder — request body — body New Reminder Time

Invoke action get Schedule — me Calendar get Schedule — response body — value value item error @odata type, message, response Code
FieldTypePresenceDescription and constraints
$objectRoot
@odata.typestringOptional
messageJSONOptional
message (anyOf 1)stringAlternativeDescribes the error.
message (anyOf 2)nullAlternative
responseCodeJSONOptional
responseCode (anyOf 1)stringAlternativeThe response code from querying for the availability of the user, distribution list, or resource.
responseCode (anyOf 2)nullAlternative
Invoke action get Schedule — me Calendar get Schedule — response body — value value item schedule Items item
FieldTypePresenceDescription and constraints
$objectRoot
@odata.typestringOptional
endJSONOptionalThe date, time, and time zone that the corresponding event ends.
end (anyOf 1)ModelAlternativeExpand Invoke action snooze Reminder — me Event events Snooze Reminder — request body — body New Reminder Time
end (anyOf 2)JSONAlternative
end (anyOf 2) (anyOf 1)objectAlternative
end (anyOf 2) (anyOf 2)nullAlternative
isPrivateJSONOptional
isPrivate (anyOf 1)booleanAlternativeThe sensitivity of the corresponding event. True if the event is marked private, false otherwise. Optional.
isPrivate (anyOf 2)nullAlternative
locationJSONOptional
location (anyOf 1)stringAlternativeThe location where the corresponding event is held or attended from. Optional.
location (anyOf 2)nullAlternative
startJSONOptionalThe date, time, and time zone that the corresponding event starts.
start (anyOf 1)ModelAlternativeExpand Invoke action snooze Reminder — me Event events Snooze Reminder — request body — body New Reminder Time
start (anyOf 2)JSONAlternative
start (anyOf 2) (anyOf 1)objectAlternative
start (anyOf 2) (anyOf 2)nullAlternative
statusJSONOptionalThe availability status of the user or resource during the corresponding event. The possible values are: free, tentative, busy, oof, workingElsewhere, unknown.
status (anyOf 1)stringAlternativeKnown values: unknown, free, tentative, busy, oof, workingElsewhere
status (anyOf 2)JSONAlternative
status (anyOf 2) (anyOf 1)objectAlternative
status (anyOf 2) (anyOf 2)nullAlternative
subjectJSONOptional
subject (anyOf 1)stringAlternativeThe corresponding event's subject line. Optional.
subject (anyOf 2)nullAlternative

Referenced models: Invoke action snooze Reminder — me Event events Snooze Reminder — request body — body New Reminder Time

Invoke action snooze Reminder — me Event events Snooze Reminder — request body — body New Reminder Time
FieldTypePresenceDescription and constraints
$objectRoot
@odata.typestringOptional
dateTimestringOptionalA single point of time in a combined date and time representation ({date}T{time}; for example, 2017-08-29T04:00:00.0000000).
timeZoneJSONOptional
timeZone (anyOf 1)stringAlternativeRepresents a time zone, for example, 'Pacific Standard Time'. See below for more possible values.
timeZone (anyOf 2)nullAlternative
Invoke action get Schedule — me Calendar get Schedule — response body — value value item working Hours @odata type, days Of Week, end Time, start Time, time Zone time Zone @odata type, name
FieldTypePresenceDescription and constraints
$objectRootdiscriminator: {"mapping": {}, "propertyName": "@odata.type"}
@odata.typestringOptional
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of a time zone. It can be a standard time zone name such as 'Hawaii-Aleutian Standard Time', or 'Customized Time Zone' for a custom time zone.
name (anyOf 2)nullAlternative

SDK function policy ID: microsoft.me_calendargroups_calendargroup_calendars_calendar_getschedule. Catalog operation: me_calendargroups_calendargroup_calendars_calendar_getschedule. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.