and here' some real data :
{
"Id": 1416,
"DataClassId": "Anlass",
"Designation": "PA-Classes",
"SearchFields": [
{
"Id": 0,
"FieldId": "Id1",
"Position": 1,
"Width": 73,
"HeaderText": "ID événement",
"TypeName": "Int32",
"SearchText": null,
"SortDirection": null,
"DropDownItems": null,
"GroupIndex": null,
"PrimaryKeyIndex": null,
"IsListColumn": false,
"Operator": null
},
{
"Id": 49,
"FieldId": "AnlassNr",
"Position": 2,
"Width": 173,
"HeaderText": "Numéro d'événement",
"TypeName": "String",
"SearchText": null,
"SortDirection": "asc",
"DropDownItems": null,
"GroupIndex": null,
"PrimaryKeyIndex": null,
"IsListColumn": false,
"Operator": null
},
{
"Id": 51,
"FieldId": "AnlassBez",
"Position": 3,
"Width": 301,
"HeaderText": "Désignation d'événement",
"TypeName": "String",
"SearchText": null,
"SortDirection": null,
"DropDownItems": null,
"GroupIndex": null,
"PrimaryKeyIndex": null,
"IsListColumn": false,
"Operator": null
},
{
"Id": 59,
"FieldId": "Veranstalter",
"Position": 4,
"Width": 125,
"HeaderText": "Organisateur",
"TypeName": "String",
"SearchText": null,
"SortDirection": "asc",
"DropDownItems": [
"GBSL",
"GBSL-FMS",
"GBSL-GAB",
"GBSL-HMS",
"GBSL-MAR",
"GBSL-WMS",
"GFB",
"GFB-EMSp",
"GFB-ESC",
"GFB-Pass",
"GFB-RRM"
],
"GroupIndex": null,
"PrimaryKeyIndex": null,
"IsListColumn": false,
"Operator": null
},
{
"Id": 50,
"FieldId": "AnlassStatus",
"Position": 5,
"Width": 419,
"HeaderText": "Statut (événement)",
"TypeName": "String",
"SearchText": null,
"SortDirection": null,
"DropDownItems": null,
"GroupIndex": null,
"PrimaryKeyIndex": null,
"IsListColumn": false,
"Operator": null
},
{
"Id": 71,
"FieldId": "AnzahlTeilnehmer",
"Position": 6,
"Width": 112,
"HeaderText": "Par Ok total",
"TypeName": "Int32",
"SearchText": null,
"SortDirection": null,
"DropDownItems": null,
"GroupIndex": null,
"PrimaryKeyIndex": null,
"IsListColumn": false,
"Operator": null
},
{
"Id": 72,
"FieldId": "Leitung IDPerson",
"Position": 7,
"Width": 88,
"HeaderText": "ID personne de la direction générale",
"TypeName": "Nullable<Int32>",
"SearchText": null,
"SortDirection": null,
"DropDownItems": null,
"GroupIndex": null,
"PrimaryKeyIndex": null,
"IsListColumn": false,
"Operator": null
},
{
"Id": 73,
"FieldId": "UNTERRICHTSSPRACHE_BEZEICHNUNG",
"Position": 8,
"Width": 55,
"HeaderText": "Langue d’enseignement",
"TypeName": "String",
"SearchText": null,
"SortDirection": null,
"DropDownItems": [
"Allemand (Suisse)",
"Français",
"Deutsch",
"Französisch",
"Italienisch",
"Bilingue",
"Englisch"
],
"GroupIndex": null,
"PrimaryKeyIndex": null,
"IsListColumn": false,
"Operator": null
},
{
"Id": 74,
"FieldId": "Anlassleitung",
"Position": 9,
"Width": 140,
"HeaderText": "Direction (publication)",
"TypeName": "String",
"SearchText": null,
"SortDirection": null,
"DropDownItems": null,
"GroupIndex": null,
"PrimaryKeyIndex": null,
"IsListColumn": false,
"Operator": null
}
],
"Me": false,
"IdObject": "Anlass_PA-Classes",
"HRef": "/restApi/Search/Definitions/Anlass_PA-Classes"
}
as you can see, every field has an property 'Id' and a property 'Searchtext'. The idea was to be able to modify the value of the property 'SearchText' of a given Id field before sending the object via a rest api call to get a filtered result