{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-defender/json-schema/microsoft-defender-microsoft-graph-security-file-plan-descriptor-schema.json",
  "title": "microsoft.graph.security.filePlanDescriptor",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-defender-security-labelsroot-api-openapi.yml#/components/schemas/microsoft.graph.security.filePlanDescriptor",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "filePlanDescriptor",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "authority": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.security.filePlanAuthority"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Represents the file plan descriptor of type authority applied to a particular retention label."
        },
        "category": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.security.filePlanAppliedCategory"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ]
        },
        "citation": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.security.filePlanCitation"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Represents the file plan descriptor of type citation applied to a particular retention label."
        },
        "department": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.security.filePlanDepartment"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Represents the file plan descriptor of type department applied to a particular retention label."
        },
        "filePlanReference": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.security.filePlanReference"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Represents the file plan descriptor of type filePlanReference applied to a particular retention label."
        },
        "authorityTemplate": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.security.authorityTemplate"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Specifies the underlying authority that describes the type of content to be retained and its retention schedule.",
          "x-ms-navigationProperty": true
        },
        "categoryTemplate": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.security.categoryTemplate"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Specifies a group of similar types of content in a particular department.",
          "x-ms-navigationProperty": true
        },
        "citationTemplate": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.security.citationTemplate"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The specific rule or regulation created by a jurisdiction used to determine whether certain labels and content should be retained or deleted.",
          "x-ms-navigationProperty": true
        },
        "departmentTemplate": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.security.departmentTemplate"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Specifies the  department or business unit of an organization to which a label belongs.",
          "x-ms-navigationProperty": true
        },
        "filePlanReferenceTemplate": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.security.filePlanReferenceTemplate"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Specifies a unique alpha-numeric identifier for an organization’s retention schedule.",
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.security.filePlanDescriptor",
  "$defs": {
    "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.security.authorityTemplate": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.filePlanDescriptorTemplate"
        },
        {
          "title": "authorityTemplate",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.authorityTemplate"
    },
    "microsoft.graph.security.categoryTemplate": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.filePlanDescriptorTemplate"
        },
        {
          "title": "categoryTemplate",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "subcategories": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.security.subcategoryTemplate"
              },
              "description": "Represents all subcategories under a particular category.",
              "x-ms-navigationProperty": true
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.categoryTemplate"
    },
    "microsoft.graph.security.citationTemplate": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.filePlanDescriptorTemplate"
        },
        {
          "title": "citationTemplate",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "citationJurisdiction": {
              "type": [
                "string",
                "null"
              ],
              "description": "Represents the jurisdiction or agency that published the citation."
            },
            "citationUrl": {
              "type": [
                "string",
                "null"
              ],
              "description": "Represents the URL to the published citation."
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.citationTemplate"
    },
    "microsoft.graph.security.departmentTemplate": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.filePlanDescriptorTemplate"
        },
        {
          "title": "departmentTemplate",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.departmentTemplate"
    },
    "microsoft.graph.security.filePlanAppliedCategory": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.filePlanDescriptorBase"
        },
        {
          "title": "filePlanAppliedCategory",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "subcategory": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.security.filePlanSubcategory"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Represents the file plan descriptor for a subcategory under a specific category, which has been assigned to a particular retention label."
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.filePlanAppliedCategory"
    },
    "microsoft.graph.security.filePlanAuthority": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.filePlanDescriptorBase"
        },
        {
          "title": "filePlanAuthority",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.filePlanAuthority"
    },
    "microsoft.graph.security.filePlanCitation": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.filePlanDescriptorBase"
        },
        {
          "title": "filePlanCitation",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "citationJurisdiction": {
              "type": [
                "string",
                "null"
              ],
              "description": "Represents the jurisdiction or agency that published the filePlanCitation."
            },
            "citationUrl": {
              "type": [
                "string",
                "null"
              ],
              "description": "Represents the URL to the published filePlanCitation."
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.filePlanCitation"
    },
    "microsoft.graph.security.filePlanDepartment": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.filePlanDescriptorBase"
        },
        {
          "title": "filePlanDepartment",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.filePlanDepartment"
    },
    "microsoft.graph.security.filePlanDescriptorBase": {
      "title": "filePlanDescriptorBase",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique string that defines the name for the file plan descriptor associated with a particular retention label."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.filePlanDescriptorTemplate": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "filePlanDescriptorTemplate",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "createdBy": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.identitySet"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Represents the user who created the filePlanDescriptorTemplate column."
            },
            "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": "Represents the date and time in which the filePlanDescriptorTemplate is created.",
              "format": "date-time"
            },
            "displayName": {
              "type": [
                "string",
                "null"
              ],
              "description": "Unique string that defines a filePlanDescriptorTemplate name."
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ]
    },
    "microsoft.graph.security.filePlanReference": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.filePlanDescriptorBase"
        },
        {
          "title": "filePlanReference",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.filePlanReference"
    },
    "microsoft.graph.security.filePlanReferenceTemplate": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.filePlanDescriptorTemplate"
        },
        {
          "title": "filePlanReferenceTemplate",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.filePlanReferenceTemplate"
    },
    "microsoft.graph.security.filePlanSubcategory": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.filePlanDescriptorBase"
        },
        {
          "title": "filePlanSubcategory",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.filePlanSubcategory"
    },
    "microsoft.graph.security.subcategoryTemplate": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.filePlanDescriptorTemplate"
        },
        {
          "title": "subcategoryTemplate",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.subcategoryTemplate"
    }
  }
}