> For the complete documentation index, see [llms.txt](https://requestmechanic.gitbook.io/request-mechanic-api-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://requestmechanic.gitbook.io/request-mechanic-api-documentation/user/update-user-coupon.md).

# Update User Coupon

The `PUT /user/coupons/{id}/` endpoint allows you to update the details of a specific coupon for a user.

***

#### Parameters

| **Parameter** | **Location** | **Type** | **Description**                                 |
| ------------- | ------------ | -------- | ----------------------------------------------- |
| `data`        | Body         | Object   | Coupon details to update.                       |
| `id`          | Path         | Integer  | A unique integer value identifying this coupon. |

***

#### Request Body Fields

| **Field**         | **Type**           | **Description**                    |
| ----------------- | ------------------ | ---------------------------------- |
| `value`           | String (decimal)   | The monetary value of the coupon.  |
| `expiration_date` | String (date-time) | The expiration date of the coupon. |

**Example Request Body**:

```json
{
  "value": "50.00",
  "expiration_date": "2024-12-31T23:59:59Z"
}
```

***

#### Responses

| **Status Code** | **Description**                          |
| --------------- | ---------------------------------------- |
| `200`           | Successfully updated the coupon details. |

**Example Response**

**Response Body**:

```json
{
  "id": 123,
  "code": "SAVE50",
  "value": "50.00",
  "expiration_date": "2024-12-31T23:59:59Z"
}
```
