{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-teams/json-schema/microsoft-teams-microsoft-graph-workforce-integration-schema.json",
  "title": "microsoft.graph.workforceIntegration",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-teams-teamwork-workforceintegration-api-openapi.yml#/components/schemas/microsoft.graph.workforceIntegration",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.changeTrackedEntity"
    },
    {
      "title": "workforceIntegration",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "apiVersion": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": [
            "number",
            "null"
          ],
          "description": "API version for the callback URL. Start with 1.",
          "format": "int32"
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the workforce integration."
        },
        "eligibilityFilteringEnabledEntities": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.eligibilityFilteringEnabledEntities"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Support to view eligibility-filtered results. The possible values are: none, swapRequest, offerShiftRequest, unknownFutureValue, timeOffReason. Use the Prefer: include-unknown-enum-members request header to get the following members in this evolvable enum: timeOffReason."
        },
        "encryption": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.workforceIntegrationEncryption"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The workforce integration encryption resource."
        },
        "isActive": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Indicates whether this workforce integration is currently active and available."
        },
        "supportedEntities": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.workforceIntegrationSupportedEntities"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The Shifts entities supported for synchronous change notifications. Shifts call back to the provided URL when client changes occur to the entities specified in this property. By default, no entities are supported for change notifications. The possible values are: none, shift, swapRequest, userShiftPreferences, openShift, openShiftRequest, offerShiftRequest, unknownFutureValue, timeCard, timeOffReason, timeOff, timeOffRequest. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: timeCard , timeOffReason , timeOff , timeOffRequest."
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "description": "Workforce Integration URL for callbacks from the Shifts service."
        },
        "@odata.type": {
          "type": "string",
          "default": "#microsoft.graph.workforceIntegration"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.workforceIntegration",
  "$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.eligibilityFilteringEnabledEntities": {
      "title": "eligibilityFilteringEnabledEntities",
      "enum": [
        "none",
        "swapRequest",
        "offerShiftRequest",
        "unknownFutureValue",
        "timeOffReason"
      ],
      "type": "string",
      "x-ms-enum-flags": {
        "isFlags": true
      }
    },
    "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.workforceIntegrationEncryption": {
      "title": "workforceIntegrationEncryption",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "protocol": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.workforceIntegrationEncryptionProtocol"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The possible values are: sharedSecret, unknownFutureValue."
        },
        "secret": {
          "type": [
            "string",
            "null"
          ],
          "description": "Encryption shared secret."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.workforceIntegrationEncryptionProtocol": {
      "title": "workforceIntegrationEncryptionProtocol",
      "enum": [
        "sharedSecret",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.workforceIntegrationSupportedEntities": {
      "title": "workforceIntegrationSupportedEntities",
      "enum": [
        "none",
        "shift",
        "swapRequest",
        "userShiftPreferences",
        "openShift",
        "openShiftRequest",
        "offerShiftRequest",
        "unknownFutureValue",
        "timeCard",
        "timeOffReason",
        "timeOff",
        "timeOffRequest"
      ],
      "type": "string",
      "x-ms-enum-flags": {
        "isFlags": true
      }
    }
  }
}