> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# setBasePlanOnPlan



**mutation** `setBasePlanOnPlan(input: SetBasePlanOnPlanInput!): Plan!`

## Arguments

**`input`**: `SetBasePlanOnPlanInput!` (required)

## Returns

`Plan!`

**`additionalMetaData`**: `JSON`

The additional meta data of the package

---

**`awsMarketplacePlanDimension`**: `String`

The AWS Marketplace plan dimension, if applicable

---

**`basePlan`**: `Plan`

---

**`billingId`**: `String`

The unique identifier for the entity in the billing provider

---

**`billingLinkUrl`**: `String`

The billing link url of the package

---

**`compatibleAddons`**: `[Addon!]`

---

**`compatiblePackageGroups`**: `[PlanCompatiblePackageGroups!]`

List of compatible package groups for the plan

---

**`createdAt`**: `DateTime`

Timestamp of when the record was created

---

**`defaultTrialConfig`**: `DefaultTrialConfig`

Default trial configuration for the plan. When set, subscriptions provisioned on this plan without explicit trial settings automatically start in trial for the configured duration; leave unset for no automatic trial.

---

**`description`**: `String`

The description of the package

---

**`displayName`**: `String!`

The display name of the package

---

**`draftDetails`**: `PackageDraftDetails`

Detailed information about the plan draft

---

**`draftSummary`**: `PackageDraftSummary`

Summary of the plan draft

---

**`entitlements`**: `[PackageEntitlement!]`

List of entitlements for the plan

> Deprecated: Use 'packageEntitlements' field instead

---

**`environment`**: `Environment!`

---

**`environmentId`**: `UUID!`

The unique identifier for the environment

---

**`hiddenFromWidgets`**: `[WidgetType!]`

List of hidden widgets of the package

---

**`id`**: `UUID!`

Unique identifier for the entity

---

**`inheritedEntitlements`**: `[PackageEntitlement!]`

List of inherited entitlements for the plan

> Deprecated: Use 'inheritedPackageEntitlements' field instead

**Arguments:**

- `includeOverridden`: `Boolean` = false — Indicates if inherited entitlements include overridden entitlements

---

**`inheritedPackageEntitlements`**: `[PackageEntitlementUnion!]`

List of inherited entitlements for the plan

**Arguments:**

- `includeOverridden`: `Boolean` = false — Indicates if inherited entitlements include overridden entitlements

---

**`isLatest`**: `Boolean`

Indicates if the package is the latest version

---

**`isParent`**: `Boolean!`

Indicates if the plan is a parent plan

---

**`minimumSpend`**: `[MinimumSpend!]`

Minimum spend configuration

---

**`offer`**: `Offer`

---

**`overageBillingPeriod`**: `OverageBillingPeriod`

The overage billing period of the package

---

**`overagePrices`**: `[Price!]`

List of overage prices for the plan

> Deprecated: Overages are now modeled as usage-based prices (Price with isOverage = true). They are excluded from `prices` and reported here, unioned with any legacy overage prices. This field is retained for backward compatibility.

---

**`packageEntitlements`**: `[PackageEntitlementUnion!]`

List of entitlements for the plan

---

**`prices`**: `[Price!]`

List of prices for the plan

---

**`pricingType`**: `PricingType`

The pricing type of the package

---

**`product`**: `Product!`

---

**`productId`**: `String`

The product id of the package

---

**`refId`**: `String!`

The unique identifier for the entity

---

**`status`**: `PackageStatus!`

The status of the package

---

**`syncStates`**: `[SyncState!]`

Sync states of the plan with external systems

---

**`type`**: `String!`

The type of the package

---

**`updatedAt`**: `DateTime`

Timestamp of when the record was last updated

---

**`versionNumber`**: `Int!`

The version number of the package

## Examples

```graphql Mutation
mutation SetBasePlanOnPlan($input: SetBasePlanOnPlanInput!) {
  setBasePlanOnPlan(input: $input) {
    additionalMetaData
    awsMarketplacePlanDimension
    basePlan {
      __typename
    }
    billingId
    billingLinkUrl
    compatibleAddons {
      additionalMetaData
      billingId
      billingLinkUrl
      createdAt
      dependencies {
        __typename
      }
      description
    }
  }
}
```

```json Variables
{
  "input": {
    "id": "value",
    "relationId": "value"
  }
}
```

```json Response
{
  "data": {
    "setBasePlanOnPlan": {
      "additionalMetaData": "value",
      "awsMarketplacePlanDimension": "string",
      "basePlan": {
        "__typename": "Plan"
      },
      "billingId": "string",
      "billingLinkUrl": "string",
      "compatibleAddons": [
        {
          "additionalMetaData": "value",
          "billingId": "string",
          "billingLinkUrl": "string",
          "createdAt": "value",
          "dependencies": [
            {
              "__typename": "Addon"
            }
          ],
          "description": "string"
        }
      ]
    }
  }
}
```


## Related topics

- [SetBasePlanOnPlanInput](https://docs.stigg.io/graphql-reference/types/SetBasePlanOnPlanInput.md)
- [removeBasePlanFromPlan](https://docs.stigg.io/graphql-reference/mutations/removeBasePlanFromPlan.md)
- [Launch a trial for a paid plan with unlimited usage-based features](https://docs.stigg.io/guides/i-want-to/offer-unlimited-usage-during-trial.md)
- [RemoveBasePlanFromPlanInput](https://docs.stigg.io/graphql-reference/types/RemoveBasePlanFromPlanInput.md)
- [BasePlanChange](https://docs.stigg.io/graphql-reference/types/BasePlanChange.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.