---
title: "Add container registry"
method: POST
path: "/registries"
tags: ["ContainerRegistries"]
---

# Add container registry

`POST /registries`

Add a container registry for user.

## Request body

- ContainerRegistryRequest
  - `displayName` string, required — Container registry display name
  - `type` 'dockerHub' | 'gitHub'
  - `passwordCredentials` Credentials — Password credentials for container registry
    - `userName` string, required — User name
    - `password` string, required — Password

## Response `200`

Container registry was successfully added.

- SaveContainerRegistryResult
  - `id` integer, nullable
  - `error` string, nullable
  - `status` 'saved' | 'secretsValidationFailed' | 'unknownErrorOccured' | 'notFound' | 'invalidInput'

## Other responses

- `400` — Invalid input.
- `401` — User is unauthorized.
- `500` — Unexpected server error.

---

[API](https://skmtc.net/bunny/apis/bunny-net-cdn-logging.md) · [All operations](https://skmtc.net/bunny/apis/bunny-net-cdn-logging/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bunny/bunny-net-cdn-logging/versions/9e622620664b/schema)
