---
title: "Adds auth for an OCI image registry"
method: POST
path: "/auths/adds"
tags: ["auths"]
---

# Adds auth for an OCI image registry

`POST /auths/adds`

## Request body

- AddAuthReq
  - `password` string
  - `resources` string
  - `username` string

## Response `204`

HTTP/1.1 ["No Content" response status code](https://tools.ietf.org/html/rfc7231#section-6.3.5)

## Other responses

- `400` — HTTP/1.1 ["Bad Request" response status code](https://tools.ietf.org/html/rfc7231#section-6.5.1)
- `500` — HTTP/1.1 ["Internal Server Error" response status code](https://tools.ietf.org/html/rfc7231#section-6.6.1)

---

[API](https://skmtc.dev/opctl/apis/opctl-rest-api.md) · [All operations](https://skmtc.dev/opctl/apis/opctl-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/opctl/opctl-rest-api/revisions/57a79c2e7e27/schema)
