import { Novu } from '@novu/node';
const novu = new Novu('<NOVU_API_KEY>');
await novu.changes.applyMany(["changeId1", "changeId2"]);
use Novu\SDK\Novu;
$novu = new Novu(<NOVU_API_KEY>);
$novu->applyBulkChanges([
'changeIds' = [
'<insert-all-the-change-ids>'
]
])->toArray();
require 'novu'
client = Novu::Client.new('<NOVU_API_KEY>')
client.apply_change({
'changeIds' => ['<insert-all-the-change-ids>']
})
from novu.api import ChangeApi
url = "https://api.novu.co"
api_key = "<NOVU_API_KEY>"
novu = ChangeApi(url, api_key).bulk_apply(
change_ids = "<The list of IDs to apply>",
)
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.applyBulkChanges("<list-of-change-ids>");
}
}
{
"data": [
{
"_id": "string",
"_creatorId": "string",
"_environmentId": "string",
"_organizationId": "string",
"_entityId": "string",
"enabled": true,
"type": "Feed",
"change": {},
"createdAt": "string",
"_parentId": "string"
}
]
}
Changes
Apply changes
POST
/
v1
/
changes
/
bulk
/
apply
import { Novu } from '@novu/node';
const novu = new Novu('<NOVU_API_KEY>');
await novu.changes.applyMany(["changeId1", "changeId2"]);
use Novu\SDK\Novu;
$novu = new Novu(<NOVU_API_KEY>);
$novu->applyBulkChanges([
'changeIds' = [
'<insert-all-the-change-ids>'
]
])->toArray();
require 'novu'
client = Novu::Client.new('<NOVU_API_KEY>')
client.apply_change({
'changeIds' => ['<insert-all-the-change-ids>']
})
from novu.api import ChangeApi
url = "https://api.novu.co"
api_key = "<NOVU_API_KEY>"
novu = ChangeApi(url, api_key).bulk_apply(
change_ids = "<The list of IDs to apply>",
)
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.applyBulkChanges("<list-of-change-ids>");
}
}
{
"data": [
{
"_id": "string",
"_creatorId": "string",
"_environmentId": "string",
"_organizationId": "string",
"_entityId": "string",
"enabled": true,
"type": "Feed",
"change": {},
"createdAt": "string",
"_parentId": "string"
}
]
}
Enter your API key in the
Authorization field like the example shown below:E.g ApiKey 18d2e625f05d80eimport { Novu } from '@novu/node';
const novu = new Novu('<NOVU_API_KEY>');
await novu.changes.applyMany(["changeId1", "changeId2"]);
use Novu\SDK\Novu;
$novu = new Novu(<NOVU_API_KEY>);
$novu->applyBulkChanges([
'changeIds' = [
'<insert-all-the-change-ids>'
]
])->toArray();
require 'novu'
client = Novu::Client.new('<NOVU_API_KEY>')
client.apply_change({
'changeIds' => ['<insert-all-the-change-ids>']
})
from novu.api import ChangeApi
url = "https://api.novu.co"
api_key = "<NOVU_API_KEY>"
novu = ChangeApi(url, api_key).bulk_apply(
change_ids = "<The list of IDs to apply>",
)
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.applyBulkChanges("<list-of-change-ids>");
}
}
{
"data": [
{
"_id": "string",
"_creatorId": "string",
"_environmentId": "string",
"_organizationId": "string",
"_entityId": "string",
"enabled": true,
"type": "Feed",
"change": {},
"createdAt": "string",
"_parentId": "string"
}
]
}
Authorizations
API key authentication. Allowed headers-- "Authorization: ApiKey <api_key>".
Body
application/json
Response
Created
Available options:
Feed, MessageTemplate, Layout, DefaultLayout, NotificationTemplate, NotificationGroup, TranslationGroup, Translation Was this page helpful?
⌘I