---
title: "Configures a registry"
method: POST
path: "/registries/{id}/configure"
tags: ["registries"]
---

# Configures a registry

`POST /registries/{id}/configure`

Configures a registry.
**Access policy**: restricted

## Path parameters

- `id` integer, required

## Request body

- RegistriesRegistryConfigurePayload
  - `Authentication` boolean, required — Is authentication against this registry enabled
  - `Password` string — Password used to authenticate against this registry. required when Authentication is true
  - `Region` string — ECR region
  - `TLS` boolean — Use TLS
  - `TLSCACertFile` integer[] — The TLS CA certificate file
  - `TLSCertFile` integer[] — The TLS client certificate file
  - `TLSKeyFile` integer[] — The TLS client key file
  - `TLSSkipVerify` boolean — Skip the verification of the server TLS certificate
  - `Username` string — Username used to authenticate against this registry. Required when Authentication is true

## Response `204`

Success

## Other responses

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