{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/divvy/json-schema/divvy-update-card-request-dto-schema.json",
  "title": "UpdateCardRequestDto",
  "description": "Update a virtual charge card (limit updated)",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/divvy-cards-api-openapi.yml#/components/schemas/UpdateCardRequestDto",
  "type": "object",
  "properties": {
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Card name"
    },
    "budgetId": {
      "type": [
        "string",
        "null"
      ],
      "description": "BILL-generated ID or UUID of the budget linked with the card"
    },
    "availableFunds": {
      "type": [
        "number",
        "null"
      ],
      "description": "Card spend limit for the current budget period"
    },
    "recurringLimit": {
      "type": [
        "number",
        "null"
      ],
      "description": "Card spend limit for all future budget periods"
    },
    "expirationDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "User-generated expiration date. The value is in the `yyyy-MM-dd` format. BILL automatically closes the card account on this date. To remove the card expiration date, set this field as `null`.\n\n**Note**: Use the `validThru` value in the response as the expiration date in a card payment. Do not use the `expirationDate` value for this operation.",
      "format": "date"
    },
    "shareBudgetFunds": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Set as `true` to share all the budget funds with the card. This option enables the card user to spend from unallocated budget funds when the allocation is empty."
    },
    "recurring": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Card policy for recurring budget periods.\n* `true`: Renew the card funds in the next budget period\n* `false`: Card is available only for the current budget period\n\nIf you do not set this field, the card will retain its current policy."
    }
  }
}