Set-PnPFileCheckedIn
SYNOPSIS
Checks in a file.
SYNTAX
Set-PnPFileCheckedIn -Url <String> [-CheckInType <CheckInType>] [-Comment <String>] [-Approve] [-Connection <PnPConnection>]
DESCRIPTION
This cmdlet checks in a single file, optionally with a comment.
EXAMPLES
EXAMPLE 1
Set-PnPFileCheckedIn -Url "/Documents/Contract.docx"
Checks in the file "Contract.docx" in the "Documents" library located in the root site collection
EXAMPLE 2
Set-PnPFileCheckedIn -Url "/sites/news/Documents/Article.docx"
Checks in the file "Article.docx" in the "Documents" library located in the site collection called news
EXAMPLE 3
Set-PnPFileCheckedIn -Url "/Documents/Contract.docx" -CheckInType MinorCheckIn -Comment "Smaller changes"
Checks in the file "Contract.docx" in the "Documents" library as a minor version and adds the check in comment "Smaller changes"
PARAMETERS
-Approve
Approves the file.
Type: SwitchParameter
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-CheckInType
The check in type to use. Defaults to MajorCheckIn.
Type: CheckInType
Parameter Sets: (All)
Accepted values: MinorCheckIn, MajorCheckIn, OverwriteCheckIn
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Comment
The check in comment.
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Connection
Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: PnPConnection
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Url
The server relative url of the file to check in.
Type: String
Parameter Sets: (All)
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False