---
title: "Update Credential"
method: PUT
path: "/data_credentials/{credential_id}"
tags: ["Credentials"]
---

# Update Credential

`PUT /data_credentials/{credential_id}`

## Request

- Base URL: `https://dataops.nexla.io/nexla-api`
- URL: `https://dataops.nexla.io/nexla-api/data_credentials/{credential_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nexla/apis/nexla-rest-api/docs/data_credentials/:credential_id/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates a data credential in the authenticated user's account. 

> Note: This method does not perform partial updating of the `credentials` object. The entire `credentials` object will be updated if this is added to the payload.

## Path parameters

- `credential_id` integer, required

## Headers

- `Accept` 'application/vnd.nexla.api.v1+json' | 'application/json': Setting to `application/vnd.nexla.api.v1+json` is recommended.

## Request body

- DataCredential
  - `name` string
  - `description` string
  - `credentials_type` string

## Response `200`

Success

- object
  - `id` integer
  - `name` string
  - `description` string
  - `owner` Owner
    - `id` integer
    - `full_name` string
    - `email` string, email
  - `org` Org
    - `id` integer
    - `name` string
    - `email_domain` string
    - `email` unknown
    - `client_identifier` unknown
  - `access_roles` string[]: This property reflects all the permissions the user/team/organization has to this resource. 1. `collaborator`: The user/team/organization can view the resource but not make any modifications to it. 2. `operator`: The user/team/organization can view the resource and can activate/pause it, but not make any other modifications to it. 3. `administrator`: The user/team/organization has complete administrative rights to this resource. 4. `owner`: This user created the resource and so has complete administrative rights to it.
  - `credentials_version` string
  - `managed` boolean
  - `credentials_type` string
  - `connector` object
    - `id` integer
    - `type` string
    - `connection_type` string
    - `name` string
    - `description` string
    - `nexset_api_compatible` boolean
  - `api_keys` unknown[]
    - unknown
  - `credentials_non_secure_data` object
  - `verified_status` string
  - `verified_at` string, date-time
  - `copied_from_id` unknown
  - `updated_at` string, date-time
  - `created_at` string, date-time
  - `tags` unknown[]
    - unknown

## Other responses

- `403`: Forbidden
- `404`: Not found error

---

[API](https://skmtc.dev/nexla/apis/nexla-rest-api.md) - [All operations](https://skmtc.dev/nexla/apis/nexla-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nexla/apis/nexla-rest-api/revisions/ef02be92fe7b?raw)
