{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-api-create-group-schema.json",
  "title": "ApiCreateGroup",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-groups-api-openapi.yml#/components/schemas/ApiCreateGroup",
  "type": "object",
  "properties": {
    "members": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ApiMember"
      },
      "uniqueItems": true
    },
    "name": {
      "type": "string"
    },
    "permissionSet": {
      "$ref": "#/$defs/ApiPermissionSet"
    }
  },
  "required": [
    "members",
    "name",
    "permissionSet"
  ],
  "$defs": {
    "ApiMember": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "userId": {
          "type": "string"
        }
      },
      "required": [
        "userId"
      ]
    },
    "ApiPermissionSet": {
      "type": "object",
      "properties": {
        "actionFilter": {
          "$ref": "#/$defs/ScopeBinding"
        },
        "applicationIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ScopeBinding"
          },
          "maxItems": 1024,
          "minItems": 0,
          "uniqueItems": true
        },
        "businessPerspectiveIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ScopeBinding"
          },
          "maxItems": 1024,
          "minItems": 0,
          "uniqueItems": true
        },
        "infraDfqFilter": {
          "$ref": "#/$defs/ScopeBinding"
        },
        "kubernetesClusterUUIDs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ScopeBinding"
          },
          "maxItems": 1024,
          "minItems": 0,
          "uniqueItems": true
        },
        "kubernetesNamespaceUIDs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ScopeBinding"
          },
          "maxItems": 1024,
          "minItems": 0,
          "uniqueItems": true
        },
        "mobileAppIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ScopeBinding"
          },
          "maxItems": 1024,
          "minItems": 0,
          "uniqueItems": true
        },
        "permissions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "maxItems": 1024,
          "minItems": 0,
          "uniqueItems": true
        },
        "restrictedApplicationFilter": {
          "$ref": "#/$defs/ApiRestrictedApplicationFilter"
        },
        "sloIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ScopeBinding"
          },
          "maxItems": 1024,
          "minItems": 0,
          "uniqueItems": true
        },
        "syntheticCredentialKeys": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ScopeBinding"
          },
          "maxItems": 1024,
          "minItems": 0,
          "uniqueItems": true
        },
        "syntheticTestIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ScopeBinding"
          },
          "maxItems": 1024,
          "minItems": 0,
          "uniqueItems": true
        },
        "websiteIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ScopeBinding"
          },
          "maxItems": 1024,
          "minItems": 0,
          "uniqueItems": true
        }
      },
      "required": [
        "applicationIds",
        "businessPerspectiveIds",
        "infraDfqFilter",
        "kubernetesClusterUUIDs",
        "kubernetesNamespaceUIDs",
        "mobileAppIds",
        "permissions",
        "sloIds",
        "syntheticCredentialKeys",
        "syntheticTestIds",
        "websiteIds"
      ]
    },
    "ApiRestrictedApplicationFilter": {
      "type": "object",
      "properties": {
        "label": {
          "type": "string"
        },
        "restrictingApplicationId": {
          "type": "string"
        },
        "scope": {
          "type": "string",
          "enum": [
            "INCLUDE_NO_DOWNSTREAM",
            "INCLUDE_IMMEDIATE_DOWNSTREAM_DATABASE_AND_MESSAGING",
            "INCLUDE_ALL_DOWNSTREAM"
          ]
        },
        "tagFilterExpression": {
          "$ref": "#/$defs/TagFilterExpressionElement"
        }
      }
    },
    "ScopeBinding": {
      "type": "object",
      "properties": {
        "scopeId": {
          "type": "string",
          "maxLength": 64,
          "minLength": 0
        },
        "scopeRoleId": {
          "type": "string",
          "maxLength": 64,
          "minLength": 0
        }
      }
    },
    "TagFilterExpressionElement": {
      "type": "object",
      "description": "Boolean expression of tag filters to define the scope of relevant calls.",
      "properties": {
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ]
    }
  }
}