---
title: "Manage private registry"
method: POST
path: "/repositories/code/private-registries"
---

# Manage private registry

`POST /repositories/code/private-registries`

Add or update your private package registry connection, such as a private NPM or Maven package registry.

## Request body

- object
  - `type` 'maven' | 'npm_rc', required — The type of the private registry
  - `payload` string, required — The payload of the private registry or .npmrc content

## Response `200`

The private registry has been added.

- object
  - `success` integer — The integer 1 indicating success
  - `token` string — The token of the private registry

---

[API](https://skmtc.net/aikido/apis/authorization.md) · [All operations](https://skmtc.net/aikido/apis/authorization/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aikido/authorization/versions/5445e7c21137/schema)
