---
title: "Update the specified credential of the DevOps project"
method: PUT
path: "/kapis/devops.kubesphere.io/v1alpha2/devops/{devops}/credentials/{credential}"
tags: ["DevOps Project Credential"]
---

# Update the specified credential of the DevOps project

`PUT /kapis/devops.kubesphere.io/v1alpha2/devops/{devops}/credentials/{credential}`

## Path parameters

- `devops` string, required
- `credential` string, required

## Request body

- DevopsJenkinsCredential
  - `create_time` string, date-time — Credential's create_time'
  - `creator` string — Creator's username
  - `description` string — Credential's description'
  - `display_name` string — Credential's display name
  - `domain` string — Credential's domain,In ks we only use the default domain, default '_''
  - `fingerprint` DevopsJenkinsCredentialFingerprint
    - `file_name` string — Credential's display name and description
    - `hash` string — Credential's hash
    - `usage` DevopsJenkinsCredentialFingerprintUsage[] — all usage of Credential
      - `name` string — Jenkins pipeline full name
      - `ranges` Ranges
        - `ranges` RangesRanges[]
          - `end` integer — End build number
          - `start` integer — Start build number
  - `id` string, required — Id of Credential, e.g. dockerhub-id
  - `kubeconfig` DevopsKubeconfigCredential
    - `content` string — content of kubeconfig
  - `secret_text` DevopsSecretTextCredential
    - `secret` string — secret content of credential
  - `ssh` DevopsSshCredential
    - `passphrase` string — passphrase of ssh credential, password of ssh credential
    - `private_key` string — private key of ssh credential
    - `username` string — username of ssh credential
  - `type` string, required — Type of Credential, e.g. ssh/kubeconfig
  - `username_password` DevopsUsernamePasswordCredential
    - `password` string — password of username_password credential
    - `username` string — username of username_password credential

## Response `200`

OK

## Changes

- **2019-08-27** `6d6e730a2d14` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/kubesphere/apis/ks-api/changes/kapis/devops.kubesphere.io/v1alpha2/devops/:devops/credentials/:credential/put.md)

---

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