{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-opensearch/json-schema/amazon-opensearch-register-capability-request-schema.json",
  "title": "RegisterCapabilityRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-opensearch-capability-api-openapi.yml#/components/schemas/RegisterCapabilityRequest",
  "type": "object",
  "properties": {
    "applicationId": {
      "type": "string",
      "description": "The unique identifier of the OpenSearch UI application to register the capability for."
    },
    "capabilityName": {
      "type": "string",
      "description": "The name of the capability to register. Must be between 3 and 30 characters and contain only alphanumeric characters and hyphens. This identifies the type of capability being enabled for the application. For registering AI Assistant capability, use ai-capability"
    },
    "capabilityConfig": {
      "$ref": "#/$defs/CapabilityBaseRequestConfig"
    }
  },
  "required": [
    "applicationId",
    "capabilityName",
    "capabilityConfig"
  ],
  "$defs": {
    "AIConfig": {
      "type": "object",
      "properties": {}
    },
    "CapabilityBaseRequestConfig": {
      "type": "object",
      "properties": {
        "aiConfig": {
          "$ref": "#/$defs/AIConfig"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}