timeCard resource type
Namespace: microsoft.graph
Represents a timecard entry in the schedule.
Methods
Method | Return type | Description |
---|---|---|
List | timeCard collection | Get a list of the timeCard objects and their properties. |
Create | timeCard | Create a new timeCard object. |
Get | timeCard | Read the properties and relationships of a timeCard object. |
Replace | timeCard | Replace a timeCard object. |
Delete | None | Delete a timeCard object. |
Clock in | timeCard | Clock in to start a timeCard. |
Clock out | None | Clock out to end an open timeCard. |
Start break | None | Start a timeCardBreak in a specific timeCard. |
End break | None | End the open timeCardBreak in a specific timeCard. |
Confirm | None | Confirm a timeCard record. |
Properties
Property | Type | Description |
---|---|---|
breaks | timeCardBreak collection | The list of breaks associated with the timeCard. |
clockInEvent | timeCardEvent | The clock-in event of the timeCard. |
clockOutEvent | timeCardEvent | The clock-out event of the timeCard. |
confirmedBy | confirmedBy | Indicates whether this timeCard entry is confirmed. Possible values are: none , user , manager , unknownFutureValue . |
createdBy | IdentitySet | Identity of the creator of this timecard. |
createdDateTime | DateTimeOffset | The date and time at which the timeCard was created. |
id | String | Unique identifier for the timeCard. |
lastModifiedBy | IdentitySet | Identity of the last modifier of this timecard. |
lastModifiedDateTime | DateTimeOffset | The timestamp in which the timeCard was last modified. |
notes | itemBody | Notes about the timeCard. |
originalEntry | timeCardEntry | The original timeCardEntry of the timeCard before it was edited. |
state | timeCardState | The current state of the timeCard during its life cycle. The possible values are: clockedIn , onBreak , clockedOut , unknownFutureValue . |
userId | String | User ID to which the timeCard belongs. |
JSON representation
The following JSON representation shows the resource type.
{
"@odata.type": "#microsoft.graph.timeCard",
"id": "String (identifier)",
"createdBy": {
"@odata.type": "microsoft.graph.identitySet"
},
"createdDateTime": "String (timestamp)",
"lastModifiedDateTime": "String (timestamp)",
"lastModifiedBy": {
"@odata.type": "microsoft.graph.identitySet"
},
"userId": "String",
"state": "String",
"clockInEvent": {
"@odata.type": "microsoft.graph.timeCardEvent"
},
"clockOutEvent": {
"@odata.type": "microsoft.graph.timeCardEvent"
},
"breaks": [
{
"@odata.type": "microsoft.graph.timeCardBreak"
}
],
"notes": {
"@odata.type": "microsoft.graph.itemBody"
},
"originalEntry": {
"@odata.type": "microsoft.graph.timeCardEntry"
},
"confirmedBy": "String"
}