Update an environment
PUT/environments/:environmentId
The operation allows you to change the description, the CI trigger setting and the Kubernetes labels and annotations of
the environment's namespace. Fields that are omitted or null are left unchanged. A change of labels or annotations is
applied to the namespace before the response is returned; the environment state does not change.
The response carries neither resourceLabels nor effectivePermissions; use
GET /environments/{environmentId} for them.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 429
- 500
- 502
Environment detail
Invalid request; E5015: invalid namespace label or annotation, E5016: reserved key (the kind and key are in context)
No valid API key provided.
The API key doesn't have permissions to perform the request.
Environment not found
E5011: the environment is being created or deleted; retry when it is ready
Too many requests hit the API too quickly. We recommend an exponential backoff of your requests.
Something went wrong on CodeNOW's end.
E5017: the namespace change could not be pushed; nothing was changed, the request can be retried