---
title: "Update a Basic-auth credential"
method: PATCH
path: "/basic-auths/{BasicAuthId}"
tags: ["Basic-auth credentials"]
---

# Update a Basic-auth credential

`PATCH /basic-auths/{BasicAuthId}`

Update a Basic-auth credential

## Path parameters

- `BasicAuthId` string, required

## Request body

- BasicAuth
  - `created_at` integer — Unix epoch when the resource was created.
  - `id` string
  - `password` string
  - `tags` string[]
  - `username` string
  - `consumer` object
    - `id` string

## Response `200`

Successfully updated Basic-auth credential

- BasicAuth
  - `created_at` integer — Unix epoch when the resource was created.
  - `id` string
  - `password` string
  - `tags` string[]
  - `username` string
  - `consumer` object
    - `id` string

## Other responses

- `401` — Unauthorized
- `404` — Resource does not exist

---

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