UpdateShift Method (Shifts)
- Last UpdatedNov 06, 2025
- 1 minute read
The UpdateShift() method updates the description of the specified standard shift.
'Declaration
Public Shared Function UpdateShift( _
ByVal shiftID As String, _
ByVal description As String, _
ByVal lastEditAt As Nullable(Of Date) _
) As Date
public static DateTime UpdateShift(
string shiftID,
string description,
Nullable<DateTime> lastEditAt
)
Parameters
- shiftID
- Required. Holds the ID of the shift whose description is being updated.
- description
- Required. Holds the new description for the shift.
- lastEditAt
- Optional. Holds the datetime value that can be used to avoid data contention. If it is specified, the value must match that value in the database for the update to succeed.
Return Value
Returns a DateTime with the date and time the shift's description was updated.