Environments
Update an environment
Changed onUpdate an environment by its unique identifier environmentId. You can modify the environment name, identifier, color, and other configuration settings.
put/v1/environments/{environmentId}
Request
- Base URLhttps://api.novu.co
- AuthAPI key in header Authorization
Path parameters
environmentIdstring required
The unique identifier of the environment
Headers
idempotency-keystring
A header for idempotency purposes
Request body
Response
OK
Example response
{
"_id": "60d5ecb8b3b3a30015f3e1a1",
"name": "Production Environment",
"_organizationId": "60d5ecb8b3b3a30015f3e1a2",
"identifier": "prod-env-01",
"type": "prod",
"apiKeys": [
{
"key": "api-key-1234567890abcdef",
"_userId": "60d5ecb8b3b3a30015f3e1a4",
"hash": "hash_value_here"
}
],
"_parentId": "60d5ecb8b3b3a30015f3e1a3",
"slug": "production"
}Changes
- breaking
added the pattern
^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$to the request property
- breaking