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

# updateOffer

> Update offer draft



**mutation** `updateOffer(input: UpdateOfferInput!): Offer!`

## Arguments

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

Update offer input

## 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 UpdateOffer($input: UpdateOfferInput!) {
  updateOffer(input: $input) {
    accountId
    createdAt
    description
    draftDetails {
      version
    }
    environmentId
    id
  }
}
```

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

```json Response
{
  "data": {
    "updateOffer": {
      "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)
- [UpdateOfferInput](https://docs.stigg.io/graphql-reference/types/UpdateOfferInput.md)
- [Offer](https://docs.stigg.io/graphql-reference/types/Offer.md)
- [offers](https://docs.stigg.io/graphql-reference/queries/offers.md)
- [Update a product](https://docs.stigg.io/api-reference/products/update-a-product.md)


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