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

# createAddonDraft

> Create a draft addon from an addon by id



**mutation** `createAddonDraft(id: UUID!): Addon!`

## Arguments

**`id`**: `UUID!` (required)

Unique identifier for the entity

## 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 CreateAddonDraft($id: UUID!) {
  createAddonDraft(id: $id) {
    additionalMetaData
    billingId
    billingLinkUrl
    createdAt
    dependencies {
      __typename
    }
    description
  }
}
```

```json Variables
{
  "id": "value"
}
```

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


## Related topics

- [Create addon draft](https://docs.stigg.io/api-reference/addons/create-addon-draft.md)
- [createEmptyAddonDraft](https://docs.stigg.io/graphql-reference/mutations/createEmptyAddonDraft.md)
- [Create an addon](https://docs.stigg.io/api-reference/addons/create-an-addon.md)
- [Create addon entitlements](https://docs.stigg.io/api-reference/addon-entitlements/create-addon-entitlements.md)
- [Create plan draft](https://docs.stigg.io/api-reference/plans/create-plan-draft.md)


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