{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/mongodb/main/json-schema/mongodb-pinned-namespaces-schema.json",
  "title": "PinnedNamespaces",
  "description": "Pinned namespaces view for cluster.",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mongodb-collection-level-metrics-api-openapi.yml#/components/schemas/PinnedNamespaces",
  "properties": {
    "clusterId": {
      "description": "Unique 24-hexadecimal digit string that identifies the request cluster.",
      "pattern": "^([a-f0-9]{24})$",
      "readOnly": true,
      "type": "string"
    },
    "groupId": {
      "description": "Unique 24-hexadecimal digit string that identifies the request project.",
      "pattern": "^([a-f0-9]{24})$",
      "readOnly": true,
      "type": "string"
    },
    "pinnedNamespaces": {
      "description": "List of all pinned namespaces.",
      "items": {
        "description": "A single pinned namespace.",
        "readOnly": true,
        "type": "string"
      },
      "readOnly": true,
      "type": "array"
    }
  },
  "required": [
    "pinnedNamespaces"
  ],
  "type": "object"
}