{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chnlsync-com/json-schema/chnlsync-com-service-line-update-schema.json",
  "title": "ServiceLineUpdate",
  "description": "Partially update a service line; only the fields sent are changed.",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chnlsync-com-openapi.yml#/components/schemas/ServiceLineUpdate",
  "properties": {
    "site_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Site Id"
    },
    "provider": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Provider"
    },
    "account_number": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 80
        },
        {
          "type": "null"
        }
      ],
      "title": "Account Number"
    },
    "circuit_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 80
        },
        {
          "type": "null"
        }
      ],
      "title": "Circuit Id"
    },
    "description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 300
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "quantity": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 100000.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Quantity"
    },
    "mrc": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 10000000.0,
          "minimum": 0.0
        },
        {
          "type": "string",
          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Mrc"
    },
    "term_months": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 120.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Term Months"
    },
    "term_start": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Term Start"
    },
    "term_end": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Term End"
    },
    "notice_days": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 365.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Notice Days"
    },
    "auto_renew": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Auto Renew"
    },
    "service_type": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "connectivity",
            "ucaas",
            "ccaas",
            "cpaas",
            "cx_ai",
            "sase",
            "security",
            "cloud",
            "colocation",
            "mobility",
            "pots",
            "other"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Service Type"
    },
    "status": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "active",
            "pending_install",
            "cancelling",
            "disconnected"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Status"
    }
  },
  "additionalProperties": false,
  "type": "object"
}