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

# createOfferDraft

> Create offer draft - creates new version inheriting all fields from existing offer



**mutation** `createOfferDraft(input: CreateOfferDraftInput!): Offer!`

## Arguments

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

Create offer draft input - creates new version inheriting all fields from existing offer

## Returns

`Offer!`

**`accountId`**: `String!`

The unique identifier for the account

---

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

Creation timestamp

---

**`description`**: `String`

Offer description

---

**`draftDetails`**: `OfferDraftDetails`

Draft details if this offer has a draft version

---

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

The unique identifier for the environment

---

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

Unique identifier for the entity

---

**`isDefault`**: `Boolean!`

Whether this is the default offer

---

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

Whether this is the latest version

---

**`metadata`**: `JSON`

Metadata associated with the entity

---

**`name`**: `String!`

Offer name

---

**`offerId`**: `String!`

The unique identifier for the entity

---

**`status`**: `OfferStatus!`

Offer status

---

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

Last update timestamp

---

**`version`**: `Int!`

Offer version

## Examples

```graphql Mutation
mutation CreateOfferDraft($input: CreateOfferDraftInput!) {
  createOfferDraft(input: $input) {
    accountId
    createdAt
    description
    draftDetails {
      version
    }
    environmentId
    id
  }
}
```

```json Variables
{
  "input": {
    "environmentId": "value",
    "offerId": "string"
  }
}
```

```json Response
{
  "data": {
    "createOfferDraft": {
      "accountId": "string",
      "createdAt": "value",
      "description": "string",
      "draftDetails": {
        "version": 1
      },
      "environmentId": "value",
      "id": "value"
    }
  }
}
```


## Related topics

- [Go SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/go.md)
- [CreateOfferDraftInput](https://docs.stigg.io/graphql-reference/types/CreateOfferDraftInput.md)
- [Create addon draft](https://docs.stigg.io/api-reference/addons/create-addon-draft.md)
- [Create plan draft](https://docs.stigg.io/api-reference/plans/create-plan-draft.md)
- [createOffer](https://docs.stigg.io/graphql-reference/mutations/createOffer.md)


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