{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/acceldata/json-schema/acceldata-service-user-roles-request-schema.json",
  "title": "ServiceUserRolesRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/acceldata-service-users-api-openapi.yml#/components/schemas/ServiceUserRolesRequest",
  "type": "object",
  "required": [
    "clientId",
    "roles"
  ],
  "properties": {
    "clientId": {
      "type": "string"
    },
    "domainRoleMappings": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ServiceUserDomainRoleMappingRequest"
      }
    },
    "roles": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    }
  },
  "$defs": {
    "ServiceUserDomainRoleMappingRequest": {
      "type": "object",
      "title": "ServiceUserDomainRoleMappingRequest",
      "required": [
        "domainId",
        "roleId"
      ],
      "properties": {
        "domainId": {
          "type": "integer"
        },
        "roleId": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        }
      }
    }
  }
}