PATCH
/api/public/v1/customer-custom-fields/{customFieldId}Update a customer custom field
Update label, placeholder, options, required flag, or display order.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
customFieldId | string | Required | Custom field ID. |
Request Body
| Property | Type | Description |
|---|---|---|
label | string | Display label. |
placeholder | string | Placeholder text. |
required | boolean | Whether the field is required. |
options | array | For SELECT: array of { value, label }. |
displayOrder | number | Display position. |
PATCHExample request
curl
curl -X PATCH "https://www.pxb.app/api/public/v1/customer-custom-fields/{customFieldId}" \
-H "X-Organization-Id: your_org_id" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"required": true
}'200Example response
json
{
"message": "Customer custom field updated successfully!",
"content": {
"customField": {
"id": "cf_1"
}
}
}