Hi Vince,
Here it is.
fetch("https://api.forestadmin.com/api/layout", {
"headers": {
"accept": "vnd.forestadmin-api+json; version=2.7.0",
"accept-language": "en,fr-FR;q=0.9,fr;q=0.8,en-US;q=0.7",
"authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJkYXRhIjp7ImRhdGEiOnsidHlwZSI6InVzZXJzIiwiaWQiOiIzNTEwNiIsImF0dHJpYnV0ZXMiOnsiZmlyc3RfbmFtZSI6IlN5bHZhaW4iLCJsYXN0X25hbWUiOiJHT1VNWSIsImVtYWlsIjoic3lsdmFpbkB1cGxhYi5mciJ9fX0sImlhdCI6MTU5MDEzNzA5MSwiZXhwIjoxNjA1Njg5MDkxLCJhdWQiOiJGT1JFU1RfVVNFUlMiLCJpc3MiOiJGT1JFU1RfQVVUSEVOVElDQVRJT05fU1lTVEVNIn0",
"cache-control": "no-cache",
"content-type": "application/vnd.api+json",
"forest-environment-id": "54833",
"forest-project-id": "45486",
"forest-rendering-id": "64957",
"forest-team-id": "45299",
"pragma": "no-cache",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "cross-site"
},
"referrer": "http://app.forestadmin.com/rasaff-admin/Development/Operations/dashboard/a4987950-bc46-11ea-ba73-fb4820c43239/chart/aa9d8e00-bc71-11ea-b713-cbd7733657ee/edit",
"referrerPolicy": "no-referrer-when-downgrade",
"body": "[{\"path\":\"/dashboards/a4987950-bc46-11ea-ba73-fb4820c43239/charts/aa9d8e00-bc71-11ea-b713-cbd7733657ee/filter\",\"op\":\"replace\",\"value\":{\"id\":\"aa9d3fe0-bc71-11ea-b713-cbd7733657ee\",\"type\":\"and\",\"conditions\":[{\"id\":\"aa9d3fe1-bc71-11ea-b713-cbd7733657ee\",\"fieldName\":\"client\",\"operator\":\"is\",\"value\":\"test\",\"embeddedField\":null,\"subFieldName\":\"code\"},{\"id\":\"481b6ec0-bc7e-11ea-9221-49b60865fd98\",\"fieldName\":\"active\",\"operator\":\"is\",\"value\":true,\"embeddedField\":null,\"subFieldName\":null}]}}]",
"method": "PATCH",
"mode": "cors",
"credentials": "include"
});
curl 'https://api.forestadmin.com/api/layout' \
-X 'PATCH' \
-H 'Connection: keep-alive' \
-H 'Pragma: no-cache' \
-H 'Cache-Control: no-cache' \
-H 'Forest-Project-Id: 45486' \
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJkYXRhIjp7ImRhdGEiOnsidHlwZSI6InVzZXJzIiwiaWQiOiIzNTEwNiIsImF0dHJpYnV0ZXMiOnsiZmlyc3RfbmFtZSI6IlN5bHZhaW4iLCJsYXN0X25hbWUiOiJHT1VNWSIsImVtYWlsIjoic3lsdmFpbkB1cGxhYi5mciJ9fX0sImlhdCI6MTU5MDEzNzA5MSwiZXhwIjoxNjA1Njg5MDkxLCJhdWQiOiJGT1JFU1RfVVNFUlMiLCJpc3MiOiJGT1JFU1RfQVVUSEVOVElDQVRJT05fU1lTVEVNIn0' \
-H 'Forest-Rendering-Id: 64957' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Accept: vnd.forestadmin-api+json; version=2.7.0' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36' \
-H 'Forest-Environment-Id: 54833' \
-H 'Forest-Team-Id: 45299' \
-H 'Origin: http://app.forestadmin.com' \
-H 'Sec-Fetch-Site: cross-site' \
-H 'Sec-Fetch-Mode: cors' \
-H 'Sec-Fetch-Dest: empty' \
-H 'Referer: http://app.forestadmin.com/rasaff-admin/Development/Operations/dashboard/a4987950-bc46-11ea-ba73-fb4820c43239/chart/aa9d8e00-bc71-11ea-b713-cbd7733657ee/edit' \
-H 'Accept-Language: en,fr-FR;q=0.9,fr;q=0.8,en-US;q=0.7' \
-H 'Cookie: _uc_referrer=https://www.google.com/; ajs_anonymous_id=%2234c3a140-81cd-4575-9d6c-d40277585dd3%22; _ga=GA1.2.687213319.1586958791; ajs_user_id=%2235106%22; session_token=nPcuZulBFS98AHOUw5D9uzEGRArf3NICYn2tQFgQDds; _gid=GA1.2.1600306587.1593595148; amplitude_id_fef1e872c952688acd962d30aa545b9eforestadmin.com=eyJkZXZpY2VJZCI6IjVjNjJmNmZiLTY1YTEtNGE0ZS04NDQxLTk4OTM4MTEwYmY4YlIiLCJ1c2VySWQiOm51bGwsIm9wdE91dCI6ZmFsc2UsInNlc3Npb25JZCI6MTU5MzcwNDAyMzYwNCwibGFzdEV2ZW50VGltZSI6MTU5MzcwNDAyNDk0OCwiZXZlbnRJZCI6MSwiaWRlbnRpZnlJZCI6MSwic2VxdWVuY2VOdW1iZXIiOjJ9; _gat=1' \
--data-binary '[{"path":"/dashboards/a4987950-bc46-11ea-ba73-fb4820c43239/charts/aa9d8e00-bc71-11ea-b713-cbd7733657ee/filter","op":"replace","value":{"id":"aa9d3fe0-bc71-11ea-b713-cbd7733657ee","type":"and","conditions":[{"id":"aa9d3fe1-bc71-11ea-b713-cbd7733657ee","fieldName":"client","operator":"is","value":"test","embeddedField":null,"subFieldName":"code"},{"id":"481b6ec0-bc7e-11ea-9221-49b60865fd98","fieldName":"active","operator":"is","value":true,"embeddedField":null,"subFieldName":null}]}}]' \
--compressed