---
title: "Update a connector credential"
method: PATCH
path: "/v3/connectors/{provider}/creds/{id}"
tags: ["Connector credentials"]
---

# Update a connector credential

`PATCH /v3/connectors/{provider}/creds/{id}`

Updates the specified connector credential.

When you make a `PATCH` request, Nylas replaces all data in the nested object with the information
included in your request. For more information, see
[Updating objects](/docs/reference/api/#updating-objects).

## Path parameters

- `provider` 'google' | 'microsoft' | 'imap' | 'icloud' | 'yahoo' | 'ews' | 'virtual-calendar' | 'zoom' | 'nylas', required
- `id` string, required

## Request body

- object
  - `name` string — The credential name.
  - `credential_data` object — An object that specifies some special information required for the credential. This information is securely encoded and stored, and is _not_ visible to users. For the [Google App Permission flow](/docs/v3/auth/bulk-auth-grants/#google-app-permission-via-nylas), this field must contain the `private_key_id`, `private_key`, and `client_email`. For the [Microsoft App Permission flow](/docs/v3/auth/bulk-auth-grants/#use-a-microsoft-bulk-authentication-grant), this field must contain the Azure `client_id` and `client_secret`. To use the credential to override a connector, this field must contain the `client_id` and `client_secret`.

## Response `200`

Returns the updated credential.

- object
  - `request_id` string — The request ID.
  - `data` CredentialObject
    - `id` string, required — Credential ID
    - `name` string, required — Unique name of this credential
    - `created_at` integer, required — Date of creation of the credential
    - `updated_at` integer, required — Initially same as `created_at`. Can differ if the credential has been updated.

## Other responses

- `400` — Bad Request
- `401` — Not Authenticated

---

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