Updates an existing public field configuration by its ID.
Request
PUT /publicfield/{id}
Headers
| Header | Value |
|---|---|
Authorization | Bearer <token> |
Content-Type | application/json |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | ID of the public field to update. |
Request Body
Same fields as the create endpoint. All fields are optional.
| Field | Type | Required | Description |
|---|---|---|---|
field | string | No | ID of a known index field. When supplied, fieldId, fieldName, and fieldType are derived automatically. |
fieldId | string | No | Manual field identifier. |
fieldName | string | No | Manual human-readable name. |
fieldType | string | No | Manual field type: field or attribute. |
onListingPage | boolean | No | Expose this field on listing pages. |
onDetailPage | boolean | No | Expose this field on detail pages. |
onLandingPage | boolean | No | Expose 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"
}
