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

# POST /api/v1/warranties/&#123;id&#125;/extend

> POST /api/v1/warranties/&#123;id&#125;/extend

### Path parameters

<ParamField path="id" type="string (uuid)" required>
  Warranty ID
</ParamField>

### Request body

JSON body of type `ExtendWarrantyRequest`.

### Responses

<ResponseField name="200" type="ApiResponse_WarrantySummary">
  Warranty extended
</ResponseField>

<ResponseField name="400" type="ErrorResponse">
  Invalid request
</ResponseField>

<ResponseField name="404" type="ErrorResponse">
  Warranty not found
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.stateset.com/api/v1/warranties/{id}/extend' \
    --header 'Authorization: Bearer YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{}'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "data": {
      "created_at": "2024-12-09T10:30:00Z",
      "customer_id": "123e4567-e89b-12d3-a456-426614174000",
      "description": "2-year manufacturer warranty covering defects in materials and workmanship",
      "end_date": "2026-12-09T00:00:00Z",
      "id": "aa0e8400-e29b-41d4-a716-446655440000",
      "product_id": "550e8400-e29b-41d4-a716-446655440000",
      "start_date": "2024-12-09T00:00:00Z",
      "status": "active",
      "terms": "Covers manufacturing defects only. Does not cover damage from misuse, accidents, or unauthorized modifications.",
      "updated_at": "2024-12-09T10:30:00Z",
      "warranty_number": "WRN-2024-001234"
    },
    "errors": null,
    "message": null,
    "meta": null,
    "success": true
  }
  ```
</ResponseExample>
