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

# unarchiveOneProduct

> Unarchive a product



**mutation** `unarchiveOneProduct(input: UnArchiveProductInput!): Product!`

## Arguments

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

Input for unarchiving a product

## Returns

`Product!`

**`additionalMetaData`**: `JSON`

Additional metadata for the product

---

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

Addons associated with the product

---

**`autoCancellationRules`**: `[AutoCancellationRule!]!`

Method to get the auto cancellation rules for the product

---

**`awsMarketplaceProductCode`**: `String`

AWS Marketplace product code

---

**`awsMarketplaceProductId`**: `String`

AWS Marketplace product ID

---

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

Timestamp of when the record was created

---

**`description`**: `String`

Description of the product

---

**`displayName`**: `String`

Display name of the product

---

**`downgradePlan`**: `Plan`

Plan to downgrade to when a subscription ends or is cancelled

---

**`environment`**: `Environment`

---

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

The unique identifier for the environment

---

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

Whether the product has subscriptions

---

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

Unique identifier for the entity

---

**`isDefaultProduct`**: `Boolean!`

Indicates if this is the default product for the account

---

**`multipleSubscriptions`**: `Boolean!`

Indicates if multiple subscriptions to this product are allowed

---

**`plans`**: `[Plan!]!`

Plans associated with the product

---

**`productSettings`**: `ProductSettings!`

Settings for the product

---

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

The unique identifier for the entity

---

**`status`**: `ProductStatus!`

The status of the product

---

**`subscriptionStartPlan`**: `Plan`

---

**`subscriptionUpdateUsageResetCutoffRule`**: `SubscriptionUpdateUsageResetCutoffRule!`

Method to get the rule for resetting usage cutoff on subscription update

---

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

Timestamp of when the record was last updated

## Examples

```graphql Mutation
mutation UnarchiveOneProduct($input: UnArchiveProductInput!) {
  unarchiveOneProduct(input: $input) {
    additionalMetaData
    addons {
      additionalMetaData
      billingId
      billingLinkUrl
      createdAt
      dependencies {
        __typename
      }
      description
    }
    autoCancellationRules {
      sourcePlan {
        additionalMetaData
        awsMarketplacePlanDimension
        basePlan {
          __typename
        }
        billingId
        billingLinkUrl
        compatibleAddons {
          __typename
        }
      }
      targetPlan {
        additionalMetaData
        awsMarketplacePlanDimension
        basePlan {
          __typename
        }
        billingId
        billingLinkUrl
        compatibleAddons {
          __typename
        }
      }
    }
    awsMarketplaceProductCode
    awsMarketplaceProductId
    createdAt
  }
}
```

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

```json Response
{
  "data": {
    "unarchiveOneProduct": {
      "additionalMetaData": "value",
      "addons": [
        {
          "additionalMetaData": "value",
          "billingId": "string",
          "billingLinkUrl": "string",
          "createdAt": "value",
          "dependencies": [
            {
              "__typename": "Addon"
            }
          ],
          "description": "string"
        }
      ],
      "autoCancellationRules": [
        {
          "sourcePlan": {
            "additionalMetaData": "value",
            "awsMarketplacePlanDimension": "string",
            "basePlan": {
              "__typename": "Plan"
            },
            "billingId": "string",
            "billingLinkUrl": "string",
            "compatibleAddons": [
              {
                "__typename": "Addon"
              }
            ]
          },
          "targetPlan": {
            "additionalMetaData": "value",
            "awsMarketplacePlanDimension": "string",
            "basePlan": {
              "__typename": "Plan"
            },
            "billingId": "string",
            "billingLinkUrl": "string",
            "compatibleAddons": [
              {
                "__typename": "Addon"
              }
            ]
          }
        }
      ],
      "awsMarketplaceProductCode": "string",
      "awsMarketplaceProductId": "string",
      "createdAt": "value"
    }
  }
}
```


## Related topics

- [Go SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/go.md)
- [Unarchive product](https://docs.stigg.io/api-reference/products/unarchive-product.md)
- [createOneProduct](https://docs.stigg.io/graphql-reference/mutations/createOneProduct.md)
- [archiveOneProduct](https://docs.stigg.io/graphql-reference/mutations/archiveOneProduct.md)
- [updateOneProduct](https://docs.stigg.io/graphql-reference/mutations/updateOneProduct.md)


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