{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/graphiant/main/json-schema/graphiant-v1-enterprises-patch-request-schema.json",
  "title": "v1EnterprisesPatchRequest",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/graphiant-enterprises-api-openapi.yml#/components/schemas/v1EnterprisesPatchRequest",
  "type": "object",
  "properties": {
    "adminEmail": {
      "type": "string"
    },
    "cloudProvider": {
      "type": "string"
    },
    "companyName": {
      "type": "string"
    },
    "creditLimit": {
      "type": "integer",
      "format": "int32"
    },
    "description": {
      "type": "string"
    },
    "enterpriseContract": {
      "$ref": "#/$defs/commonBillingContract"
    },
    "enterpriseId": {
      "type": "integer",
      "format": "int64",
      "description": " (required)"
    },
    "impersonationEnabled": {
      "type": "boolean"
    },
    "logo": {
      "type": "string"
    },
    "marketplaceId": {
      "type": "string"
    },
    "portalBanner": {
      "type": "string"
    },
    "proxyTenantId": {
      "type": "integer",
      "format": "int64"
    },
    "smallLogo": {
      "type": "string"
    },
    "tokenExpiry": {
      "$ref": "#/$defs/v1EnterprisesPatchRequestTokenExpiry"
    }
  },
  "additionalProperties": false,
  "required": [
    "enterpriseId"
  ],
  "$defs": {
    "commonBillingContract": {
      "type": "object",
      "properties": {
        "contractedCredits": {
          "type": "number",
          "format": "float",
          "description": "Number of credits agreed upon for the entirety of the current contract"
        },
        "expirationDate": {
          "$ref": "#/$defs/commonBillingTimePeriod"
        }
      },
      "additionalProperties": false
    },
    "commonBillingTimePeriod": {
      "type": "object",
      "properties": {
        "month": {
          "type": "integer",
          "format": "int32"
        },
        "year": {
          "type": "integer",
          "format": "int32"
        }
      },
      "additionalProperties": false
    },
    "v1EnterprisesPatchRequestTokenExpiry": {
      "type": "object",
      "properties": {
        "length": {
          "type": "integer",
          "format": "int32"
        },
        "timeUnit": {
          "type": "string"
        }
      },
      "additionalProperties": false
    }
  }
}