Add-StaffHubShift

Adds a shift to the specified member in a team.

Note: This cmdlet is currently in Beta.

Syntax

Add-StaffHubShift
   [-Title] <String>
   [[-Notes] <String>]
   [-StartDateTime] <DateTime>
   [-EndDateTime] <DateTime>
   [-ShiftType] <String>
   [-MemberId] <String>
   [-TeamId] <String>

Description

Adds a shift to the specified member in a team.

Examples

-------------------------- Example 1 --------------------------

$startTime = Get-Date -Date "2018-01-01T00:10:00"
$endTime = Get-Date -Date "2018-01-01T04:10:00"
Add-StaffHubShift -Title "Title" -StartDateTime $startTime -EndDateTime $endTime -ShiftType Working -MemberId "MBER_1234" -TeamId "TEAM_1234"

Creates a shift for member MBER_1234 under the team TEAM_1234.

Parameters

-EndDateTime

End time of the shift.

Type:DateTime
Position:5
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft StaffHub
-MemberId

Member to which the shift is to be added.

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft StaffHub
-Notes

Additional notes for the shift.

Type:String
Position:3
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft StaffHub
-ShiftType

ShiftType - Working/Absence.

Type:String
Accepted values:Working, Absence
Position:6
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft StaffHub
-StartDateTime

Start time of the shift.

Type:DateTime
Position:4
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft StaffHub
-TeamId

ID of the team to which the shift is to be added.

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft StaffHub
-Title

Title of the shift.

Type:String
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft StaffHub

Inputs

None

Outputs

System.Object

Notes

This cmdlet is currently in Beta.