Contentful logo

Contentful Community

Error when renaming an environment

Hi, everybody,
I am currently trying to rename an environment in Contenftul
As described in here:

This is my code:
const space = await client.getSpace(spaceId);
const backup = await space.getEnvironment(backupEnvironmentId); = originalEnvironmentId;
await backup.update();

This is the error message I get. I don’t understand what is meant by “Source uuid translation missing”
{ SpaceEnvironmentPayloadInvalid: {
“status”: 400,
“statusText”: “Bad Request”,
“message”: “The environment change is invalid: Source uuid translation missing: en.errors.api_messages.unchangeable\nGiven input data: {“name”:“rollbackTest-new”,“validation_format”:“api”,“lock_version”:“3”}”,
“details”: {},
“request”: {
“url”: “”,
“headers”: {
“Accept”: “application/json, text/plain, /”,
“Content-Type”: “application/”,
“X-Contentful-User-Agent”: “sdk contentful-management.js/5.26.3; platform node.js/v10.18.1; os Windows/10.0.18362;”,
“Authorization”: “Bearer …nddqw”,
“user-agent”: “node.js/v10.18.1”,
“Accept-Encoding”: “gzip”,
“X-Contentful-Version”: 3,
“Content-Length”: 27
“method”: “put”,
“payloadData”: “{“name”:“rollbackTest-new”}”
“requestId”: “…”
at errorHandler (…\node_modules\contentful-management\dist\webpack:\contentfulManagement\error-handler.js:60:17)
at process._tickCallback (internal/process/next_tick.js:68:7)

Any idea what I’m doing wrong?

Best regards,