from novu.api import IntegrationApiurl = "https://api.novu.co"api_key = "<NOVU_API_KEY>"novu = IntegrationApi(url, api_key).update( integration="<The instance of the integration to update>",)
import co.novu.sdk.Novu;public class Main { public static void main(String[] args) { String apiKey = "<NOVU_API_KEY>"; Novu novu = new Novu(apiKey); novu.updateIntegration(integrationId, body); }}
Update an integration by its unique key identifier integrationId.
Each provider supports different credentials, check the provider documentation for more details. Only integration metadata is returned, credentials field is returned as an empty object.
PUT
/
v1
/
integrations
/
{integrationId}
import { Novu, ProvidersIdEnum } from '@novu/node'; const novu = new Novu('<NOVU_API_KEY>');const updatePayload = { name: "SendGrid", identifier: "sendgrid-identifier", credentials: { apiKey: "SUPER_SECRET_API_KEY", from: "no-reply@novu.co", senderName: "Novu Team" // ... other credentials as per provider }, active: true, check: false}await novu.integrations.getWebhookProviderStatus(ProvidersIdEnum.SendGrid, updatePayload);
// Get integrationsuse Novu\SDK\Novu;$novu = new Novu(<NOVU_API_KEY>);$novu->updateIntegration($integrationId, [ 'active' => true, 'credentials' => [ // insert all the fields ], 'check' => true])->toArray();
from novu.api import IntegrationApiurl = "https://api.novu.co"api_key = "<NOVU_API_KEY>"novu = IntegrationApi(url, api_key).update( integration="<The instance of the integration to update>",)
import co.novu.sdk.Novu;public class Main { public static void main(String[] args) { String apiKey = "<NOVU_API_KEY>"; Novu novu = new Novu(apiKey); novu.updateIntegration(integrationId, body); }}
from novu.api import IntegrationApiurl = "https://api.novu.co"api_key = "<NOVU_API_KEY>"novu = IntegrationApi(url, api_key).update( integration="<The instance of the integration to update>",)
import co.novu.sdk.Novu;public class Main { public static void main(String[] args) { String apiKey = "<NOVU_API_KEY>"; Novu novu = new Novu(apiKey); novu.updateIntegration(integrationId, body); }}