< Back

Set-GDriveItemProperty

Mon Jan 13, 2020 10:29 pm

NAME Set-GDriveItemProperty



SYNOPSIS

Updates GoogleDrive Item metadata





SYNTAX

Set-GDriveItemProperty [-ID] <String> [-RevisionID <String>] [-JsonProperty] <String> -AccessToken <String>

[-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Updates GoogleDrive Item metadata





PARAMETERS

-ID <String>

File ID to update



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-RevisionID <String>

File Revision ID to set property (Version history)



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-JsonProperty <String>

Json-formatted string with all needed file metadata



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-AccessToken <String>

Access Token for request



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Json with item metadata as PSObject





NOTES





Author: Max Kozlov



-------------------------- EXAMPLE 1 --------------------------



PS C:\\># rename file



Set-GDriveItemProperty -AccessToken $access_token -ID '0BAjkl4cBDNVpVbB5nGhKQ195aU0' -JsonProperty '{

"name":"test1" }'











RELATED LINKS

Set-GDriveItemContent

Move-GDriveItem

Rename-GDriveItem

https://developers.google.com/drive/api ... les/update

https://developers.google.com/drive/api ... s#resource

https://developers.google.com/drive/api ... ons/update