import { UpdateSubscriberChannelRequestDto } from "@novu/api/models/components";
let value: UpdateSubscriberChannelRequestDto = {
providerId: "expo",
credentials: {
webhookUrl: "https://example.com/webhook",
channel: "general",
deviceTokens: [
"token1",
"token2",
"token3",
],
alertUid: "12345-abcde",
title: "Critical Alert",
imageUrl: "https://example.com/image.png",
state: "resolved",
externalUrl: "https://example.com/details",
},
};
Field | Type | Required | Description |
---|---|---|---|
providerId |
components.UpdateSubscriberChannelRequestDtoProviderId | ✔️ | The provider identifier for the credentials |
integrationIdentifier |
string | ➖ | The integration identifier |
credentials |
components.ChannelCredentials | ✔️ | Credentials payload for the specified provider |