{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/c1k-me/json-schema/c1k-me-link-patch-schema.json",
  "title": "LinkPatch",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/c1k-me-openapi.yml#/components/schemas/LinkPatch",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "destination_url": {
      "type": "string",
      "maxLength": 2048
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 120
    },
    "tags": {
      "type": "array",
      "maxItems": 5,
      "items": {
        "type": "string"
      }
    },
    "campaign": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 64
    },
    "utm": {
      "oneOf": [
        {
          "$ref": "#/$defs/Utm"
        },
        {
          "type": "null"
        }
      ]
    },
    "starts_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "password": {
      "type": [
        "string",
        "null"
      ]
    },
    "forward_query_keys": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "state": {
      "type": "string",
      "enum": [
        "active",
        "paused",
        "archived"
      ]
    }
  },
  "$defs": {
    "Utm": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "source": {
          "type": "string",
          "maxLength": 128
        },
        "medium": {
          "type": "string",
          "maxLength": 128
        },
        "campaign": {
          "type": "string",
          "maxLength": 128
        },
        "term": {
          "type": "string",
          "maxLength": 128
        },
        "content": {
          "type": "string",
          "maxLength": 128
        }
      }
    }
  }
}