Edit

Share via


swapShiftsChangeRequest resource type

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

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

Inherits from offerShiftRequest.

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 an swapShiftsChangeRequest object.
Get swapShiftsChangeRequest Read the properties and relationships of a swapShiftsChangeRequest object.
Approve None Approve an swapShiftsChangeRequest.
Approve for user None Approve a swapShiftsChangeRequest object for a user. This action only supports application permissions.
Decline None Decline an swapShiftsChangeRequest.
Decline for user None Decline a swapShiftsChangeRequest object for a user. This action only supports application permissions.

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"
}