{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/twenty/json-schema/twenty-relation-metadata-input-schema.json",
  "title": "RelationMetadataInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/twenty-relations-api-openapi.yml#/components/schemas/RelationMetadataInput",
  "type": "object",
  "required": [
    "relationType",
    "fromObjectMetadataId",
    "toObjectMetadataId",
    "fromName",
    "fromLabel",
    "toName",
    "toLabel"
  ],
  "properties": {
    "relationType": {
      "type": "string",
      "enum": [
        "ONE_TO_MANY",
        "MANY_TO_ONE",
        "ONE_TO_ONE"
      ]
    },
    "fromObjectMetadataId": {
      "type": "string",
      "format": "uuid"
    },
    "toObjectMetadataId": {
      "type": "string",
      "format": "uuid"
    },
    "fromName": {
      "type": "string"
    },
    "fromLabel": {
      "type": "string"
    },
    "toName": {
      "type": "string"
    },
    "toLabel": {
      "type": "string"
    },
    "fromIcon": {
      "type": "string"
    },
    "toIcon": {
      "type": "string"
    }
  }
}