Menu
Update Preview Environment
Create a preview environment
PUT
/spaces/{spaceId}/preview_environments/{resourceId}Use it in a workflow
- Add a step and choose the Contentful connector.
- Pick the Update Preview Environment action (under Contentful Content Management API).
- Fill in the fields below, then reference the result from later steps as
{{updatePreviewEnvironment.response.data}}.
Request
Path parameters
Headers
Request body
Enter the body as JSON in the step's Body field.
{
"name": "string",
"configurations": [
{
"contentType": "string",
"enabled": false,
"url": "string",
"example": false
}
],
"description": "string"
}
Response
Returns 200 with an object. Read it in later steps with {{updatePreviewEnvironment.response.data.<field>}}.
{
"name": "string",
"sys": {},
"configurations": [
{
"contentType": "string",
"enabled": false,
"url": "string",
"example": false
}
],
"description": "string"
}
Need more? See the Contentful guide for connection setup and behaviour shared by every action.
Was this page helpful?