---
title: "Duplicate a credential"
method: POST
path: "/credentials/{id}/duplicate"
tags: ["Credentials"]
---

# Duplicate a credential

`POST /credentials/{id}/duplicate`

Creates a new credential from an existing one, optionally overriding fields (e.g. password), leaving the original credential untouched.

## Path parameters

- `id` integer, required

## Request body

- object
  - `name` string
  - `username` string
  - `password` string
  - `key` string
  - `keyPassword` string

## Response `201`

New credential created from the duplicate.

## Other responses

- `400` — Invalid request.
- `404` — Credential not found.
- `500` — Failed to duplicate credential.

---

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