PUT
/
v1
/
environments
/
{environmentId}
Authorization
Path
Body

Enter your API key in the Authorization field like the example shown below:

E.g ApiKey 18d2e625f05d80e

import { Novu } from '@novu/node';

const novu = new Novu('<NOVU_API_KEY>');
await novu.environmets.updateOne("environmentId", {
  name: "Stagging" // optional
  parentId: "parentEnvironmentId", // optional
  identifier: "environmentIdentifier" // optional
});
{
  "data": {
    "_id": "string",
    "name": "string",
    "_organizationId": "string",
    "identifier": "string",
    "apiKeys": [
      {
        "key": "string",
        "_userId": "string"
      }
    ],
    "_parentId": "string"
  }
}

Authorizations

Authorizationheaderrequired
string

Path Parameters

environmentIdrequired
string

Body

application/json
dns
object
identifier
string
name
string
parentId
string

Response

200 - application/json
data
object