{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/canopyservicing-com/json-schema/canopyservicing-com-create-collateral-association-request-schema.json",
  "title": "CreateCollateralAssociationRequest",
  "description": "Request schema for creating a collateral association.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canopyservicing-com-collaterals-api-openapi.yml#/components/schemas/CreateCollateralAssociationRequest",
  "properties": {
    "association_id": {
      "type": "string",
      "title": "Association Id",
      "description": "The ID of the loan/line of credit to associate with the collateral.",
      "hidden": false
    },
    "association_type": {
      "$ref": "#/$defs/AssociationType",
      "description": "The type of the association to create.",
      "hidden": false
    }
  },
  "type": "object",
  "required": [
    "association_id",
    "association_type"
  ],
  "$defs": {
    "AssociationType": {
      "type": "string",
      "enum": [
        "LOAN",
        "LINE_OF_CREDIT"
      ],
      "title": "AssociationType"
    }
  }
}