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

# archivePackageGroup

> Archiving a package group



**mutation** `archivePackageGroup(input: ArchivePackageGroup!): PackageGroup!`

## Arguments

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

The input type for archiving a package group

## Returns

`PackageGroup!`

**`addons`**: `[Addon!]`

**Arguments:**

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

---

**`createdAt`**: `DateTime!`

Timestamp of when the record was created

---

**`description`**: `String`

The description of the package group

---

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

The display name of the package group

---

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

The unique identifier for the environment

---

**`isLatest`**: `Boolean!`

Indicates if this is the latest version of the package group

---

**`packageGroupId`**: `String!`

The id of the package group

---

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

---

**`productId`**: `String`

The id of the related product

---

**`status`**: `PackageGroupStatus!`

The status of the package group (draft, published, archived)

---

**`updatedAt`**: `DateTime!`

Timestamp of when the record was last updated

---

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

The version number of the package group

## Examples

```graphql Mutation
mutation ArchivePackageGroup($input: ArchivePackageGroup!) {
  archivePackageGroup(input: $input) {
    addons {
      additionalMetaData
      billingId
      billingLinkUrl
      createdAt
      dependencies {
        __typename
      }
      description
    }
    createdAt
    description
    displayName
    environmentId
    isLatest
  }
}
```

```json Variables
{
  "input": {
    "environmentId": "string",
    "packageGroupId": "string"
  }
}
```

```json Response
{
  "data": {
    "archivePackageGroup": {
      "addons": [
        {
          "additionalMetaData": "value",
          "billingId": "string",
          "billingLinkUrl": "string",
          "createdAt": "value",
          "dependencies": [
            {
              "__typename": "Addon"
            }
          ],
          "description": "string"
        }
      ],
      "createdAt": "value",
      "description": "string",
      "displayName": "string",
      "environmentId": "value",
      "isLatest": true
    }
  }
}
```


## Related topics

- [ArchivePackageGroup](https://docs.stigg.io/graphql-reference/types/ArchivePackageGroup.md)
- [Archive an addon](https://docs.stigg.io/api-reference/addons/archive-an-addon.md)
- [Archive entities](https://docs.stigg.io/api-reference/governance-entities/archive-entities.md)
- [Archive plan](https://docs.stigg.io/api-reference/plans/archive-plan.md)


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