Query Products
list product fields list the fields that can be queried for products example curl x get \\ "https //api catenda com/v2/projects/af2d8af0fa54465b89bf26dd3d92cfd0/ifc/products/fields" \\ \ header "authorization bearer $access token" response \[ { "field" "attributes globalid", "type" "string", "measuretype" null }, { "field" "attributes name", "type" "string", "measuretype" null }, { "field" "ifctype", "type" "string", "measuretype" null }, { "field" "objectid", "type" "number", "measuretype" null } ] query products the product query endpoint allows you to query products the query language is based on the mongodb query language https //docs mongodb com/manual/reference/operator/query/ and supports the following operators comparison operators $eq , $in logical operators $and custom operators $ifctype comparison operator example curl x post \\ "https //api catenda com/v2/projects/af2d8af0fa54465b89bf26dd3d92cfd0/ifc/products" \\ \ header "authorization bearer $access token" \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data raw '{ "query" { "ifctype" { "$in" \["ifcwall", "ifcwallstandardcase"] } } }' logical operator example curl x post \\ "https //api catenda com/v2/projects/af2d8af0fa54465b89bf26dd3d92cfd0/ifc/products" \\ \ header "authorization bearer $access token" \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data raw '{ "query" { "$and" \[ { "ifctype" { "$eq" "ifcwall" }}, { "attributes globalid" { "$eq" "$product guid" }} ] } }' custom operator example the custom operator $ifctype allows you to match entities that are equal to an ifc type or its subtypes curl x post \\ "https //api catenda com/v2/projects/af2d8af0fa54465b89bf26dd3d92cfd0/ifc/products" \\ \ header "authorization bearer $access token" \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data raw '{ "query" { "ifctype" { "$ifctype" "ifcwall" } }, }'