{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/UpdateCloudflareCredentialDTO",
  "title": "UpdateCloudflareCredentialDTO",
  "type": "object",
  "properties": {
    "accountId": {
      "type": "string",
      "description": "Cloudflare Account Id."
    },
    "apiKey": {
      "type": "string",
      "description": "Cloudflare API Key / Token."
    },
    "accountEmail": {
      "type": "string",
      "description": "Cloudflare Account Email."
    },
    "fallbackIndex": {
      "type": "number",
      "description": "This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order.",
      "minimum": 1
    },
    "name": {
      "type": "string",
      "description": "This is the name of credential. This is just for your reference.",
      "minLength": 1,
      "maxLength": 40
    },
    "bucketPlan": {
      "description": "This is the bucket plan that can be provided to store call artifacts in R2",
      "allOf": [
        {
          "$ref": "#/components/schemas/CloudflareR2BucketPlan"
        }
      ]
    }
  }
}