Edit

Share via


swapShiftsChangeRequest resource type

Namespace: microsoft.graph

Represents a type of shift request to swap a shift with another user in the team.

Methods

Method Return Type Description
List Collection of swapShiftsChangeRequest List the properties and relationships of swapShiftsChangeRequest objects in a team.
Create swapShiftsChangeRequest Create an instance of a swapShiftsChangeRequest object.
Get swapShiftsChangeRequest Read the properties and relationships of a swapShiftsChangeRequest object.
Approve None Approve a swapShiftsChangeRequest.
Decline None Decline a swapShiftsChangeRequest.

Properties

Property Type Description
assignedTo scheduleChangeRequestActor Indicates who the request is assigned to. Inherited from scheduleChangeRequest.The possible values are: sender, recipient, manager, system, unknownFutureValue.
createdBy identitySet The user who created the entity. Inherited from changeTrackedEntity.
createdDateTime DateTimeOffset The date and time when the entity was created. Inherited from changeTrackedEntity.
id String The unique identifier for the entity. Inherited from entity. Inherits from entity
lastModifiedBy identitySet The user who last modified the entity. Inherited from changeTrackedEntity.
lastModifiedDateTime DateTimeOffset The date and time when the entity was last modified. Inherited from changeTrackedEntity.
managerActionDateTime DateTimeOffset The date and time when the manager approved or declined the request. Inherited from scheduleChangeRequest.
managerActionMessage String The message sent by the manager regarding the request. Inherited from scheduleChangeRequest.
managerUserId String The user ID of the manager who approved or declined the request. Inherited from scheduleChangeRequest.
recipientActionDateTime DateTimeOffset The date and time when the recipient approved or declined the request. Inherited from offerShiftRequest.
recipientActionMessage String The message sent by the recipient regarding the request. Inherited from offerShiftRequest.
recipientShiftId String The recipient's Shift ID
recipientUserId String The recipient's user ID. Inherited from offerShiftRequest.
senderDateTime DateTimeOffset The date and time when the sender sent the request. Inherited from scheduleChangeRequest.
senderMessage String The message sent by the sender of the request. Inherited from scheduleChangeRequest.
senderShiftId String The sender's shift ID. Inherited from offerShiftRequest.
senderUserId String The user ID of the sender of the request. Inherited from scheduleChangeRequest.
state scheduleChangeState The state of the entity. Inherited from scheduleChangeRequest.The possible values are: pending, approved, declined, unknownFutureValue.

Relationships

None.

JSON representation

The following JSON representation shows the resource type.

{
  "@odata.type": "#microsoft.graph.swapShiftsChangeRequest",
  "id": "String (identifier)",
  "createdBy": {
    "@odata.type": "microsoft.graph.identitySet"
  },
  "createdDateTime": "String (timestamp)",
  "lastModifiedDateTime": "String (timestamp)",
  "lastModifiedBy": {
    "@odata.type": "microsoft.graph.identitySet"
  },
  "assignedTo": "String",
  "state": "String",
  "senderMessage": "String",
  "senderDateTime": "String (timestamp)",
  "managerActionMessage": "String",
  "managerActionDateTime": "String (timestamp)",
  "senderUserId": "String",
  "managerUserId": "String",
  "recipientActionMessage": "String",
  "recipientActionDateTime": "String (timestamp)",
  "senderShiftId": "String",
  "recipientUserId": "String",
  "recipientShiftId": "String"
}