> ## 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.

# archiveAddon

> Archive an addon by refId



**mutation** `archiveAddon(input: AddonArchiveInput!): Addon!`

## Arguments

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

Archive addon input

## Returns

`Addon!`

**`additionalMetaData`**: `JSON`

The additional meta data of the package

---

**`billingId`**: `String`

The unique identifier for the entity in the billing provider

---

**`billingLinkUrl`**: `String`

The billing link url of the package

---

**`createdAt`**: `DateTime`

Timestamp of when the record was created

---

**`dependencies`**: `[Addon!]`

List of addons the addon is dependant on

---

**`description`**: `String`

The description of the package

---

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

The display name of the package

---

**`draftDetails`**: `PackageDraftDetails`

Draft details for the addon

---

**`draftSummary`**: `PackageDraftSummary`

Draft summary for the addon

---

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

List of entitlements for the addon

> Deprecated: Use 'packageEntitlements' field instead

---

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

---

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

The unique identifier for the environment

---

**`hasSubscriptions`**: `Boolean!`

Indicates if the addon has subscriptions

---

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

List of hidden widgets of the package

---

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

Unique identifier for the entity

---

**`isLatest`**: `Boolean`

Indicates if the package is the latest version

---

**`maxQuantity`**: `Float`

The maximum quantity of this addon that can be added to a subscription. Leave unset for no upper bound.

---

**`offer`**: `Offer`

---

**`overageBillingPeriod`**: `OverageBillingPeriod`

The overage billing period of the package

---

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

List of overage prices of the package

> 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 addon

---

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

**Arguments:**

- `filter`: `PriceFilter` = {} — Specify to filter the records returned.
- `sorting`: `[PriceSort!]` = [{direction: DESC, field: createdAt}] — Specify to sort results.

---

**`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!]`

List of sync states for the addon

---

**`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 ArchiveAddon($input: AddonArchiveInput!) {
  archiveAddon(input: $input) {
    additionalMetaData
    billingId
    billingLinkUrl
    createdAt
    dependencies {
      __typename
    }
    description
  }
}
```

```json Variables
{
  "input": {
    "refId": "string"
  }
}
```

```json Response
{
  "data": {
    "archiveAddon": {
      "additionalMetaData": "value",
      "billingId": "string",
      "billingLinkUrl": "string",
      "createdAt": "value",
      "dependencies": [
        {
          "__typename": "Addon"
        }
      ],
      "description": "string"
    }
  }
}
```


## Related topics

- [Go](https://docs.stigg.io/api-and-sdks/changelog/backend-rest/go.md)
- [Archive an addon](https://docs.stigg.io/api-reference/addons/archive-an-addon.md)
- [AddonArchiveInput](https://docs.stigg.io/graphql-reference/types/AddonArchiveInput.md)
- [AddonUnArchiveInput](https://docs.stigg.io/graphql-reference/types/AddonUnArchiveInput.md)
- [Archive product](https://docs.stigg.io/api-reference/products/archive-product.md)


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