Environments
Create environment
POST
/v1/environments
Authorization*
Please ensure there is a space between ApiKey
and your Api key.
E.g ApiKey 18d2e625f05d80e
import { Novu } from '@novu/node';
const novu = new Novu('<NOVU_API_KEY>');
await novu.environmets.create({
name: "Stagging"
parentId: "parentEnvironmentId"
});
{
data: data
}
Body
application/json
namerequired
string
parentId
string
Response
201 - application/json
data
object
import { Novu } from '@novu/node';
const novu = new Novu('<NOVU_API_KEY>');
await novu.environmets.create({
name: "Stagging"
parentId: "parentEnvironmentId"
});
{
data: data
}