{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/acceldata/json-schema/acceldata-create-user-group-request-schema.json",
  "title": "CreateUserGroupRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/acceldata-group-management-api-openapi.yml#/components/schemas/CreateUserGroupRequest",
  "type": "object",
  "required": [
    "domainRoleMappings",
    "members",
    "name",
    "roles"
  ],
  "properties": {
    "attributes": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "domainRoleMappings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EntityDomainRoleMapping"
      }
    },
    "members": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "name": {
      "type": "string"
    },
    "roles": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    }
  },
  "$defs": {
    "EntityDomainRoleMapping": {
      "type": "object",
      "title": "EntityDomainRoleMapping",
      "required": [
        "domainId",
        "entityType",
        "roleId",
        "roleType"
      ],
      "properties": {
        "domainId": {
          "type": "integer"
        },
        "entityId": {
          "type": [
            "string",
            "null"
          ]
        },
        "entityType": {
          "type": "string",
          "enum": [
            "USER",
            "USER_GROUP"
          ]
        },
        "id": {
          "type": "integer"
        },
        "roleId": {
          "type": "integer"
        },
        "roleType": {
          "type": "string",
          "enum": [
            "FEATURE_ROLE",
            "RESOURCE_ROLE"
          ]
        }
      }
    }
  }
}