With the release of Flex Policies, you may need to update your interactions with the Addigy API v1 /api/devices endpoint. The policy_id field within the device objects is being deprecated and replaced by policy_ids.
Learn more about this endpoint:
Addigy API V1 - Get Devices
With Flex Policies, devices will be able to exist within multiple policies at once. To complement this change we’ve also introduced a new policy_ids property that will contain an array of all the assigned policies to a device. With the Introduction of this new policy_ids fact, we will stop using the policy_id fact. Furthermore, it may become null when the device is removed from the policy they originally enrolled into.
We advise all integrators to update their code to use the new policy_ids fact instead of the policy_id fact when using the Flex Policies feature. Not making this change can cause your integrations to break or misreport information.
In the past, you could assume that the policy_id fact was the location(company/department) of a device, now that a device has multiple policy_ids, you’ll have to update your code to parse those ids and explicitly identify specific policies as locations.