Okta devices api-questions

Hello.
I wanted to ask few question:

  1. Is there a connection/relation between devices and group on the okta directory?
  2. Is there an API to get all groups that some device/machine belongs to(like the route /user/{someid}/groups for getting the user groups)?

can somebody answer me?