{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-browser-shared-cookie-schema.json",
  "title": "microsoft.graph.browserSharedCookie",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-graph-admin-edge-api-openapi.yml#/components/schemas/microsoft.graph.browserSharedCookie",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "browserSharedCookie",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "comment": {
          "type": "string",
          "description": "The comment for the shared cookie."
        },
        "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",
          "description": "The date and time when the shared cookie was created.",
          "format": "date-time"
        },
        "deletedDateTime": {
          "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 date and time when the shared cookie was deleted.",
          "format": "date-time"
        },
        "displayName": {
          "type": "string",
          "description": "The name of the cookie."
        },
        "history": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.browserSharedCookieHistory"
          },
          "description": "The history of modifications applied to the cookie."
        },
        "hostOnly": {
          "type": "boolean",
          "description": "Controls whether a cookie is a host-only or domain cookie."
        },
        "hostOrDomain": {
          "type": "string",
          "description": "The URL of the cookie."
        },
        "lastModifiedBy": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.identitySet"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The user who last modified the cookie."
        },
        "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",
          "description": "The date and time when the cookie was last modified.",
          "format": "date-time"
        },
        "path": {
          "type": "string",
          "description": "The path of the cookie."
        },
        "sourceEnvironment": {
          "$ref": "#/$defs/microsoft.graph.browserSharedCookieSourceEnvironment"
        },
        "status": {
          "$ref": "#/$defs/microsoft.graph.browserSharedCookieStatus"
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.browserSharedCookie",
  "$defs": {
    "microsoft.graph.browserSharedCookieHistory": {
      "title": "browserSharedCookieHistory",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "comment": {
          "type": [
            "string",
            "null"
          ],
          "description": "The comment for the shared cookie."
        },
        "displayName": {
          "type": "string",
          "description": "The name of the cookie."
        },
        "hostOnly": {
          "type": "boolean",
          "description": "Controls whether a cookie is a host-only or domain cookie."
        },
        "hostOrDomain": {
          "type": [
            "string",
            "null"
          ],
          "description": "The URL of the cookie."
        },
        "lastModifiedBy": {
          "$ref": "#/$defs/microsoft.graph.identitySet"
        },
        "path": {
          "type": [
            "string",
            "null"
          ],
          "description": "The path of the cookie."
        },
        "publishedDateTime": {
          "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",
          "description": "The date and time when the cookie was last published.",
          "format": "date-time"
        },
        "sourceEnvironment": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.browserSharedCookieSourceEnvironment"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Specifies how the cookies are shared between Microsoft Edge and Internet Explorer. The possible values are: microsoftEdge, internetExplorer11, both, unknownFutureValue."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.browserSharedCookieSourceEnvironment": {
      "title": "browserSharedCookieSourceEnvironment",
      "enum": [
        "microsoftEdge",
        "internetExplorer11",
        "both",
        "unknownFutureValue"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "browserSharedCookieSourceEnvironment",
        "modelAsString": false,
        "values": [
          {
            "value": "microsoftEdge",
            "description": "Share session cookies from Microsoft Edge to Internet Explorer.",
            "name": "microsoftEdge"
          },
          {
            "value": "internetExplorer11",
            "description": "Share session cookies from Internet Explorer to Microsoft Edge.",
            "name": "internetExplorer11"
          },
          {
            "value": "both",
            "description": "Share session cookies to and from Microsoft Edge and Internet Explorer.",
            "name": "both"
          },
          {
            "value": "unknownFutureValue",
            "description": "Placeholder for evolvable enum, but this enum is never returned to the caller, so it shouldn't be necessary.",
            "name": "unknownFutureValue"
          }
        ]
      }
    },
    "microsoft.graph.browserSharedCookieStatus": {
      "title": "browserSharedCookieStatus",
      "enum": [
        "published",
        "pendingAdd",
        "pendingEdit",
        "pendingDelete",
        "unknownFutureValue"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "browserSharedCookieStatus",
        "modelAsString": false,
        "values": [
          {
            "value": "published",
            "description": "A sharedcookie that has been published",
            "name": "published"
          },
          {
            "value": "pendingAdd",
            "description": "A sharedcookie that has been added pending publish",
            "name": "pendingAdd"
          },
          {
            "value": "pendingEdit",
            "description": "A sharedcookie that has been edited pending publish",
            "name": "pendingEdit"
          },
          {
            "value": "pendingDelete",
            "description": "A sharedcookie that has been deleted pending publish",
            "name": "pendingDelete"
          },
          {
            "value": "unknownFutureValue",
            "description": "Placeholder for evolvable enum, but this enum is never returned to the caller, so it shouldn't be necessary.",
            "name": "unknownFutureValue"
          }
        ]
      }
    },
    "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"
        }
      }
    }
  }
}