# Microsoft Defender Security.labels Root API

**Canonical:** https://apis.io/apis/microsoft-defender/microsoft-defender-security-labelsroot-api/  
**Provider:** Microsoft Defender — https://apis.io/providers/microsoft-defender/  
**Base URL:** https://graph.microsoft.com/v1.0

Microsoft Defender Security.labels Root API is one of 24 APIs that [Microsoft Defender](https://apis.io/providers/microsoft-defender/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 6 JSON Schema definitions. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, authentication docs, an API reference, release notes, and 6 JSON Schemas.

The security.labelsRoot API from Microsoft Defender — 32 operation(s) for security.labelsroot.

## Operations (60)

| Method | Path | Summary |
|---|---|---|
| GET | `/security/labels` | Get labels from security |
| PATCH | `/security/labels` | Update the navigation property labels in security |
| DELETE | `/security/labels` | Delete navigation property labels for security |
| GET | `/security/labels/authorities` | List authorityTemplates |
| POST | `/security/labels/authorities` | Create authorityTemplate |
| GET | `/security/labels/authorities/{authorityTemplate-id}` | Get authorityTemplate |
| PATCH | `/security/labels/authorities/{authorityTemplate-id}` | Update the navigation property authorities in security |
| DELETE | `/security/labels/authorities/{authorityTemplate-id}` | Delete authorityTemplate |
| GET | `/security/labels/authorities/$count` | Get the number of the resource |
| GET | `/security/labels/categories` | List categoryTemplates |
| POST | `/security/labels/categories` | Create categoryTemplate |
| GET | `/security/labels/categories/{categoryTemplate-id}` | Get categoryTemplate |
| PATCH | `/security/labels/categories/{categoryTemplate-id}` | Update the navigation property categories in security |
| DELETE | `/security/labels/categories/{categoryTemplate-id}` | Delete categoryTemplate |
| GET | `/security/labels/categories/{categoryTemplate-id}/subcategories` | List subcategories |
| POST | `/security/labels/categories/{categoryTemplate-id}/subcategories` | Create subcategoryTemplate |
| GET | `/security/labels/categories/{categoryTemplate-id}/subcategories/{subcategoryTemplate-id}` | Get subcategoryTemplate |
| PATCH | `/security/labels/categories/{categoryTemplate-id}/subcategories/{subcategoryTemplate-id}` | Update the navigation property subcategories in security |
| DELETE | `/security/labels/categories/{categoryTemplate-id}/subcategories/{subcategoryTemplate-id}` | Delete navigation property subcategories for security |
| GET | `/security/labels/categories/{categoryTemplate-id}/subcategories/$count` | Get the number of the resource |
| GET | `/security/labels/categories/$count` | Get the number of the resource |
| GET | `/security/labels/citations` | List citationTemplates |
| POST | `/security/labels/citations` | Create citationTemplate |
| GET | `/security/labels/citations/{citationTemplate-id}` | Get citationTemplate |
| PATCH | `/security/labels/citations/{citationTemplate-id}` | Update the navigation property citations in security |
| DELETE | `/security/labels/citations/{citationTemplate-id}` | Delete citationTemplate |
| GET | `/security/labels/citations/$count` | Get the number of the resource |
| GET | `/security/labels/departments` | List departmentTemplates |
| POST | `/security/labels/departments` | Create departmentTemplate |
| GET | `/security/labels/departments/{departmentTemplate-id}` | Get departmentTemplate |
| PATCH | `/security/labels/departments/{departmentTemplate-id}` | Update the navigation property departments in security |
| DELETE | `/security/labels/departments/{departmentTemplate-id}` | Delete departmentTemplate |
| GET | `/security/labels/departments/$count` | Get the number of the resource |
| GET | `/security/labels/filePlanReferences` | List filePlanReferenceTemplates |
| POST | `/security/labels/filePlanReferences` | Create filePlanReferenceTemplate |
| GET | `/security/labels/filePlanReferences/{filePlanReferenceTemplate-id}` | Get filePlanReferenceTemplate |
| PATCH | `/security/labels/filePlanReferences/{filePlanReferenceTemplate-id}` | Update the navigation property filePlanReferences in security |
| DELETE | `/security/labels/filePlanReferences/{filePlanReferenceTemplate-id}` | Delete filePlanReferenceTemplate |
| GET | `/security/labels/filePlanReferences/$count` | Get the number of the resource |
| GET | `/security/labels/retentionLabels` | List retentionLabels |
| POST | `/security/labels/retentionLabels` | Create retentionLabel |
| GET | `/security/labels/retentionLabels/{retentionLabel-id}` | Get retentionLabel |
| PATCH | `/security/labels/retentionLabels/{retentionLabel-id}` | Update retentionLabel |
| DELETE | `/security/labels/retentionLabels/{retentionLabel-id}` | Delete retentionLabel |
| GET | `/security/labels/retentionLabels/{retentionLabel-id}/descriptors` | Get descriptors from security |
| PATCH | `/security/labels/retentionLabels/{retentionLabel-id}/descriptors` | Update the navigation property descriptors in security |
| DELETE | `/security/labels/retentionLabels/{retentionLabel-id}/descriptors` | Delete navigation property descriptors for security |
| GET | `/security/labels/retentionLabels/{retentionLabel-id}/descriptors/authorityTemplate` | Get authorityTemplate from security |
| GET | `/security/labels/retentionLabels/{retentionLabel-id}/descriptors/categoryTemplate` | Get categoryTemplate from security |
| GET | `/security/labels/retentionLabels/{retentionLabel-id}/descriptors/citationTemplate` | Get citationTemplate from security |
| GET | `/security/labels/retentionLabels/{retentionLabel-id}/descriptors/departmentTemplate` | Get departmentTemplate from security |
| GET | `/security/labels/retentionLabels/{retentionLabel-id}/descriptors/filePlanReferenceTemplate` | Get filePlanReferenceTemplate from security |
| GET | `/security/labels/retentionLabels/{retentionLabel-id}/dispositionReviewStages` | Get dispositionReviewStages from security |
| POST | `/security/labels/retentionLabels/{retentionLabel-id}/dispositionReviewStages` | Create new navigation property to dispositionReviewStages for security |
| GET | `/security/labels/retentionLabels/{retentionLabel-id}/dispositionReviewStages/{dispositionReviewStage-stageNumber}` | Get dispositionReviewStages from security |
| PATCH | `/security/labels/retentionLabels/{retentionLabel-id}/dispositionReviewStages/{dispositionReviewStage-stageNumber}` | Update the navigation property dispositionReviewStages in security |
| DELETE | `/security/labels/retentionLabels/{retentionLabel-id}/dispositionReviewStages/{dispositionReviewStage-stageNumber}` | Delete navigation property dispositionReviewStages for security |
| GET | `/security/labels/retentionLabels/{retentionLabel-id}/dispositionReviewStages/$count` | Get the number of the resource |
| GET | `/security/labels/retentionLabels/{retentionLabel-id}/retentionEventType` | Get retentionEventType from security |
| GET | `/security/labels/retentionLabels/$count` | Get the number of the resource |

## Machine-readable artifacts (23)

- **OpenAPI** — https://artifacts.apis.io/microsoft-defender/openapi/microsoft-defender-security-labelsroot-api-openapi.yml
- **Documentation** — https://learn.microsoft.com/en-us/defender-endpoint/api/apis-intro
- **JSONLD** — https://artifacts.apis.io/microsoft-defender/json-ld/microsoft-defender-context.jsonld
- **Authentication** — https://learn.microsoft.com/en-us/defender-endpoint/api/exposed-apis-create-app-webapp
- **APIReference** — https://learn.microsoft.com/en-us/defender-endpoint/api/exposed-apis-list
- **ReleaseNotes** — https://learn.microsoft.com/en-us/defender-endpoint/api/api-release-notes
- **Management APIs** — https://learn.microsoft.com/en-us/defender-endpoint/api/management-apis
- **Alerts API** — https://learn.microsoft.com/en-us/defender-endpoint/api/get-alerts
- **Vulnerabilities API** — https://learn.microsoft.com/en-us/defender-endpoint/api/get-all-vulnerabilities
- **Security Recommendations API** — https://learn.microsoft.com/en-us/defender-endpoint/api/get-security-recommendations
- **Documentation** — https://learn.microsoft.com/en-us/graph/api/resources/security-api-overview
- **SDKs** — https://learn.microsoft.com/en-us/graph/sdks/sdks-overview
- **CodeExamples** — https://learn.microsoft.com/en-us/graph/api/resources/security-api-overview#common-use-cases
- **Documentation** — https://learn.microsoft.com/en-us/rest/api/defenderforcloud/
- **GettingStarted** — https://learn.microsoft.com/en-us/azure/defender-for-cloud/get-started
- **Pricing** — https://azure.microsoft.com/en-us/pricing/details/defender-for-cloud/
- **ReleaseNotes** — https://learn.microsoft.com/en-us/azure/defender-for-cloud/release-notes
- **JSONSchema** — https://artifacts.apis.io/microsoft-defender/json-schema/microsoft-defender-microsoft-graph-security-retention-label-schema.json
- **JSONSchema** — https://artifacts.apis.io/microsoft-defender/json-schema/microsoft-defender-microsoft-graph-security-file-plan-descriptor-schema.json
- **JSONSchema** — https://artifacts.apis.io/microsoft-defender/json-schema/microsoft-defender-microsoft-graph-security-labels-root-schema.json
- **JSONSchema** — https://artifacts.apis.io/microsoft-defender/json-schema/microsoft-defender-microsoft-graph-security-retention-event-type-schema.json
- **JSONSchema** — https://artifacts.apis.io/microsoft-defender/json-schema/microsoft-defender-microsoft-graph-security-disposition-review-stage-schema.json
- **JSONSchema** — https://artifacts.apis.io/microsoft-defender/json-schema/microsoft-defender-microsoft-graph-security-citation-template-schema.json

## Other Microsoft Defender APIs (12)

- [Microsoft Defender for Cloud Apps API](https://apis.io/apis/microsoft-defender/microsoft-defender-for-cloud-apps-api/)
- [Microsoft Defender Threat Intelligence API](https://apis.io/apis/microsoft-defender/microsoft-defender-threat-intelligence-api/)
- [Microsoft Defender for Office 365 API](https://apis.io/apis/microsoft-defender/microsoft-defender-for-office-365-api/)
- [Microsoft Defender XDR API](https://apis.io/apis/microsoft-defender/microsoft-defender-xdr-api/)
- [Microsoft Defender for Identity API](https://apis.io/apis/microsoft-defender/microsoft-defender-for-identity-api/)
- [Microsoft Defender Reports.security Reports Root API](https://apis.io/apis/microsoft-defender/microsoft-defender-reports-securityreportsroot-api/)
- [Microsoft Defender Security.alert API](https://apis.io/apis/microsoft-defender/microsoft-defender-security-alert-api/)
- [Microsoft Defender Security.attack Simulation Root API](https://apis.io/apis/microsoft-defender/microsoft-defender-security-attacksimulationroot-api/)
- [Microsoft Defender Security.audit Core Root API](https://apis.io/apis/microsoft-defender/microsoft-defender-security-auditcoreroot-api/)
- [Microsoft Defender Security.cases Root API](https://apis.io/apis/microsoft-defender/microsoft-defender-security-casesroot-api/)
- [Microsoft Defender Security.collaboration Root API](https://apis.io/apis/microsoft-defender/microsoft-defender-security-collaborationroot-api/)
- [Microsoft Defender Security.identity Container API](https://apis.io/apis/microsoft-defender/microsoft-defender-security-identitycontainer-api/)

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/microsoft-defender` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/microsoft-defender/microsoft-defender-security-labelsroot-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/microsoft-defender/.
