Looks like I found what I do wrong.
GET /teamwork/devices/{teamworkDeviceId}/health?$expand=peripheralsHealth/microphoneHealth/peripheral
works fine.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
If I get teamworkDeviceHealth resource by teamwork device ID then it has field "peripheralsHealth" that contains a teamworkPeripheralsHealth resource that is a container for several teamworkPeripheralHealth resources. Each teamworkPeripheralHealth resource has a reference to the teamworkPeripheral resource and has a field "peripheral" for that reference. It's all described on the Graph API Beta reference pages: https://learn.microsoft.com/en-us/graph/api/resources/teamworkdevicehealth?view=graph-rest-beta
But I don't see any way to get teamworkPeripheral resource referenced by teamworkPeripheralHealth. If I get teamworkDeviceHealth resource then I get nested teamworkPeripheralHealth resources without teamworkPeripheral resources provided. Suppose it needs $expand option used somehow like:
GET /teamwork/devices/{teamworkDeviceId}/health?$select=peripheralsHealth($select=microphoneHealth($expand=peripheral))
But it doesn't work because teamworkPeripheralsHealth resource doesn't support $select option.
Is there any way to get teamworkPeripheral resource referenced by teamworkPeripheralHealth resource?
Looks like I found what I do wrong.
GET /teamwork/devices/{teamworkDeviceId}/health?$expand=peripheralsHealth/microphoneHealth/peripheral
works fine.