PATCH
/api/public/v1/customer-custom-fields/{customFieldId}

Update a customer custom field

Update label, placeholder, options, required flag, or display order.

Path Parameters

NameTypeRequiredDescription
customFieldIdstring
Required
Custom field ID.

Request Body

PropertyTypeDescription
labelstringDisplay label.
placeholderstringPlaceholder text.
requiredbooleanWhether the field is required.
optionsarrayFor SELECT: array of { value, label }.
displayOrdernumberDisplay 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"
    }
  }
}