---
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)

## Changes

- **2020-11-03** `493a631ec454` — 1 info
  - endpoint added
- **2019-07-16** `6d0123d8047b` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/opctl/apis/opctl-rest-api/changes/auths/adds/post.md)

---

[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)
