Microsoft Teams · Schema

microsoft.graph.shift

Microsoft TeamsChatCollaborationCommunicationsMicrosoft 365ProductivityVideo Conferencing

Properties

Name Type Description
id string The unique identifier for an entity. Read-only.
@odata.type string
createdBy object Identity of the creator of the entity.
createdDateTime stringnull The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
lastModifiedBy object Identity of the person who last modified the entity.
lastModifiedDateTime stringnull The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
draftShift object Draft changes in the shift. Draft changes are only visible to managers. The changes are visible to employees when they're shared, which copies the changes from the draftShift to the sharedShift proper
isStagedForDeletion booleannull The shift is marked for deletion, a process that is finalized when the schedule is shared.
schedulingGroupId stringnull ID of the scheduling group the shift is part of. Required.
sharedShift object The shared version of this shift that is viewable by both employees and managers. Updates to the sharedShift property send notifications to users in the Teams client.
userId stringnull ID of the user assigned to the shift. Required.
View JSON Schema on GitHub

JSON Schema

microsoft-teams-microsoft-graph-shift-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-teams/json-schema/microsoft-teams-microsoft-graph-shift-schema.json",
  "title": "microsoft.graph.shift",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-teams-teams-schedule-api-openapi.yml#/components/schemas/microsoft.graph.shift",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.changeTrackedEntity"
    },
    {
      "title": "shift",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "draftShift": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.shiftItem"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Draft changes in the shift. Draft changes are only visible to managers. The changes are visible to employees when they're shared, which copies the changes from the draftShift to the sharedShift property."
        },
        "isStagedForDeletion": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "The shift is marked for deletion, a process that is finalized when the schedule is shared."
        },
        "schedulingGroupId": {
          "type": [
            "string",
            "null"
          ],
          "description": "ID of the scheduling group the shift is part of. Required."
        },
        "sharedShift": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.shiftItem"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The shared version of this shift that is viewable by both employees and managers. Updates to the sharedShift property send notifications to users in the Teams client."
        },
        "userId": {
          "type": [
            "string",
            "null"
          ],
          "description": "ID of the user assigned to the shift. Required."
        },
        "@odata.type": {
          "type": "string",
          "default": "#microsoft.graph.shift"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.shift",
  "$defs": {
    "microsoft.graph.changeTrackedEntity": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "changeTrackedEntity",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "createdBy": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.identitySet"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Identity of the creator of the entity."
            },
            "createdDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": [
                "string",
                "null"
              ],
              "description": "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z",
              "format": "date-time",
              "readOnly": true
            },
            "lastModifiedBy": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.identitySet"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Identity of the person who last modified the entity.",
              "readOnly": true
            },
            "lastModifiedDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": [
                "string",
                "null"
              ],
              "description": "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z",
              "format": "date-time",
              "readOnly": true
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ]
    },
    "microsoft.graph.entity": {
      "title": "entity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.identity": {
      "title": "identity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta."
        },
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.identitySet": {
      "title": "identitySet",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "application": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.identity"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Optional. The application associated with this action."
        },
        "device": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.identity"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Optional. The device associated with this action."
        },
        "user": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.identity"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Optional. The user associated with this action."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.scheduleEntity": {
      "title": "scheduleEntity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "endDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "startDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "theme": {
          "$ref": "#/$defs/microsoft.graph.scheduleEntityTheme"
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.scheduleEntityTheme": {
      "title": "scheduleEntityTheme",
      "enum": [
        "white",
        "blue",
        "green",
        "purple",
        "pink",
        "yellow",
        "gray",
        "darkBlue",
        "darkGreen",
        "darkPurple",
        "darkPink",
        "darkYellow",
        "unknownFutureValue",
        "darkRed",
        "cranberry",
        "darkOrange",
        "bronze",
        "peach",
        "gold",
        "lime",
        "forest",
        "lightGreen",
        "jade",
        "lightTeal",
        "darkTeal",
        "steel",
        "skyBlue",
        "blueGray",
        "lavender",
        "lilac",
        "plum",
        "magenta",
        "darkBrown",
        "beige",
        "charcoal",
        "silver"
      ],
      "type": "string"
    },
    "microsoft.graph.shiftActivity": {
      "title": "shiftActivity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "Customer defined code for the shiftActivity. Required."
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the shiftActivity. Required."
        },
        "endDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": [
            "string",
            "null"
          ],
          "description": "The end date and time for the shiftActivity. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Required.",
          "format": "date-time"
        },
        "isPaid": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Indicates whether the microsoft.graph.user should be paid for the activity during their shift. Required."
        },
        "startDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": [
            "string",
            "null"
          ],
          "description": "The start date and time for the shiftActivity. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Required.",
          "format": "date-time"
        },
        "theme": {
          "$ref": "#/$defs/microsoft.graph.scheduleEntityTheme"
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.shiftItem": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.scheduleEntity"
        },
        {
          "title": "shiftItem",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "activities": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.shiftActivity"
              },
              "description": "An incremental part of a shift which can cover details of when and where an employee is during their shift. For example, an assignment or a scheduled break or lunch. Required."
            },
            "displayName": {
              "type": [
                "string",
                "null"
              ],
              "description": "The shift label of the shiftItem."
            },
            "notes": {
              "type": [
                "string",
                "null"
              ],
              "description": "The shift notes for the shiftItem."
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/microsoft-teams-microsoft-graph-shift"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.