---
title: "update registry access for environment"
method: PUT
path: "/endpoints/{id}/registries/{registryId}"
tags: ["endpoints"]
---

# update registry access for environment

`PUT /endpoints/{id}/registries/{registryId}`

**Access policy**: authenticated

## Path parameters

- `id` integer, required
- `registryId` integer, required

## Request body

- EndpointsRegistryAccessPayload
  - `Namespaces` string[]
  - `TeamAccessPolicies` PortainerTeamAccessPolicies
  - `UserAccessPolicies` PortainerUserAccessPolicies

## Response `204`

Success

## Other responses

- `400` — Invalid request
- `403` — Permission denied
- `404` — Endpoint 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)
