---
title: "Associates a device to a group, giving context to its relationship."
method: PUT
path: "/devices/{deviceId}/{relationship}/groups/{groupPath}"
tags: ["Devices"]
---

# Associates a device to a group, giving context to its relationship.

`PUT /devices/{deviceId}/{relationship}/groups/{groupPath}`

## Response `204`

successful operation

## Other responses

- `400` — Invalid input
- `404` — Not found

---

[API](https://skmtc.dev/aws-samples/apis/aws-connected-device-framework-asset-library.md) · [All operations](https://skmtc.dev/aws-samples/apis/aws-connected-device-framework-asset-library/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aws-samples/aws-connected-device-framework-asset-library/revisions/78967b3d609f/schema)
