Hi,
Thanks, we are on:
“forest-express-mongoose”: “^6.3.0”,
the details of the call that fail are:
PUT /api/segments/1979b7e0-c13b-11ea-89d0-f3bab00a480c HTTP/1.1
Host: api.forestadmin.com
Connection: keep-alive
Content-Length: 1461
Forest-Project-Id: 41780
Authorization: Bearer Forest-Rendering-Id: 60128
Content-Type: application/vnd.api+json
Accept: vnd.forestadmin-api+json; version=2.7.0
Forest-Environment-Id: 50945
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
Forest-Collection-Id: 2849914
Forest-Team-Id: 42021
Origin: https://app.forestadmin.com
Sec-Fetch-Site: same-site
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://app.forestadmin.com/Forest%20Map/EU%20Production/Operations/data/2849914/settings/segments
Accept-Encoding: gzip, deflate, br
Accept-Language:
{“data”:{“id”:“1979b7e0-c13b-11ea-89d0-f3bab00a480c”,“attributes”:{“name”:“Non Zero Accumulation Goals”,“type”:“manual”,“position”:0,“is_visible”:false,“default_sorting_field_order”:“descending”,“query”:null,“has_columns_configuration”:false},“relationships”:{“collection”:{“data”:{“type”:“collections”,“id”:“2849914”}},“filter”:{“data”:{“attributes”:{“type”:“and”},“relationships”:{“segment”:{“data”:{“type”:“segments”,“id”:“1979b7e0-c13b-11ea-89d0-f3bab00a480c”}},“conditions”:{“data”:[{“attributes”:{“embedded_field”:null,“operator”:“is”,“value”:“non_registered”,“belongs_to_segment”:false},“relationships”:{“filter”:{“data”:{“type”:“filters”,“id”:“195ce110-c13b-11ea-89d0-f3bab00a480c”}},“field”:{“data”:{“type”:“fields”,“id”:“834259e4-a85d-11ea-9e20-1971a04ca44c”}},“sub_field”:{“data”:null}},“type”:“conditions”,“id”:“19545590-c13b-11ea-89d0-f3bab00a480c”},{“attributes”:{“embedded_field”:{“id”:1,“field”:“confirmed”,“type”:“Number”,“enums”:{}},“operator”:“is not”,“value”:“0”,“belongs_to_segment”:false,“id”:“134985d2-a775-40e5-abad-ac985a3e25a4”},“relationships”:{“filter”:{“data”:{“type”:“filters”,“id”:“195ce110-c13b-11ea-89d0-f3bab00a480c”}},“field”:{“data”:{“type”:“fields”,“id”:“834259d2-a85d-11ea-9e20-1971a04ca44c”}}},“type”:“conditions”}]}},“type”:“filters”,“id”:“195ce110-c13b-11ea-89d0-f3bab00a480c”}},“default_sorting_field”:{“data”:{“type”:“fields”,“id”:“834280e0-a85d-11ea-9e20-1971a04ca44c”}},“columns”:{“data”:}},“type”:“segments”}}
HTTP/1.1 400 Bad Request
Server: Cowboy
Connection: keep-alive
X-Dns-Prefetch-Control: off
X-Frame-Options: SAMEORIGIN
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Download-Options: noopen
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block
Access-Control-Allow-Origin: https://app.forestadmin.com
Vary: Origin, Accept-Encoding
Access-Control-Allow-Credentials: true
Content-Type: application/json; charset=utf-8
Content-Length: 60
Etag: W/“3c-speXrJIeoykLjM9ink01HbZvv9o”
Date: Thu, 09 Jul 2020 13:31:01 GMT
Via: 1.1 vegur
{“errors”:[{“status”:400,“detail”:“Bad Request”,“meta”:{}}]}