---
title: "Update a product customisation field"
method: PUT
path: "/products/{product_id}/customization-fields/{id}"
---

# Update a product customisation field

`PUT /products/{product_id}/customization-fields/{id}`

## Request

- Base URL: `https://api.ecommerceapi.uk/v1`
- URL: `https://api.ecommerceapi.uk/v1/products/{product_id}/customization-fields/{id}`
- Auth: HTTP basic

Updates an existing product customisation field.

## Path parameters

- `product_id` integer, required
- `id` integer, required

## Request body

- ProductCustomizationFieldUpdate
  - `label` string: The updated field label.
  - `type` 1 | 2: The updated type of the customisation field.
  - `max_length` integer: The updated maximum allowed length for the customisation field. Defaults to 0 (no limit).

## Response `200`

Product customisation field updated successfully.

- ProductCustomizationField
  - `id` integer: Unique identifier for the customisation field.
  - `label` string: The label of the customisation field.
  - `type` 1 | 2: The type of the customisation field (1 for text input, 2 for text area).
  - `max_length` integer: The maximum allowed length for the customisation field. Defaults to 0 (no limit).

---

[API](https://skmtc.dev/ecommerceapi/apis/product-customisation-fields.md) - [All operations](https://skmtc.dev/ecommerceapi/apis/product-customisation-fields/llms.txt) - [OpenAPI document](https://skmtc.dev/ecommerceapi/apis/product-customisation-fields/revisions/1021495167ad?raw)
