> ## Documentation Index
> Fetch the complete documentation index at: https://docs.closient.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Manage Product Warranty Link

> Read, set, replace, and remove a product's warranty link (the brand's page stating the warranty that covers the product) -- the programmatic equivalent of the dashboard's warranty link page.

Programmatic equivalent of the dashboard's `products/<gtin>/warranty-link/` page.

## When to use

* A brand owner wants shoppers who scan a product to reach the terms of its warranty.
* The warranty page moved to a new address.

## Auth

`X-API-Key` header or OAuth token. Writing takes membership of the product's organization with
the contribute role (Editor or Manager). A read-only key is refused with `403`; a product another
organization owns answers `404`, so the API never confirms it exists.

## Flow

```
GET    /dashboard/api/v1/products/{organization_id}/{gtin}/warranty-link
PUT    /dashboard/api/v1/products/{organization_id}/{gtin}/warranty-link
DELETE /dashboard/api/v1/products/{organization_id}/{gtin}/warranty-link
```

* **Read** -- the product's warranty link. `404` while none is on file.
* **Set or replace** -- a product has at most one warranty link, so `PUT` with a body of `url`
  creates it, or replaces the address on file. The `url` must be an `http://` or `https://`
  address of at most 200 characters; fields are listed in the OpenAPI document at
  `/dashboard/api/v1/openapi.json`.
* **Delete** -- removes the link permanently. `404` if none is on file.
* **Read back** -- `PUT` returns the saved link; `GET` again to confirm.

Returns `403` for a read-only key, `404` for a product the caller cannot see, and `422` for an
invalid value.

## Notes

The fields a brand writes on the link are defined once on the model
(`WarrantyLink.BRAND_EDITABLE_FIELDS`); the API schema and the dashboard form are pinned to that
set.


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