Skip to content
Skip to main content
PATCH
https://api.us.nylas.com/v3/connectors/{provider}/creds/{id}

Update a connector credential

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.

Works with an API key or an IAM API key with the connector_credentials.update permission.

Parameters

Path parameters

provider*string

The connector's provider. Nylas supports credentials for Google, Microsoft, Yahoo, and Zoom connectors.

googlemicrosoftyahoozoom
id*string
Example: "e19f8e1a-eb1c-41c0-b6a6-d2e59daf7f47"

Request body

namestring

The credential name.

Example: "My first Google credential"
credential_dataobject

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, this field must contain the private_key_id, private_key, and client_email.

For the Microsoft App Permission flow, 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.

Example: {"type":"service_account","project_id":"marketplace-sa-test","private_key_id":"abcd1234defg5678","private_key":"-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n","client_email":"some-name@marketplace-sa-test.iam.gserviceaccount.com","client_id":"123456789","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_x509_cert_url":"https://www.googleapis.com/robot/v1/metadata/x509/some-name%40marketplace-sa-test.iam.gserviceaccount.com"}

Responses

request_idstring

The request ID.

Example: "5967ca40-a2d8-4ee0-a0e0-6f18ace39a90"
dataobject
PATCHhttps://api.us.nylas.com/v3/connectors/{provider}/creds/e19f8e1a-eb1c-41c0-b6a6-d2e59daf7f47

Find your API key in the Nylas Dashboard under API Keys in your application settings.

providerrequiredstring

The connector's provider. Nylas supports credentials for Google, Microsoft, Yahoo, and Zoom connectors.

idrequiredstring
Loading editor...

Autocomplete and validation come from this endpoint's request schema.