---
title: "How to update the client secret on ODATA connections"
description: "How to update the client secret on ODATA connections"
keywords: "Update client secret, ODATA Client Secret Update, Expired Client Secret ODATA"
url: "https://myrapidi.com/wiki/how_to_update_the_client_secret_on_odata_connections"
locale: "en"
published: "2024-01-11T12:10:13Z"
modified: "2026-01-29T23:05:39Z"
---

When your current ODATA connection is configured via Azure AD, it can happen that the client secret expires and you need to generate a new one and update your current ODATA connection.The error message that you will see if the client secret has expired is **The REST service returned a status code that is not 20x - i.e. not OK - Status code received: 401 UnauthorizedResponse body: {"error":"invalid\_client","error\_description":"AADSTS7000222: The provided client secret keys for app 'xxxxxxxxx' are expired.**

In order to do so, please go through the following steps:

1. Log in to [portal.azure.com.](https://portal.azure.com)
2. Click on Azure Active Directory.

In the left panel, click on **App Registrations**. From the App registrations panel, click on the app that you are currently using for your ODATA connection.

In the left panel, click on **Certificates & secrets**.

Click **New client secret,** fill in the **Description** and **Expires** fields, and click **Add**.

Then, you should see the new client secret. Copy the code from the **Value** field, as you will need it later.  
  
**_Note: Once the secret is generated, you must copy it and store it somewhere safe, as the key will not be shown again. You would need to generate a new one.&nbsp;_**

3. Next, go to your Rapidi account, log in, and open the **Connections** tab:

- Click on the pencil icon to edit your connection.
- Add the client secret **to the Password field,** then click **Save**.
- Once the client secret it added, click on **Test** to get a final confirmation that the connection is working properly.
