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

# Update Custom Links

## 6.2 Update Custom Links

**Request**

| Method | URL                                       |
| ------ | ----------------------------------------- |
| PUT    | /customlink/v1/products/{magic\_link\_id} |

Copy

```
{
  "name": "Updated Magic Link Name",
  "description": "Magic Link Description",
  "channel": "SomeChannel",
  "orderId": 12,
  "conversationId": "1",
  "externalId": "1",
  "status": "Active",
  "price": 29.99,
  "currency": "USD",
  "enabledInstallments": "[1,2]",
  "stock": 50,
  "image": "image_url.jpg",
  "url": null,
  "image_url": null,
  "is_active": true,
  "is_deleted": false,
  "merchant_id": 1,
  "link_id": null,
  "soldCount": 0,
  "token": null,
  "custom_link": false,
  "custom_token": null
}
```

**Response**

| Status | Response                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 200    | <p>{</p><p>"data": {</p><p>"id": 162,</p><p>"name": "Updated Magic Link Name",</p><p>"description": "Magic Link Description",</p><p>"orderId": "12",</p><p>"conversationId": "1",</p><p>"externalId": "1",</p><p>"status": "Active",</p><p>"price": 29.99,</p><p>"currency": "USD",</p><p>"stock": 50,</p><p>"soldCount": 0,</p><p>"token": null,</p><p>"enabledInstallments": \[],</p><p>"url": null,</p><p>"imageUrl": null,</p><p>"channel": "SomeChannel",</p><p>"custom\_token": "<http://tinyurl.com/yw8amt84>"</p><p>}</p><p>}</p> |
| 403    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| 400    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| 400    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| 401    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| 401    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| 500    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |

[<br>](https://hilals-organization.gitbook.io/magicpay-documentation/6.-links/6.1-create-custom-links)
