{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/monacloud/json-schema/monacloud-subscription-update-request-schema.json",
  "title": "SubscriptionUpdateRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/monacloud-billing-api-openapi.yml#/components/schemas/SubscriptionUpdateRequest",
  "properties": {
    "plan_code": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64,
          "minLength": 2
        },
        {
          "type": "null"
        }
      ],
      "title": "Plan Code"
    },
    "period": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "month",
            "year"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Period"
    },
    "auto_renew": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Auto Renew"
    },
    "cancel_action": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "hourly",
            "stop"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Cancel Action"
    }
  },
  "type": "object"
}