Update public field

Updates an existing public field configuration by its ID.

Request

PUT /publicfield/{id}

Headers

HeaderValue
AuthorizationBearer <token>
Content-Typeapplication/json

Path Parameters

ParameterTypeRequiredDescription
idintegerYesID of the public field to update.

Request Body

Same fields as the create endpoint. All fields are optional.

FieldTypeRequiredDescription
fieldstringNoID of a known index field. When supplied, fieldId, fieldName, and fieldType are derived automatically.
fieldIdstringNoManual field identifier.
fieldNamestringNoManual human-readable name.
fieldTypestringNoManual field type: field or attribute.
onListingPagebooleanNoExpose this field on listing pages.
onDetailPagebooleanNoExpose this field on detail pages.
onLandingPagebooleanNoExpose this field on landing pages.

Example Request

{
  "onListingPage": false,
  "onDetailPage": true,
  "onLandingPage": true
}

Response

Returns the updated public field object.

Example Response

{
  "id": 1,
  "fieldId": "price",
  "fieldName": "Price",
  "fieldType": "field",
  "onListingPage": false,
  "onDetailPage": true,
  "onLandingPage": true,
  "user": "[email protected]",
  "changed": "2026-05-27T06:00:00+00:00"
}