{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ahasend/refs/heads/main/json-schema/openapi-v2-update-account-request-schema.json",
  "title": "UpdateAccountRequest",
  "description": "UpdateAccountRequest schema from AhaSend API",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 255,
      "description": "Account name",
      "example": "Example Name"
    },
    "website": {
      "type": "string",
      "format": "uri",
      "description": "Account website URL",
      "example": "https://example.com"
    },
    "about": {
      "type": "string",
      "description": "Account description (used for account verification)",
      "example": "example_value"
    },
    "track_opens": {
      "type": "boolean",
      "description": "Default open tracking setting",
      "example": true
    },
    "track_clicks": {
      "type": "boolean",
      "description": "Default click tracking setting",
      "example": true
    },
    "reject_bad_recipients": {
      "type": "boolean",
      "description": "Whether to reject bad recipients",
      "example": true
    },
    "reject_mistyped_recipients": {
      "type": "boolean",
      "description": "Whether to reject mistyped recipients",
      "example": true
    },
    "message_metadata_retention": {
      "type": "integer",
      "minimum": 1,
      "maximum": 30,
      "description": "Default message metadata retention in days",
      "example": 1
    },
    "message_data_retention": {
      "type": "integer",
      "minimum": 0,
      "maximum": 30,
      "description": "Default message data retention in days",
      "example": 1
    }
  },
  "example": {
    "name": "Updated Company Name",
    "website": "https://example.com",
    "track_opens": true
  }
}