Hi,
I am using the Urban API with python. I would like to get a list of all UrbanDesignDatabases within a UrbanModel that have an upgrade available.
I am trying to build the query that filter the design databases where the upgrade_status field of the upgrade_info is "UpgradeAvailable". I am following the sgqlc documentation: https://sgqlc.readthedocs.io/en/latest/sgqlc.operation.html#sgqlc.operation.Operation
endpoint = HTTPEndpoint(endpoint_url, {"Authorization": "Bearer " + token})
op = Operation(schema.Query, limit=int, offset=int)
design_db = op.urban_model(urban_model_id=urban_model_id).urban_design_databases(limit=Variable("limit"), offset=Variable("offset"))
design_db.title()
design_db.upgrade_info(upgrade_status="UpgradeAvailable")
The last line returns KeyError: 'upgrade_status'
I have tried using a filter like this, but I have KeyError: 'filter'
design_db.upgrade_info(filter={"upgrade_status": "UpgradeAvailable"})
Is there a way to build queries with filters or do I have to query all the design databases and do the filtering on the client side?
Thank you