---
title: "Update a gift"
method: PATCH
path: "/gifts/{giftId}"
---

# Update a gift

`PATCH /gifts/{giftId}`

## Request

- Base URL: `https://api.sandbox.cleeng.com/3.1`
- URL: `https://api.sandbox.cleeng.com/3.1/gifts/{giftId}`
- Auth: API key in header `X-Publisher-Token`

This endpoint gives possibility to update delivery details of a given gift that was previously purchased.

## Path parameters

- `giftId` integer, required

## Headers

- `Content-Type` string

## Request body

- object
  - `deliveryDetails` object, required
    - `personalNote` string, required: A message for the person for whom we want to purchase a gift. It can be `null`.
    - `recipientEmail` string, required: Email address of the gift recipient (person reciving a gift).
    - `deliveryDate` integer, required: A date when the purchased gift should be delivered in unix timestamp.

## Response `200`

200

- object
  - `id` integer
  - `code` string
  - `offerId` string
  - `deliveryDetails` object
    - `personalNote` string
    - `recipientEmail` string
    - `deliveryDate` integer
  - `sentAt` unknown
  - `redeemedAt` unknown

## Other responses

- `400`: 400
- `401`: 401
- `404`: 404

---

[API](https://skmtc.dev/cleeng/apis/api-31.md) - [All operations](https://skmtc.dev/cleeng/apis/api-31/llms.txt) - [OpenAPI document](https://skmtc.dev/cleeng/apis/api-31/revisions/df55396cda4f?raw)
