{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/componecat-ai/json-schema/componecat-ai-create-kind-relationship-assignment-request-schema.json",
  "title": "CreateKindRelationshipAssignmentRequest",
  "description": "Create kind–relationship assignment request body.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/componecat-ai-kind-relationship-assignments-api-openapi.yml#/components/schemas/CreateKindRelationshipAssignmentRequest",
  "required": [
    "kindId",
    "relationshipKindId"
  ],
  "type": "object",
  "properties": {
    "kindId": {
      "type": "string",
      "format": "uuid"
    },
    "relationshipKindId": {
      "type": "string",
      "format": "uuid"
    },
    "allowAsSource": {
      "type": "boolean",
      "default": true
    },
    "allowAsTarget": {
      "type": "boolean",
      "default": true
    },
    "displayOrder": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "format": "int32",
      "default": 0
    }
  }
}