---
title: "Update relations for a list of environments"
method: PUT
path: "/endpoints/relations"
tags: ["endpoints"]
---

# Update relations for a list of environments

`PUT /endpoints/relations`

Update relations for a list of environments
Edge groups, tags and environment group can be updated.

**Access policy**: administrator

## Request body

- EndpointsEndpointUpdateRelationsPayload
  - `Relations` object

## Response `204`

Success

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `404` — Not found
- `500` — Server error

---

[API](https://skmtc.net/portainer/apis/portainerce-api.md) · [All operations](https://skmtc.net/portainer/apis/portainerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portainer/portainerce-api/versions/c0b0975cd11b/schema)
