---
title: "Update Credential"
method: PUT
path: "/apiops/projects/{projectName}/credentials/"
tags: ["Credential"]
deprecated: true
---

# Update Credential

`PUT /apiops/projects/{projectName}/credentials/`

## Request

- Base URL: `http://167.86.118.166:32080`
- URL: `http://167.86.118.166:32080/apiops/projects/{projectName}/credentials/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/apinizer/apis/apinizer-management-apis/docs/apiops/projects/:projectName/credentials/put.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

Updates credential specified by username and deploys it to environments

## Path parameters

- `projectName` string, required

## Request body

- CredentialDTO
  - `email` string
  - `fullName` string
  - `description` string
  - `username` string
  - `password` string
  - `roleNameList` string[]
  - `enabled` boolean
  - `ipList` string[]
  - `expireDate` string, date-time
  - `metadata` CredentialMetadataDTO[]
    - `key` string
    - `value` string
    - `secret` boolean
    - `includeInJwt` boolean
    - `includeInTokenResponse` boolean
    - `jwtClaimName` string
  - `trafficLogDisabled` boolean

## Response `200`

successful operation!

- ApiOpsResponseSuccess
  - `status` 'SUCCESS' | 'FAILURE'
  - `resultMessage` string
  - `resultList` string[]
  - `resultCount` integer
  - `deploymentResult` DeploymentResult
    - `envName` string
    - `podName` string
    - `podIp` string
    - `success` boolean
    - `detail` string
    - `responseTime` integer
    - `detailList` unknown[]
      - unknown
    - `firstFromApiResultList` unknown
  - `unresolvedReferences` string[]
  - `advisories` ApiOpsAdvisoryDTO[]
    - `level` string
    - `key` string
    - `params` object

## Other responses

- `401`: not authorized for this operation!
- `500`: internal error!

---

[API](https://skmtc.dev/apinizer/apis/apinizer-management-apis.md) - [All operations](https://skmtc.dev/apinizer/apis/apinizer-management-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/apinizer/apis/apinizer-management-apis/revisions/e083046b24cd?raw)
