# Replace a link of a quote with a new one; the old address stops working

`POST /quotes/{id}/links/{linkId}/regenerate` · Rivier · shop

Replace a link of a quote with a new one; the old address stops working.

- Scope: shop:write
- Sdk: shop.quote.linkRegenerate
- Cli: quotes links regenerate

## Parameters

- `id` (path, required), string
- `linkId` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "days": {
      "type": "integer",
      "minimum": 1,
      "maximum": 365,
      "default": 30
    }
  },
  "additionalProperties": false
}
```

## Responses

- `201`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/quotes/{id}/links/{linkId}/regenerate' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "days": 30
}'
```
