---
title: "Update a global plan definition"
method: PUT
path: "/pricing-plans/{planName}"
tags: ["PricingPlans"]
---

# Update a global plan definition

`PUT /pricing-plans/{planName}`

## Request

- Base URL: `https://api.xfa.tech`
- URL: `https://api.xfa.tech/pricing-plans/{planName}`
- Auth: HTTP bearer

Every change is stored by the billing service as a new plan revision with what changed and who changed it (the signed-in sys admin). Organizations only change when the plan is applied, and then only the fields the edits changed, where the organization still had the old plan value.

## Path parameters

- `planName` string, required

## Request body

- GlobalPlanDefinition
  - `planName` string, required
  - `paymentPlan` PaymentPlan, required
    - `Name` string
    - `NrOfPolicies` integer
    - `NrOfDiscovery` integer
    - `AwarenessVerificationFrequency` 'daily' | 'weekly' | 'monthly' | 'quarterly' | 'none' | 'on-demand' | 'limited': Frequency interval
    - `AwarenessRiskFrequency` 'daily' | 'weekly' | 'monthly' | 'quarterly' | 'none' | 'on-demand' | 'limited': Frequency interval
    - `NrOfEnforcement` integer
    - `CustomIntegration` boolean
    - `AdminSecurityReports` 'daily' | 'weekly' | 'monthly' | 'quarterly' | 'none' | 'on-demand' | 'limited': Frequency interval
    - `Cves` boolean
    - `Mfa` boolean
    - `AdvancedMfa` boolean
    - `ExportToGRC` boolean
    - `ApplyDuringTrial` boolean
  - `featureFlags` string[], required
  - `pricing` PlanPricing
    - `monthlyPricePerSeat` number, float, nullable
    - `yearlyPricePerSeat` number, float, nullable
    - `currency` 'EUR' | 'USD' | 'GBP': Supported currencies
    - `minimumSeats` integer
  - `revision` integer: Assigned by the billing service on every change and ignored on a PUT body. 0 for a plan not changed since revision tracking started (it counts as revision 1).

## Response `204`

Plan definition updated

## Other responses

- `400`: Invalid request body
- `409`: The plan was changed by someone else; reload it and try again

---

[API](https://skmtc.dev/xfa/apis/xfa-api.md) · [All operations](https://skmtc.dev/xfa/apis/xfa-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xfa/apis/xfa-api/revisions/1a1be0e8972b?raw)
