Menu
Update Environment
Update an environment
PUT
/spaces/{spaceId}/environments/{environmentId}Use it in a workflow
- Add a step and choose the Contentful connector.
- Pick the Update Environment action (under Contentful Content Management API).
- Fill in the fields below, then reference the result from later steps as
{{updateEnvironment.response.data}}.
Request
Path parameters
Headers
Request body
Enter the body as JSON in the step's Body field.
{
"name": "string"
}
Response
Returns 200 with an object. Read it in later steps with {{updateEnvironment.response.data.<field>}}.
{
"name": "string",
"sys": {
"id": "string",
"type": "string",
"space": {
"sys": {
"id": "string",
"type": "string",
"linkType": "string"
}
},
"createdBy": {
"sys": {
"id": "string",
"type": "string",
"linkType": "string"
}
},
"version": 0,
"environment": {
"sys": {
"id": "string",
"type": "string",
"linkType": "string"
}
},
"updatedBy": {
"sys": {
"id": "string",
"type": "string",
"linkType": "string"
}
},
"updatedAt": "2025-01-01T00:00:00Z"
}
}
Need more? See the Contentful guide for connection setup and behaviour shared by every action.
Was this page helpful?