Update-MgPlannerTaskDetail
Update the properties of plannerTaskDetails object.
Note
To view the beta release of this cmdlet, view Update-MgBetaPlannerTaskDetail
Syntax
Update-MgPlannerTaskDetail
-PlannerTaskId <String>
-IfMatch <String>
[-ResponseHeadersVariable <String>]
[-AdditionalProperties <Hashtable>]
[-Checklist <Hashtable>]
[-Description <String>]
[-Id <String>]
[-PreviewType <String>]
[-References <Hashtable>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-MgPlannerTaskDetail
-PlannerTaskId <String>
-IfMatch <String>
-BodyParameter <IMicrosoftGraphPlannerTaskDetails>
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-MgPlannerTaskDetail
-InputObject <IPlannerIdentity>
-IfMatch <String>
[-ResponseHeadersVariable <String>]
[-AdditionalProperties <Hashtable>]
[-Checklist <Hashtable>]
[-Description <String>]
[-Id <String>]
[-PreviewType <String>]
[-References <Hashtable>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-MgPlannerTaskDetail
-InputObject <IPlannerIdentity>
-IfMatch <String>
-BodyParameter <IMicrosoftGraphPlannerTaskDetails>
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Update the properties of plannerTaskDetails object.
Permissions
Permission type | Least privileged permissions | Higher privileged permissions |
---|---|---|
Delegated (work or school account) | Tasks.ReadWrite | Group.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. | Not supported. |
Application | Tasks.ReadWrite.All | Not available. |
Examples
Example 1: Code snippet
Import-Module Microsoft.Graph.Planner
$params = @{
previewType = "noPreview"
references = @{
"http%3A//developer%2Emicrosoft%2Ecom" = @{
"@odata.type" = "microsoft.graph.plannerExternalReference"
alias = "Documentation"
previewPriority = " !"
type = "Other"
}
"https%3A//developer%2Emicrosoft%2Ecom/en-us/graph/graph-explorer" = @{
"@odata.type" = "microsoft.graph.plannerExternalReference"
previewPriority = " !!"
}
"http%3A//www%2Ebing%2Ecom" = $null
}
checklist = @{
"95e27074-6c4a-447a-aa24-9d718a0b86fa" = @{
"@odata.type" = "microsoft.graph.plannerChecklistItem"
title = "Update task details"
isChecked = $true
}
"d280ed1a-9f6b-4f9c-a962-fb4d00dc50ff" = @{
"@odata.type" = "microsoft.graph.plannerChecklistItem"
isChecked = $true
}
"a93c93c5-10a6-4167-9551-8bafa09967a7" = $null
}
}
Update-MgPlannerTaskDetail -PlannerTaskId $plannerTaskId -BodyParameter $params -IfMatch W/'"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc="'
This example shows how to use the Update-MgPlannerTaskDetail Cmdlet.
Parameters
-AdditionalProperties
Additional Parameters
Type: | Hashtable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-BodyParameter
plannerTaskDetails To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
Type: | IMicrosoftGraphPlannerTaskDetails |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Checklist
plannerChecklistItems
Type: | Hashtable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
Description of the task.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Headers
Optional headers that will be added to the request.
Type: | IDictionary |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Id
The unique identifier for an entity. Read-only.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IfMatch
ETag value.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Type: | IPlannerIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PlannerTaskId
The unique identifier of plannerTask
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PreviewType
plannerPreviewType
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProgressAction
{{ Fill ProgressAction Description }}
Type: | ActionPreference |
Aliases: | proga |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-References
plannerExternalReferences
Type: | Hashtable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResponseHeadersVariable
Optional Response Headers Variable.
Type: | String |
Aliases: | RHV |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPlannerTaskDetails
Microsoft.Graph.PowerShell.Models.IPlannerIdentity
System.Collections.IDictionary
Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPlannerTaskDetails
Notes
COMPLEX PARAMETER PROPERTIES
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.
BODYPARAMETER <IMicrosoftGraphPlannerTaskDetails>
: plannerTaskDetails
[(Any) <Object>]
: This indicates any property can be added to this object.[Id <String>]
: The unique identifier for an entity. Read-only.[Checklist <IMicrosoftGraphPlannerChecklistItems>]
: plannerChecklistItems[(Any) <Object>]
: This indicates any property can be added to this object.
[Description <String>]
: Description of the task.[PreviewType <String>]
: plannerPreviewType[References <IMicrosoftGraphPlannerExternalReferences>]
: plannerExternalReferences[(Any) <Object>]
: This indicates any property can be added to this object.
INPUTOBJECT <IPlannerIdentity>
: Identity Parameter
[GroupId <String>]
: The unique identifier of group[PlannerBucketId <String>]
: The unique identifier of plannerBucket[PlannerPlanId <String>]
: The unique identifier of plannerPlan[PlannerTaskId <String>]
: The unique identifier of plannerTask[UserId <String>]
: The unique identifier of user