Import-Module Microsoft.Graph.Beta.Users
$params = @{
displayName = "Vacation Plan"
}
# A UPN can also be used as -UserId.
Update-MgBetaUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params
This example shows how to use the Update-MgBetaUserTodoList Cmdlet.
todoTaskList
To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
Parameter properties
Type:
IMicrosoftGraphTodoTaskList
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
Update
Position:
Named
Mandatory:
True
Value from pipeline:
True
Value from pipeline by property name:
False
Value from remaining arguments:
False
UpdateViaIdentity
Position:
Named
Mandatory:
True
Value from pipeline:
True
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type:
SwitchParameter
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
cf
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-DisplayName
The name of the task list.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
UpdateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
UpdateViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Extensions
The collection of open extensions defined for the task list.
Nullable.
To construct, see NOTES section for EXTENSIONS properties and create a hash table.
Parameter properties
Type:
IMicrosoftGraphExtension[]
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
UpdateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
UpdateViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Headers
Optional headers that will be added to the request.
Parameter properties
Type:
IDictionary
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
True
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Id
The unique identifier for an entity.
Read-only.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
UpdateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
UpdateViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Parameter properties
Type:
IUsersIdentity
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
UpdateViaIdentityExpanded
Position:
Named
Mandatory:
True
Value from pipeline:
True
Value from pipeline by property name:
False
Value from remaining arguments:
False
UpdateViaIdentity
Position:
Named
Mandatory:
True
Value from pipeline:
True
Value from pipeline by property name:
False
Value from remaining arguments:
False
-IsOwner
True if the user is owner of the given task list.
Parameter properties
Type:
SwitchParameter
Default value:
False
Supports wildcards:
False
DontShow:
False
Parameter sets
UpdateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
UpdateViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-IsShared
True if the task list is shared with other users
Parameter properties
Type:
SwitchParameter
Default value:
False
Supports wildcards:
False
DontShow:
False
Parameter sets
UpdateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
UpdateViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-ResponseHeadersVariable
Optional Response Headers Variable.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
RHV
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Tasks
The tasks in this task list.
Read-only.
Nullable.
To construct, see NOTES section for TASKS properties and create a hash table.
Parameter properties
Type:
IMicrosoftGraphTodoTask[]
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
UpdateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
UpdateViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-TodoTaskListId
The unique identifier of todoTaskList
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
UpdateExpanded
Position:
Named
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
Update
Position:
Named
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-UserId
The unique identifier of user
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
UpdateExpanded
Position:
Named
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
Update
Position:
Named
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-WellknownListName
wellknownListName
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
UpdateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
UpdateViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Parameter properties
Type:
SwitchParameter
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
wi
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
To create the parameters described below, construct a hash table containing the appropriate properties.
For information on hash tables, run Get-Help about_Hash_Tables.
[Id <String>]: The unique identifier for an entity.
Read-only.
[Content <Byte- []>]: The content streams that are uploaded.
[ExpirationDateTime <DateTime?>]: The date and time in UTC when the upload session will expire.
The complete file must be uploaded before this expiration time is reached.
[NextExpectedRanges <String- []>]: Indicates a single value {start} that represents the location in the file where the next upload should begin.
[Attachments <IMicrosoftGraphAttachmentBase- []>]: A collection of file attachments for the task.
[Id <String>]: The unique identifier for an entity.
Read-only.
[ContentType <String>]: The MIME type.
[LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.
For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
[Name <String>]: The display name of the attachment.
This doesn't need to be the actual file name.
[Size <Int32?>]: The length of the attachment in bytes.
[Body <IMicrosoftGraphItemBody>]: itemBody
[(Any) <Object>]: This indicates any property can be added to this object.
[Content <String>]: The content of the item.
[ContentType <String>]: bodyType
[BodyLastModifiedDateTime <DateTime?>]: The date and time when the task body was last modified.
By default, it is in UTC.
You can provide a custom time zone in the request header.
The property value uses ISO 8601 format and is always in UTC time.
For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
[Categories <String- []>]: The categories associated with the task.
Each category corresponds to the displayName property of an outlookCategory that the user has defined.
[ChecklistItems <IMicrosoftGraphChecklistItem- []>]: A collection of smaller subtasks linked to the more complex parent task.
[Id <String>]: The unique identifier for an entity.
Read-only.
[CheckedDateTime <DateTime?>]: The date and time when the checklistItem was finished.
[CreatedDateTime <DateTime?>]: The date and time when the checklistItem was created.
[DisplayName <String>]: Indicates the title of the checklistItem.
[IsChecked <Boolean?>]: State that indicates whether the item is checked off or not.
[(Any) <Object>]: This indicates any property can be added to this object.
[DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}).
For example, '2019-04-16T09:00:00'.
[TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'.
See below for possible values.
[CreatedDateTime <DateTime?>]: The date and time when the task was created.
By default, it is in UTC.
You can provide a custom time zone in the request header.
The property value uses ISO 8601 format.
For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
[Extensions <IMicrosoftGraphExtension- []>]: The collection of open extensions defined for the task.
Nullable.
[HasAttachments <Boolean?>]: Indicates whether the task has attachments.
[Importance <String>]: importance
[IsReminderOn <Boolean?>]: Set to true if an alert is set to remind the user of the task.
[LastModifiedDateTime <DateTime?>]: The date and time when the task was last modified.
By default, it is in UTC.
You can provide a custom time zone in the request header.
The property value uses ISO 8601 format and is always in UTC time.
For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
[LinkedResources <IMicrosoftGraphLinkedResource- []>]: A collection of resources linked to the task.
[Id <String>]: The unique identifier for an entity.
Read-only.
[ApplicationName <String>]: The app name of the source that sends the linkedResource.
[DisplayName <String>]: The title of the linkedResource.
[ExternalId <String>]: ID of the object that is associated with this task on the third-party/partner system.
[WebUrl <String>]: Deep link to the linkedResource.
[(Any) <Object>]: This indicates any property can be added to this object.
[DayOfMonth <Int32?>]: The day of the month on which the event occurs.
Required if type is absoluteMonthly or absoluteYearly.
[DaysOfWeek <String- []>]: A collection of the days of the week on which the event occurs.
The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday.
If type is relativeMonthly or relativeYearly, and daysOfWeek specifies more than one day, the event falls on the first day that satisfies the pattern.
Required if type is weekly, relativeMonthly, or relativeYearly.
[FirstDayOfWeek <String>]: dayOfWeek
[Index <String>]: weekIndex
[Interval <Int32?>]: The number of units between occurrences, where units can be in days, weeks, months, or years, depending on the type.
Required.
[Month <Int32?>]: The month in which the event occurs.
This is a number from 1 to 12.
[(Any) <Object>]: This indicates any property can be added to this object.
[EndDate <DateTime?>]: The date to stop applying the recurrence pattern.
Depending on the recurrence pattern of the event, the last occurrence of the meeting may not be this date.
Required if type is endDate.
[NumberOfOccurrences <Int32?>]: The number of times to repeat the event.
Required and must be positive if type is numbered.
[RecurrenceTimeZone <String>]: Time zone for the startDate and endDate properties.
Optional.
If not specified, the time zone of the event is used.
[StartDate <DateTime?>]: The date to start applying the recurrence pattern.
The first occurrence of the meeting may be this date or later, depending on the recurrence pattern of the event.
Must be the same value as the start property of the recurring event.
Required.
[Id <String>]: The unique identifier for an entity.
Read-only.
[Content <Byte- []>]: The content streams that are uploaded.
[ExpirationDateTime <DateTime?>]: The date and time in UTC when the upload session will expire.
The complete file must be uploaded before this expiration time is reached.
[NextExpectedRanges <String- []>]: Indicates a single value {start} that represents the location in the file where the next upload should begin.
[Attachments <IMicrosoftGraphAttachmentBase- []>]: A collection of file attachments for the task.
[Id <String>]: The unique identifier for an entity.
Read-only.
[ContentType <String>]: The MIME type.
[LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.
For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
[Name <String>]: The display name of the attachment.
This doesn't need to be the actual file name.
[Size <Int32?>]: The length of the attachment in bytes.
[Body <IMicrosoftGraphItemBody>]: itemBody
[(Any) <Object>]: This indicates any property can be added to this object.
[Content <String>]: The content of the item.
[ContentType <String>]: bodyType
[BodyLastModifiedDateTime <DateTime?>]: The date and time when the task body was last modified.
By default, it is in UTC.
You can provide a custom time zone in the request header.
The property value uses ISO 8601 format and is always in UTC time.
For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
[Categories <String- []>]: The categories associated with the task.
Each category corresponds to the displayName property of an outlookCategory that the user has defined.
[ChecklistItems <IMicrosoftGraphChecklistItem- []>]: A collection of smaller subtasks linked to the more complex parent task.
[Id <String>]: The unique identifier for an entity.
Read-only.
[CheckedDateTime <DateTime?>]: The date and time when the checklistItem was finished.
[CreatedDateTime <DateTime?>]: The date and time when the checklistItem was created.
[DisplayName <String>]: Indicates the title of the checklistItem.
[IsChecked <Boolean?>]: State that indicates whether the item is checked off or not.
[(Any) <Object>]: This indicates any property can be added to this object.
[DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}).
For example, '2019-04-16T09:00:00'.
[TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'.
See below for possible values.
[CreatedDateTime <DateTime?>]: The date and time when the task was created.
By default, it is in UTC.
You can provide a custom time zone in the request header.
The property value uses ISO 8601 format.
For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
[Extensions <IMicrosoftGraphExtension- []>]: The collection of open extensions defined for the task.
Nullable.
[Id <String>]: The unique identifier for an entity.
Read-only.
[HasAttachments <Boolean?>]: Indicates whether the task has attachments.
[Importance <String>]: importance
[IsReminderOn <Boolean?>]: Set to true if an alert is set to remind the user of the task.
[LastModifiedDateTime <DateTime?>]: The date and time when the task was last modified.
By default, it is in UTC.
You can provide a custom time zone in the request header.
The property value uses ISO 8601 format and is always in UTC time.
For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
[LinkedResources <IMicrosoftGraphLinkedResource- []>]: A collection of resources linked to the task.
[Id <String>]: The unique identifier for an entity.
Read-only.
[ApplicationName <String>]: The app name of the source that sends the linkedResource.
[DisplayName <String>]: The title of the linkedResource.
[ExternalId <String>]: ID of the object that is associated with this task on the third-party/partner system.
[WebUrl <String>]: Deep link to the linkedResource.
[(Any) <Object>]: This indicates any property can be added to this object.
[DayOfMonth <Int32?>]: The day of the month on which the event occurs.
Required if type is absoluteMonthly or absoluteYearly.
[DaysOfWeek <String- []>]: A collection of the days of the week on which the event occurs.
The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday.
If type is relativeMonthly or relativeYearly, and daysOfWeek specifies more than one day, the event falls on the first day that satisfies the pattern.
Required if type is weekly, relativeMonthly, or relativeYearly.
[FirstDayOfWeek <String>]: dayOfWeek
[Index <String>]: weekIndex
[Interval <Int32?>]: The number of units between occurrences, where units can be in days, weeks, months, or years, depending on the type.
Required.
[Month <Int32?>]: The month in which the event occurs.
This is a number from 1 to 12.
[(Any) <Object>]: This indicates any property can be added to this object.
[EndDate <DateTime?>]: The date to stop applying the recurrence pattern.
Depending on the recurrence pattern of the event, the last occurrence of the meeting may not be this date.
Required if type is endDate.
[NumberOfOccurrences <Int32?>]: The number of times to repeat the event.
Required and must be positive if type is numbered.
[RecurrenceTimeZone <String>]: Time zone for the startDate and endDate properties.
Optional.
If not specified, the time zone of the event is used.
[StartDate <DateTime?>]: The date to start applying the recurrence pattern.
The first occurrence of the meeting may be this date or later, depending on the recurrence pattern of the event.
Must be the same value as the start property of the recurring event.
Required.